Skip to content

Commit

Permalink
Added $config_dir variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianschauenburg committed Mar 9, 2015
1 parent ed5c6aa commit 3b9c124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
group => ntp,
mode => '0640',
}
}

$directory = dirname($keys_file)
if $directory =~ /^\/.+\/.+$/ {
file { $directory:
if $config_dir {
file { $config_dir:
ensure => directory,
owner => 0,
group => 0,
group => ntp,
mode => '0640',
recurse => true,
recurse => false,
}
}
}

file { $config:
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$autoupdate = $ntp::params::autoupdate,
$broadcastclient = $ntp::params::broadcastclient,
$config = $ntp::params::config,
$config_dir = $ntp::params::config_dir,
$config_template = $ntp::params::config_template,
$disable_auth = $ntp::params::disable_auth,
$disable_monitor = $ntp::params::disable_monitor,
Expand Down

0 comments on commit 3b9c124

Please sign in to comment.