Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
This commit is contained in:
parent
e9aae1dcf6
commit
24ecb51f6f
63 changed files with 544 additions and 497 deletions
|
@ -15,9 +15,9 @@ class ntpd {
|
|||
$ntp_server = ["pool.ntp.org"]
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
case $::operatingsystem {
|
||||
"fedora": {
|
||||
case $operatingsystemrelease {
|
||||
case $::operatingsystemrelease {
|
||||
/^1[0-5]/: {
|
||||
include ntpd::isc-ntpd
|
||||
}
|
||||
|
@ -34,8 +34,8 @@ class ntpd {
|
|||
}
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
"centos","fedora": {
|
||||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
augeas { "disable-peerntp":
|
||||
context => "/files/etc/sysconfig/network",
|
||||
changes => "set PEERNTP no",
|
||||
|
@ -93,7 +93,7 @@ class ntpd::isc-ntpd {
|
|||
service { "ntpd":
|
||||
ensure => running,
|
||||
enable => true,
|
||||
name => $operatingsystem ? {
|
||||
name => $::operatingsystem ? {
|
||||
ubuntu => "ntp",
|
||||
debian => "ntp",
|
||||
default => "ntpd",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue