From b0a655150c45c69237c43691620e76c3cac2bcf6 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Fri, 14 Feb 2020 23:52:55 +0100 Subject: [PATCH] =?UTF-8?q?feat(map.jinja):=20split=20=E2=80=9Cosfingermap?= =?UTF-8?q?.yaml=E2=80=9D=20under=20=E2=80=9Cparameters/osfinger/=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMPLATE/osfingermap.yaml | 49 ------------------- .../osfinger/Amazon Linux AMI-2018.yaml | 12 +++++ .../parameters/osfinger/Amazon Linux-2.yaml | 12 +++++ .../parameters/osfinger/CentOS Linux-7.yaml | 12 +++++ .../parameters/osfinger/CentOS Linux-8.yaml | 12 +++++ TEMPLATE/parameters/osfinger/CentOS-6.yaml | 15 ++++++ TEMPLATE/parameters/osfinger/Debian-10.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Debian-8.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Debian-9.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Fedora-30.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Fedora-31.yaml | 12 +++++ TEMPLATE/parameters/osfinger/FreeBSD-12.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Gentoo-2.yaml | 12 +++++ TEMPLATE/parameters/osfinger/Leap-15.yaml | 12 +++++ .../parameters/osfinger/Ubuntu-16.04.yaml | 12 +++++ .../parameters/osfinger/Ubuntu-18.04.yaml | 13 +++++ TEMPLATE/parameters/osfinger/Windows-8.1.yaml | 12 +++++ 17 files changed, 196 insertions(+), 49 deletions(-) delete mode 100644 TEMPLATE/osfingermap.yaml create mode 100644 TEMPLATE/parameters/osfinger/Amazon Linux AMI-2018.yaml create mode 100644 TEMPLATE/parameters/osfinger/Amazon Linux-2.yaml create mode 100644 TEMPLATE/parameters/osfinger/CentOS Linux-7.yaml create mode 100644 TEMPLATE/parameters/osfinger/CentOS Linux-8.yaml create mode 100644 TEMPLATE/parameters/osfinger/CentOS-6.yaml create mode 100644 TEMPLATE/parameters/osfinger/Debian-10.yaml create mode 100644 TEMPLATE/parameters/osfinger/Debian-8.yaml create mode 100644 TEMPLATE/parameters/osfinger/Debian-9.yaml create mode 100644 TEMPLATE/parameters/osfinger/Fedora-30.yaml create mode 100644 TEMPLATE/parameters/osfinger/Fedora-31.yaml create mode 100644 TEMPLATE/parameters/osfinger/FreeBSD-12.yaml create mode 100644 TEMPLATE/parameters/osfinger/Gentoo-2.yaml create mode 100644 TEMPLATE/parameters/osfinger/Leap-15.yaml create mode 100644 TEMPLATE/parameters/osfinger/Ubuntu-16.04.yaml create mode 100644 TEMPLATE/parameters/osfinger/Ubuntu-18.04.yaml create mode 100644 TEMPLATE/parameters/osfinger/Windows-8.1.yaml diff --git a/TEMPLATE/osfingermap.yaml b/TEMPLATE/osfingermap.yaml deleted file mode 100644 index 7bd9ba7a..00000000 --- a/TEMPLATE/osfingermap.yaml +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# vim: ft=yaml -# -# Setup variables using grains['osfinger'] based logic. -# You just need to add the key:values for an `osfinger` that differ -# from `defaults.yaml` + `osarch.yaml` + `os_family.yaml` + `osmap.yaml`. -# Only add an `osfinger` which is/will be supported by the formula. -# -# If you do not need to provide defaults via the `os_finger` grain, -# you will need to provide at least an empty dict in this file, e.g. -# osfingermap: {} ---- -# os: Debian -Debian-10: {} -Debian-9: {} -Debian-8: {} - -# os: Ubuntu -Ubuntu-18.04: - config: /etc/TEMPLATE.d/custom-ubuntu-18.04.conf -Ubuntu-16.04: {} - -# os: Fedora -Fedora-31: {} -Fedora-30: {} - -# os: CentOS -CentOS Linux-8: {} -CentOS Linux-7: {} -CentOS-6: - pkg: - name: TEMPLATE-centos-6 - config: /etc/TEMPLATE.d/custom-centos-6.conf - -# os: Amazon -Amazon Linux-2: {} -Amazon Linux AMI-2018: {} - -# os: SUSE -Leap-15: {} - -# os: FreeBSD -FreeBSD-12: {} - -# os: Windows -Windows-8.1: {} - -# os: Gentoo -Gentoo-2: {} diff --git a/TEMPLATE/parameters/osfinger/Amazon Linux AMI-2018.yaml b/TEMPLATE/parameters/osfinger/Amazon Linux AMI-2018.yaml new file mode 100644 index 00000000..97f03c9e --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Amazon Linux AMI-2018.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Amazon Linux AMI-2018. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Amazon Linux-2.yaml b/TEMPLATE/parameters/osfinger/Amazon Linux-2.yaml new file mode 100644 index 00000000..93631598 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Amazon Linux-2.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Amazon Linux-2. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/CentOS Linux-7.yaml b/TEMPLATE/parameters/osfinger/CentOS Linux-7.yaml new file mode 100644 index 00000000..a63144fd --- /dev/null +++ b/TEMPLATE/parameters/osfinger/CentOS Linux-7.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == CentOS Linux-7. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/CentOS Linux-8.yaml b/TEMPLATE/parameters/osfinger/CentOS Linux-8.yaml new file mode 100644 index 00000000..9953de36 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/CentOS Linux-8.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == CentOS Linux-8. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/CentOS-6.yaml b/TEMPLATE/parameters/osfinger/CentOS-6.yaml new file mode 100644 index 00000000..06226a32 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/CentOS-6.yaml @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == CentOS-6. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: + pkg: + name: TEMPLATE-centos-6 + config: /etc/TEMPLATE.d/custom-centos-6.conf diff --git a/TEMPLATE/parameters/osfinger/Debian-10.yaml b/TEMPLATE/parameters/osfinger/Debian-10.yaml new file mode 100644 index 00000000..ceac8234 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Debian-10.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Debian-10. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Debian-8.yaml b/TEMPLATE/parameters/osfinger/Debian-8.yaml new file mode 100644 index 00000000..0de44e0d --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Debian-8.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Debian-8. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Debian-9.yaml b/TEMPLATE/parameters/osfinger/Debian-9.yaml new file mode 100644 index 00000000..1979ff44 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Debian-9.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Debian-9. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Fedora-30.yaml b/TEMPLATE/parameters/osfinger/Fedora-30.yaml new file mode 100644 index 00000000..5e913993 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Fedora-30.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Fedora-30. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Fedora-31.yaml b/TEMPLATE/parameters/osfinger/Fedora-31.yaml new file mode 100644 index 00000000..e5cd692b --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Fedora-31.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Fedora-31. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/FreeBSD-12.yaml b/TEMPLATE/parameters/osfinger/FreeBSD-12.yaml new file mode 100644 index 00000000..39bf7bfb --- /dev/null +++ b/TEMPLATE/parameters/osfinger/FreeBSD-12.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == FreeBSD-12. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Gentoo-2.yaml b/TEMPLATE/parameters/osfinger/Gentoo-2.yaml new file mode 100644 index 00000000..ca7dd522 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Gentoo-2.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Gentoo-2. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Leap-15.yaml b/TEMPLATE/parameters/osfinger/Leap-15.yaml new file mode 100644 index 00000000..e55e9eaa --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Leap-15.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Leap-15. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Ubuntu-16.04.yaml b/TEMPLATE/parameters/osfinger/Ubuntu-16.04.yaml new file mode 100644 index 00000000..b9ee9bbd --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Ubuntu-16.04.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-16.04. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {} diff --git a/TEMPLATE/parameters/osfinger/Ubuntu-18.04.yaml b/TEMPLATE/parameters/osfinger/Ubuntu-18.04.yaml new file mode 100644 index 00000000..8a734209 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Ubuntu-18.04.yaml @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Ubuntu-18.04. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: + config: /etc/TEMPLATE.d/custom-ubuntu-18.04.conf diff --git a/TEMPLATE/parameters/osfinger/Windows-8.1.yaml b/TEMPLATE/parameters/osfinger/Windows-8.1.yaml new file mode 100644 index 00000000..ac849368 --- /dev/null +++ b/TEMPLATE/parameters/osfinger/Windows-8.1.yaml @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# vim: ft=yaml +# +# Setup variables specific to salt['config.get']('osfinger') == Windows-8.1. +# You just need to add the key:values for an `osfinger` that differ +# from `defaults.yaml` + `.yaml` + `.yaml` + `.yaml`. +# +# If you do not need to provide defaults via the `os_finger` grain, +# you can remove this file or provide at least an empty dict, e.g. +# values: {} +--- +values: {}