summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMichael Moll <kvedulv@kvedulv.de>2012-10-19 14:13:59 +0200
committerMichael Moll <kvedulv@kvedulv.de>2012-12-10 20:41:06 +0100
commit66ef82f35c83a1e156f5e6d97158e80177dd4ae1 (patch)
tree2eb20d7f5cf85b45a549ce962a7c6bcc0fc073d6 /manifests
parentef34330e6fdd3dd430b809089b552fb4e12486ea (diff)
switch to the 'osfamily' fact
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp13
1 files changed, 8 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index d23f4a3..67125d4 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -56,8 +56,9 @@ class ntp($servers='UNSET',
fail('autoupdate parameter must be true or false')
}
- case $::operatingsystem {
- debian, ubuntu: {
+ case $::osfamily {
+ Debian: {
+ $supported = true
$pkg_name = [ 'ntp' ]
$svc_name = 'ntp'
$config = '/etc/ntp.conf'
@@ -71,7 +72,8 @@ class ntp($servers='UNSET',
$servers_real = $servers
}
}
- centos, redhat, oel, linux, fedora, Amazon: {
+ RedHat: {
+ $supported = true
$pkg_name = [ 'ntp' ]
$svc_name = 'ntpd'
$config = '/etc/ntp.conf'
@@ -84,7 +86,8 @@ class ntp($servers='UNSET',
$servers_real = $servers
}
}
- freebsd: {
+ FreeBSD: {
+ $supported = true
$pkg_name = ['.*/net/ntp']
$svc_name = 'ntpd'
$config = '/etc/ntp.conf'
@@ -99,7 +102,7 @@ class ntp($servers='UNSET',
}
}
default: {
- fail("The ${module_name} module is not supported on ${::operatingsystem}")
+ fail("The ${module_name} module is not supported on ${::osfamily} based systems")
}
}