mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +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
|
include apache
|
||||||
|
|
||||||
$path = "/etc/icingaweb/${name}.ini"
|
$path = "/etc/icingaweb/${name}.ini"
|
||||||
|
|
||||||
|
parent_dirs { $path: }
|
||||||
|
|
||||||
file { $path:
|
file { $path:
|
||||||
source => "${source}${path}",
|
source => "${source}${path}",
|
||||||
owner => 'apache',
|
owner => 'apache',
|
||||||
|
@ -35,21 +35,6 @@ class icingaweb2_dev {
|
|||||||
notify => Service['apache'],
|
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':
|
icingaweb2::config::general { 'authentication':
|
||||||
source => 'puppet:///modules/icingaweb2_dev',
|
source => 'puppet:///modules/icingaweb2_dev',
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user