We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c99e45e + d3acf06 commit 2bcfb74Copy full SHA for 2bcfb74
1 file changed
manifests/init.pp
@@ -478,8 +478,10 @@
478
assert_type(Pattern[/^(Debian|RedHat|windows)$/], $facts['os']['family']) |$a, $b| {
479
fail('This module only works on Debian, Red Hat or Windows based systems.')
480
}
481
- if ($facts['os']['family'] == 'RedHat') and (versioncmp($facts['os']['release']['major'], '7') < 0) {
+ if ($facts['os']['family'] == 'RedHat') and ($facts['os']['name'] != 'Amazon') and (versioncmp($facts['os']['release']['major'], '7') < 0) {
482
fail('This module only works on Red Hat based systems version 7 and higher.')
483
+ } elsif ($facts['os']['name'] == 'Amazon') and ($facts['os']['release']['major'] != '2') and (versioncmp($facts['os']['release']['major'], '2022') < 0) {
484
+ fail('This module only works on Amazon Linux 2 and newer systems.')
485
486
487
0 commit comments