diff options
author | Michael Scherer <misc@mageia.org> | 2012-01-08 20:25:07 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-01-08 20:25:07 +0000 |
commit | 9248d11d99caa514f856925b6092a59a517f0016 (patch) | |
tree | 7c8106d41a7f3bfc6373182dafc544617c98e799 /modules | |
parent | 9069208922bd02f233556eb0d2936a9c62d863e0 (diff) | |
download | puppet-9248d11d99caa514f856925b6092a59a517f0016.tar puppet-9248d11d99caa514f856925b6092a59a517f0016.tar.gz puppet-9248d11d99caa514f856925b6092a59a517f0016.tar.bz2 puppet-9248d11d99caa514f856925b6092a59a517f0016.tar.xz puppet-9248d11d99caa514f856925b6092a59a517f0016.zip |
cleaning of the ntp module
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ntp/manifests/init.pp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/modules/ntp/manifests/init.pp b/modules/ntp/manifests/init.pp index 3f9ecc14..5dfb516f 100644 --- a/modules/ntp/manifests/init.pp +++ b/modules/ntp/manifests/init.pp @@ -1,22 +1,14 @@ class ntp { - - package { ntp: - ensure => installed - } + package { ntp: } service { ntpd: ensure => running, path => "/etc/init.d/ntpd", - subscribe => [ Package["ntp"], File["ntp.conf"] ] + subscribe => [Package["ntp"], File["ntp.conf"]], } - - file { "ntp.conf": - path => "/etc/ntp.conf", - ensure => present, - owner => root, - group => root, - mode => 644, + + file { "/etc/ntp.conf": require => Package["ntp"], - content => template("ntp/ntp.conf") + content => template("ntp/ntp.conf"), } } |