mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Make `icingaweb2::config::general' responsible for parent directory creation
refs #6842
This commit is contained in:
parent
e5ca8eb626
commit
0b1f3183ad
@ -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',
|
||||
|
@ -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',
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user