summaryrefslogtreecommitdiff
path: root/puppet/modules/ntp/manifests/config.pp
blob: 1c8963dcf4c96a44e4d2cefb67c51a9499b15e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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),
  }

}