Commit 6b2fe952 authored by Markus Frosch's avatar Markus Frosch
Browse files

icingaweb2: Remove auth config from profile

parent 066f5ef6
...@@ -3,24 +3,11 @@ class icinga2_testing::profiles::icingaweb2 ...@@ -3,24 +3,11 @@ class icinga2_testing::profiles::icingaweb2
include ::icinga2_testing::profiles::apache include ::icinga2_testing::profiles::apache
class { '::icingaweb2': class { '::icingaweb2':
admin_users => 'icingaadmin',
auth_backend => 'external',
manage_apache_vhost => true, manage_apache_vhost => true,
manage_repo => false, manage_repo => false,
install_method => 'package', install_method => 'package',
} }
contain ::icingaweb2
# do auto login as admin contain ::icingaweb2::mod::monitoring
::apache::custom_config { 'icingaweb2-autologin':
content => "<Location /icingaweb2>\nSetEnv REMOTE_USER icingaadmin\n</Location>",
}
# redirect to icingaweb2
::apache::custom_config { 'icingaweb2-redirect':
content => "RedirectMatch ^/$ /icingaweb2/\n",
}
class { '::icingaweb2::mod::monitoring':
}
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment