From c2df56745086606ba88f6824bd85211996a13662 Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Fri, 5 Jul 2013 17:55:16 -0400 Subject: Add ntp::config, a class to manage the ntp configuration file. --- manifests/config.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 manifests/config.pp 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}"), + } + +} -- cgit v1.2.3