Merge pull request #20 from neoloc/feature/add_switch_for_familyos

Add a switch to check for os family
This commit is contained in:
Ben Vincent 2023-06-25 13:34:30 +10:00 committed by GitHub
commit a1ae948520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,15 @@ class profiles::base (
class { 'chrony':
servers => $ntp_servers,
}
include profiles::yum::global
case $facts['os']['family'] {
'RedHat': {
include profiles::yum::global
}
#'Debian': {
# include profiles::apt:;global
#}
default: {
fail("Unsupported OS family ${facts['os']['family']}")
}
}
}