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:
Eric Lippmann 2014-12-10 15:14:56 +01:00
parent 83b1cdeb3b
commit 06fe3bc218
1 changed files with 14 additions and 0 deletions

View 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',
}
}