diff options
author | Michael Scherer <misc@mageia.org> | 2010-10-26 21:58:40 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-10-26 21:58:40 +0000 |
commit | ffa2ad97d1e0367988dd390b0224563b0acfad7b (patch) | |
tree | 0790bda9c77c0f04acef5913fef6b384a4917fe7 /modules/ntp/manifests/init.pp | |
parent | c437e64fb0c349a9a7b5aaa5f310480d7c78f785 (diff) | |
download | puppet-ffa2ad97d1e0367988dd390b0224563b0acfad7b.tar puppet-ffa2ad97d1e0367988dd390b0224563b0acfad7b.tar.gz puppet-ffa2ad97d1e0367988dd390b0224563b0acfad7b.tar.bz2 puppet-ffa2ad97d1e0367988dd390b0224563b0acfad7b.tar.xz puppet-ffa2ad97d1e0367988dd390b0224563b0acfad7b.zip |
- add ntp module
Diffstat (limited to 'modules/ntp/manifests/init.pp')
-rw-r--r-- | modules/ntp/manifests/init.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/ntp/manifests/init.pp b/modules/ntp/manifests/init.pp new file mode 100644 index 00000000..2b668589 --- /dev/null +++ b/modules/ntp/manifests/init.pp @@ -0,0 +1,22 @@ +class ntp { + + package { ntp: + ensure => installed + } + + service { ntp: + ensure => running, + path => "/etc/init.d/ntpd", + subscribe => [ Package["ntpd"], File["ntp.conf"] ] + } + + file { "ntp.conf": + path => "/etc/ntp.conf", + ensure => present, + owner => root, + group => root, + mode => 644, + require => Package["ntp"], + content => template("ntp/ntp.conf") + } +} |