Make `icingaweb2::config::general' responsible for parent directory creation

refs #6842
This commit is contained in:
Alexander Klimov 2014-09-10 18:41:49 +02:00
parent e5ca8eb626
commit 0b1f3183ad
2 changed files with 3 additions and 15 deletions

View File

@ -2,6 +2,9 @@ define icingaweb2::config::general ($source, $replace = true) {
include apache
$path = "/etc/icingaweb/${name}.ini"
parent_dirs { $path: }
file { $path:
source => "${source}${path}",
owner => 'apache',

View File

@ -35,21 +35,6 @@ class icingaweb2_dev {
notify => Service['apache'],
}
$cfgpath = '/etc/icingaweb'
file { [
"${cfgpath}",
"${cfgpath}/enabledModules",
"${cfgpath}/modules",
"${cfgpath}/modules/monitoring",
"${cfgpath}/modules/doc"
]:
ensure => 'directory',
owner => 'apache',
group => 'apache',
require => Class['apache'],
}
icingaweb2::config::general { 'authentication':
source => 'puppet:///modules/icingaweb2_dev',
}