summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2013-02-25 15:28:06 -0800
committerJeff McCune <jeff@puppetlabs.com>2013-02-25 15:28:06 -0800
commitfd064cbdf39bf12794e4c6733b188a077a47a214 (patch)
tree4464659fab4d779efb51eba206d20d9ecf47f4c9 /manifests
parent346d9053ba3e4bcc77de2fad6b6eb9665554741a (diff)
parent7d6776868eb226bd85372cc1d62c3779b673d25c (diff)
Merge branch 'mattr--feature/add-archlinux-support'
* mattr--feature/add-archlinux-support: Add support for Arch Linux closes #40
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 543db63..9b9c465 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -10,6 +10,7 @@
# - CentOS 5.4
# - Amazon Linux 2011.09
# - FreeBSD 9.0
+# - Archlinux
#
# Parameters:
#
@@ -120,6 +121,27 @@ class ntp($servers='UNSET',
$servers_real = $servers
}
}
+
+ Linux: {
+ if ($::operatingsystem == 'Archlinux') {
+ $supported = true
+ $pkg_name = ['ntp']
+ $svc_name = 'ntpd'
+ $config = '/etc/ntp.conf'
+ $config_tpl = 'ntp.conf.archlinux.erb'
+
+ if ($servers == 'UNSET') {
+ $servers_real = [ '0.pool.ntp.org',
+ '1.pool.ntp.org',
+ '2.pool.ntp.org' ]
+ } else {
+ $servers_real = $servers
+ }
+ } else {
+ fail("The ${module_name} module is not supported on an ${::operatingsystem} system")
+ }
+ }
+
default: {
fail("The ${module_name} module is not supported on ${::osfamily} based systems")
}