2015-03-16 18:44:56 +01:00
|
|
|
# Define for setting IcingaWeb2 Authentication
|
2015-04-23 11:40:42 +02:00
|
|
|
#
|
2015-03-16 18:44:56 +01:00
|
|
|
define icingaweb2::config::authentication_database (
|
|
|
|
$auth_resource = undef,
|
2015-04-23 11:40:42 +02:00
|
|
|
$auth_section = undef,
|
2015-03-16 18:44:56 +01:00
|
|
|
) {
|
|
|
|
Ini_Setting {
|
|
|
|
ensure => present,
|
|
|
|
require => File["${::icingaweb2::config_dir}/authentication.ini"],
|
|
|
|
path => "${::icingaweb2::config_dir}/authentication.ini",
|
|
|
|
}
|
|
|
|
|
|
|
|
ini_setting { "icingaweb2 authentication ${title} resource":
|
2015-04-07 13:59:48 +02:00
|
|
|
section => $auth_section,
|
2015-03-16 18:44:56 +01:00
|
|
|
setting => 'resource',
|
2015-04-07 13:59:48 +02:00
|
|
|
value => "\"${auth_resource}\"",
|
2015-03-16 18:44:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ini_setting { "icingaweb2 authentication ${title} backend":
|
2015-04-07 13:59:48 +02:00
|
|
|
section => $auth_section,
|
2015-03-16 18:44:56 +01:00
|
|
|
setting => 'backend',
|
2015-04-07 13:59:48 +02:00
|
|
|
value => '"db"',
|
2015-03-16 18:44:56 +01:00
|
|
|
}
|
|
|
|
}
|
2015-04-23 11:40:42 +02:00
|
|
|
|