summaryrefslogtreecommitdiffstats
path: root/roles/fas_server
diff options
context:
space:
mode:
authorPatrick Uiterwijk <puiterwijk@redhat.com>2016-03-18 16:45:25 +0000
committerPatrick Uiterwijk <puiterwijk@redhat.com>2016-03-18 19:48:27 +0000
commit3792c64a5a80c6455d9af4c1940c83de394fc8f4 (patch)
tree37580edf6ce7480d25802b98941be4d4638690a3 /roles/fas_server
parent01e1d114758e617373ef1167850957b5537a3330 (diff)
downloadansible-3792c64a5a80c6455d9af4c1940c83de394fc8f4.tar.gz
ansible-3792c64a5a80c6455d9af4c1940c83de394fc8f4.tar.xz
ansible-3792c64a5a80c6455d9af4c1940c83de394fc8f4.zip
Enable Basset in production
This enables the FAS production hooks for Basset. Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'roles/fas_server')
-rw-r--r--roles/fas_server/templates/fas.cfg.j28
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/fas_server/templates/fas.cfg.j2 b/roles/fas_server/templates/fas.cfg.j2
index 2b90ef003..3f293dc23 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