summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Penney <ashley.penney@puppetlabs.com>2013-07-05 17:55:16 -0400
committerAshley Penney <ashley.penney@puppetlabs.com>2013-07-05 18:53:54 -0400
commitc2df56745086606ba88f6824bd85211996a13662 (patch)
treef7c10bfc2f27060ca2f2ed7c576b810602312456
parent451c93a46c42c9659cc0930a301746cf103dbeb2 (diff)
Add ntp::config, a class to manage the ntp configuration file.
-rw-r--r--manifests/config.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..30a46aa
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,16 @@
+class ntp::config(
+ $config = $ntp::config,
+ $config_template = $ntp::config_template,
+ $restrict = $ntp::restrict,
+ $servers = $ntp::servers,
+) {
+
+ file { $config:
+ ensure => file,
+ owner => 0,
+ group => 0,
+ mode => '0644',
+ content => template("ntp/${config_template}"),
+ }
+
+}