module-icingaweb2/manifests/config.pp

45 lines
1.2 KiB
ObjectPascal
Raw Normal View History

2015-02-20 10:40:45 +01:00
# == Class icingaweb2::config
#
class icingaweb2::config {
File {
require => Class['::icingaweb2::install'],
owner => $::icingaweb2::config_user,
group => $::icingaweb2::config_group,
mode => $::icingaweb2::config_file_mode,
}
file {
$::icingaweb2::config_dir:
ensure => directory,
mode => $::icingaweb2::config_dir_mode,
recurse => $::icingaweb2::config_dir_recurse;
"${::icingaweb2::config_dir}/enabledModules":
ensure => directory;
"${::icingaweb2::config_dir}/modules":
ensure => directory;
"${::icingaweb2::config_dir}/authentication.ini":
ensure => present,
content => template('icingaweb2/authentication.ini.erb');
"${::icingaweb2::config_dir}/config.ini":
ensure => present,
content => template('icingaweb2/config.ini.erb');
"${::icingaweb2::config_dir}/resources.ini":
ensure => present,
content => template('icingaweb2/resources.ini.erb');
"${::icingaweb2::config_dir}/roles.ini":
ensure => present,
content => template('icingaweb2/roles.ini.erb');
2015-02-20 12:28:33 +01:00
$::icingaweb2::web_root:
2015-02-20 13:04:10 +01:00
ensure => directory,
mode => $::icingaweb2::config_dir_mode;
2015-02-20 10:40:45 +01:00
}
}