Profile `icingaweb2_dev': softcode '/etc/icingaweb' as $cfgpath
refs #6842
This commit is contained in:
parent
6aa2dcdd72
commit
7e4feb748d
|
@ -30,30 +30,31 @@ class icingaweb2_dev {
|
||||||
notify => Service['apache'],
|
notify => Service['apache'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/icingaweb/config.ini':
|
$cfgpath = '/etc/icingaweb'
|
||||||
|
|
||||||
|
file { "${cfgpath}/config.ini":
|
||||||
ensure => file,
|
ensure => file,
|
||||||
owner => 'apache',
|
owner => 'apache',
|
||||||
group => 'apache',
|
group => 'apache',
|
||||||
}
|
}
|
||||||
|
|
||||||
file { [
|
file { [
|
||||||
'/etc/icingaweb',
|
"${cfgpath}",
|
||||||
'/etc/icingaweb/enabledModules',
|
"${cfgpath}/enabledModules",
|
||||||
'/etc/icingaweb/modules',
|
"${cfgpath}/modules",
|
||||||
'/etc/icingaweb/modules/monitoring',
|
"${cfgpath}/modules/monitoring",
|
||||||
'/etc/icingaweb/modules/doc',
|
"${cfgpath}/modules/doc"
|
||||||
'/etc/icingaweb/dashboard'
|
|
||||||
]:
|
]:
|
||||||
ensure => 'directory',
|
ensure => 'directory',
|
||||||
owner => 'apache',
|
owner => 'apache',
|
||||||
group => 'apache',
|
group => 'apache',
|
||||||
}
|
}
|
||||||
|
|
||||||
icingaweb2::config { [ 'dashboard/dashboard', 'modules/doc/menu', 'authentication', 'menu' ]: }
|
icingaweb2::config { 'authentication': }
|
||||||
|
|
||||||
icingaweb2::config { 'resources':
|
icingaweb2::config { 'resources':
|
||||||
replace => false,
|
replace => false,
|
||||||
}
|
}
|
||||||
|
|
||||||
icingaweb2::config::monitoring { [ 'backends', 'config', 'instances', 'menu' ]: }
|
icingaweb2::config::monitoring { [ 'backends', 'config', 'instances' ]: }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue