aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ntp/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ntp/manifests/init.pp')
-rw-r--r--modules/ntp/manifests/init.pp22
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")
+ }
+}