Add a switch to check for os family
This is so I can include either apt or yum/dnf based profiles. This can be expanded easily if new families are added, or if new base role includes are added that are different based on the family of the os.
This commit is contained in:
parent
7a789ceaee
commit
5ee4891157
@ -5,6 +5,15 @@ class profiles::base (
|
|||||||
class { 'chrony':
|
class { 'chrony':
|
||||||
servers => $ntp_servers,
|
servers => $ntp_servers,
|
||||||
}
|
}
|
||||||
|
case $facts['os']['family'] {
|
||||||
|
'RedHat': {
|
||||||
include profiles::yum::global
|
include profiles::yum::global
|
||||||
}
|
}
|
||||||
|
#'Debian': {
|
||||||
|
# include profiles::apt:;global
|
||||||
|
#}
|
||||||
|
default: {
|
||||||
|
fail("Unsupported OS family ${facts['os']['family']}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user