From d81fe75267feadbd0be1830f4ddc2aa12eaa76db Mon Sep 17 00:00:00 2001 From: danifr Date: Wed, 2 Mar 2016 10:56:21 +0100 Subject: [PATCH] Remove auth-constraint from web.xml if preauthenticated mode enabled --- manifests/config/global/web.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/config/global/web.pp b/manifests/config/global/web.pp index 0e1557482..484a7e121 100644 --- a/manifests/config/global/web.pp +++ b/manifests/config/global/web.pp @@ -33,4 +33,12 @@ incl => $rundeck::params::web_xml, changes => [ "set web-app/session-config/session-timeout/#text '${session_timeout}'" ], } + + if $rundeck::preauthenticated_config['enabled'] { + augeas { 'rundeck/web.xml/auth-constraint': + lens => 'Xml.lns', + incl => $rundeck::params::web_xml, + changes => [ 'rm web-app/security-constraint/auth-constraint' ], + } + } }