summaryrefslogtreecommitdiff
path: root/puppet/modules/ntp/manifests/config.pp
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/ntp/manifests/config.pp')
-rw-r--r--puppet/modules/ntp/manifests/config.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/puppet/modules/ntp/manifests/config.pp b/puppet/modules/ntp/manifests/config.pp
new file mode 100644
index 00000000..1c8963dc
--- /dev/null
+++ b/puppet/modules/ntp/manifests/config.pp
@@ -0,0 +1,23 @@
+#
+class ntp::config inherits ntp {
+
+ if $keys_enable {
+ $directory = dirname($keys_file)
+ file { $directory:
+ ensure => directory,
+ owner => 0,
+ group => 0,
+ mode => '0755',
+ recurse => true,
+ }
+ }
+
+ file { $config:
+ ensure => file,
+ owner => 0,
+ group => 0,
+ mode => '0644',
+ content => template($config_template),
+ }
+
+}