puppet: Add class icingaweb2::config
icingaweb2::config creates Icinga Web 2's configuration directories using the config path defined by hiera.
This commit is contained in:
parent
83b1cdeb3b
commit
06fe3bc218
|
@ -0,0 +1,14 @@
|
||||||
|
class icingaweb2::config (
|
||||||
|
$config = hiera('icingaweb2::config')
|
||||||
|
) {
|
||||||
|
group { 'icingaweb':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
|
||||||
|
file { [ "${config}", "${config}/enabledModules", "${config}/modules" ]:
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'icingaweb',
|
||||||
|
mode => '2770',
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue