From 3792c64a5a80c6455d9af4c1940c83de394fc8f4 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 18 Mar 2016 16:45:25 +0000 Subject: [PATCH] Enable Basset in production This enables the FAS production hooks for Basset. Signed-off-by: Patrick Uiterwijk --- roles/fas_server/templates/fas.cfg.j2 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/fas_server/templates/fas.cfg.j2 b/roles/fas_server/templates/fas.cfg.j2 index 2b90ef003c..3f293dc23a 100644 --- a/roles/fas_server/templates/fas.cfg.j2 +++ b/roles/fas_server/templates/fas.cfg.j2 @@ -115,14 +115,20 @@ cla_deprecated_groups = ['cla_fedora'] # Format: 'group1:a,b,c|group2:d,e,f' auto_approve_groups = 'packager:fedorabugs|qa:fedorabugs|security-team:fedorabugs|qa-beaker-user:qa-automation-shell|docs:fedorabugs|cla_fpca:cla_done|cla_redhat:cla_done|cla_dell:cla_done|cla_ibm:cla_done|cla_intel:cla_done' -{% if env == "staging" %} # Anti-spam approval check script, which injects in both registration and CLA steps # In Fedora, this is provided by the Basset service +{% if env == "staging" %} antispam.api.url = 'http://basset01.stg.phx2.fedoraproject.org/basset' antispam.api.username = '{{ basset_stg_frontend_user }}' antispam.api.password = '{{ basset_stg_frontend_pass }}' antispam.registration.autoaccept = False antispam.cla.autoaccept = False +{% else %} +antispam.api.url = 'http://basset01.phx2.fedoraproject.org/basset' +antispam.api.username = '{{ basset_prod_frontend_user }}' +antispam.api.password = '{{ basset_prod_frontend_pass }}' +antispam.registration.autoaccept = False +antispam.cla.autoaccept = False {% endif %} # Some server parameters that you may want to tweak