mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
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
14
.vagrant-puppet/modules/icingaweb2/manifests/config.pp
Normal file
14
.vagrant-puppet/modules/icingaweb2/manifests/config.pp
Normal file
@ -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…
x
Reference in New Issue
Block a user