module-icingaweb2/manifests/config/authentication_external.pp
2015-04-23 11:40:42 +02:00

25 lines
664 B
Puppet

# Define for setting IcingaWeb2 Authentication
#
define icingaweb2::config::authentication_external (
$auth_filter = undef,
$auth_section = undef,
) {
Ini_Setting {
ensure => present,
require => File["${::icingaweb2::config_dir}/authentication.ini"],
path => "${::icingaweb2::config_dir}/authentication.ini",
}
ini_setting { "icingaweb2 authentication ${title} filter":
section => $auth_section,
setting => 'strip_username_regexp',
value => "\"${auth_filter}\"",
}
ini_setting { "icingaweb2 authentication ${title} backend":
section => $auth_section,
setting => 'backend',
value => '"external"',
}
}