diff --git a/tests/vars/AlmaLinux_10.yml b/tests/vars/AlmaLinux_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/tests/vars/AlmaLinux_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/tests/vars/AlmaLinux_8.yml b/tests/vars/AlmaLinux_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/tests/vars/AlmaLinux_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/tests/vars/AlmaLinux_9.yml b/tests/vars/AlmaLinux_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/tests/vars/AlmaLinux_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/tests/vars/CentOS_10.yml b/tests/vars/CentOS_10.yml deleted file mode 100644 index ace9d13..0000000 --- a/tests/vars/CentOS_10.yml +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put tests variables here with CentOS 9 specific values. - -nbde_client_test_packages: - - cryptsetup - -# vim:set ts=2 sw=2 et: diff --git a/tests/vars/CentOS_10.yml b/tests/vars/CentOS_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/tests/vars/CentOS_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/tests/vars/CentOS_7.yml b/tests/vars/CentOS_7.yml deleted file mode 100644 index f6ba1a2..0000000 --- a/tests/vars/CentOS_7.yml +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put tests variables here with CentOS 7 specific values. - -nbde_client_test_packages: - - cryptsetup - -# vim:set ts=2 sw=2 et: diff --git a/tests/vars/CentOS_7.yml b/tests/vars/CentOS_7.yml new file mode 120000 index 0000000..105e630 --- /dev/null +++ b/tests/vars/CentOS_7.yml @@ -0,0 +1 @@ +RedHat_7.yml \ No newline at end of file diff --git a/tests/vars/CentOS_8.yml b/tests/vars/CentOS_8.yml deleted file mode 100644 index ecea30f..0000000 --- a/tests/vars/CentOS_8.yml +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put tests variables here with CentOS 8 specific values. - -nbde_client_test_packages: - - cryptsetup - -# vim:set ts=2 sw=2 et: diff --git a/tests/vars/CentOS_8.yml b/tests/vars/CentOS_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/tests/vars/CentOS_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/tests/vars/CentOS_9.yml b/tests/vars/CentOS_9.yml deleted file mode 100644 index ace9d13..0000000 --- a/tests/vars/CentOS_9.yml +++ /dev/null @@ -1,8 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put tests variables here with CentOS 9 specific values. - -nbde_client_test_packages: - - cryptsetup - -# vim:set ts=2 sw=2 et: diff --git a/tests/vars/CentOS_9.yml b/tests/vars/CentOS_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/tests/vars/CentOS_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/tests/vars/Rocky_10.yml b/tests/vars/Rocky_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/tests/vars/Rocky_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/tests/vars/Rocky_8.yml b/tests/vars/Rocky_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/tests/vars/Rocky_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/tests/vars/Rocky_9.yml b/tests/vars/Rocky_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/tests/vars/Rocky_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/tests/vars/rh_distros_vars.yml b/tests/vars/rh_distros_vars.yml new file mode 100644 index 0000000..1bd6a9b --- /dev/null +++ b/tests/vars/rh_distros_vars.yml @@ -0,0 +1,20 @@ +# vars for handling conditionals for RedHat and clones +# DO NOT EDIT - file is auto-generated +# repo is https://github.com/linux-system-roles/.github +# file is playbooks/templates/tests/vars/rh_distros_vars.yml +--- +# Ansible distribution identifiers that the role treats like RHEL +__nbde_client_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__nbde_client_rh_distros_fedora: "{{ __nbde_client_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__nbde_client_is_rh_distro: "{{ ansible_distribution in __nbde_client_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__nbde_client_is_rh_distro_fedora: "{{ ansible_distribution in __nbde_client_rh_distros_fedora }}" diff --git a/vars/AlmaLinux_10.yml b/vars/AlmaLinux_10.yml deleted file mode 100644 index 996813d..0000000 --- a/vars/AlmaLinux_10.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with AlmaLinux 10 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/AlmaLinux_10.yml b/vars/AlmaLinux_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/AlmaLinux_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/AlmaLinux_8.yml b/vars/AlmaLinux_8.yml deleted file mode 100644 index 6529abf..0000000 --- a/vars/AlmaLinux_8.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with AlmaLinux 8 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/AlmaLinux_8.yml b/vars/AlmaLinux_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/vars/AlmaLinux_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/vars/AlmaLinux_9.yml b/vars/AlmaLinux_9.yml deleted file mode 100644 index 7929490..0000000 --- a/vars/AlmaLinux_9.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with AlmaLinux 9 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/AlmaLinux_9.yml b/vars/AlmaLinux_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/vars/AlmaLinux_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/vars/CentOS_10.yml b/vars/CentOS_10.yml deleted file mode 100644 index dbb447f..0000000 --- a/vars/CentOS_10.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with CentOS 10 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/CentOS_10.yml b/vars/CentOS_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/CentOS_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/CentOS_7.yml b/vars/CentOS_7.yml deleted file mode 100644 index efa3bd8..0000000 --- a/vars/CentOS_7.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with CentOS 7 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: dracut_module - -# vim:set ts=2 sw=2 et: diff --git a/vars/CentOS_7.yml b/vars/CentOS_7.yml new file mode 120000 index 0000000..105e630 --- /dev/null +++ b/vars/CentOS_7.yml @@ -0,0 +1 @@ +RedHat_7.yml \ No newline at end of file diff --git a/vars/CentOS_8.yml b/vars/CentOS_8.yml deleted file mode 100644 index cc11a5d..0000000 --- a/vars/CentOS_8.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with CentOS 8 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/CentOS_8.yml b/vars/CentOS_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/vars/CentOS_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/vars/CentOS_9.yml b/vars/CentOS_9.yml deleted file mode 100644 index 506afc0..0000000 --- a/vars/CentOS_9.yml +++ /dev/null @@ -1,22 +0,0 @@ -# SPDX-License-Identifier: MIT ---- -# Put internal variables here with CentOS 9 specific values. - -__nbde_client_packages: - - clevis - - clevis-dracut - - clevis-luks - - clevis-systemd - - iproute - - NetworkManager - -__nbde_client_initramfs_update_cmd: > - dracut -fv --regenerate-all - -__nbde_client_dracut_settings: - - kernel_cmdline+=" rd.neednet=1 " - - omit_dracutmodules+=" ifcfg " - -__nbde_client_clear_initrd_netcfg_strategy: networkmanager_config - -# vim:set ts=2 sw=2 et: diff --git a/vars/CentOS_9.yml b/vars/CentOS_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/vars/CentOS_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/vars/Rocky_10.yml b/vars/Rocky_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/Rocky_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/Rocky_8.yml b/vars/Rocky_8.yml new file mode 120000 index 0000000..ad7713d --- /dev/null +++ b/vars/Rocky_8.yml @@ -0,0 +1 @@ +RedHat_8.yml \ No newline at end of file diff --git a/vars/Rocky_9.yml b/vars/Rocky_9.yml new file mode 120000 index 0000000..0eb3795 --- /dev/null +++ b/vars/Rocky_9.yml @@ -0,0 +1 @@ +RedHat_9.yml \ No newline at end of file diff --git a/vars/main.yml b/vars/main.yml index 6e67bec..073352f 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -19,3 +19,21 @@ __nbde_client_required_facts_subsets: "{{ ['!all', '!min'] + __nbde_client_required_facts }}" # vim:set ts=2 sw=2 et: + +# BEGIN - DO NOT EDIT THIS BLOCK - rh distros variables +# Ansible distribution identifiers that the role treats like RHEL +__nbde_client_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__nbde_client_rh_distros_fedora: "{{ __nbde_client_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__nbde_client_is_rh_distro: "{{ ansible_distribution in __nbde_client_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__nbde_client_is_rh_distro_fedora: "{{ ansible_distribution in __nbde_client_rh_distros_fedora }}" +# END - DO NOT EDIT THIS BLOCK - rh distros variables