Merge branch 'master' of /git/ansible

This commit is contained in:
Stephen Smoogen 2017-02-15 19:26:38 +00:00
commit fb3f1b8186
8 changed files with 40 additions and 6 deletions

View file

@ -24,8 +24,8 @@ fas_client_groups: sysadmin-noc,sysadmin-releng
# These are consumed by a task in roles/fedmsg/base/main.yml # These are consumed by a task in roles/fedmsg/base/main.yml
fedmsg_certs: fedmsg_certs:
- service: mbs - service: mbs
owner: root owner: fedmsg
group: apache group: fedmsg
can_send: can_send:
- mbs.module.state.change - mbs.module.state.change
# Only the backend sends this message.. # Only the backend sends this message..

View file

@ -24,8 +24,8 @@ fas_client_groups: sysadmin-noc,sysadmin-releng
# These are consumed by a task in roles/fedmsg/base/main.yml # These are consumed by a task in roles/fedmsg/base/main.yml
fedmsg_certs: fedmsg_certs:
- service: mbs - service: mbs
owner: root owner: fedmsg
group: apache group: fedmsg
can_send: can_send:
- mbs.module.state.change - mbs.module.state.change
# Only the backend sends this message.. # Only the backend sends this message..

View file

@ -1,5 +1,5 @@
- name: clear memcache - name: clear memcache
hosts: memcached hosts: memcached:memcached-stg
serial: 1 serial: 1
tasks: tasks:

View file

@ -15,6 +15,15 @@
- mbs - mbs
- mbs/common - mbs/common
- name: kill development config
file: path=/etc/fedmsg.d/module_build_service.py state=absent
notify:
- restart apache
- restart fedmsg-hub
tags:
- mbs
- mbs/common
- name: copy app configuration - name: copy app configuration
template: > template: >
src=config.py dest=/etc/module-build-service/config.py src=config.py dest=/etc/module-build-service/config.py
@ -26,6 +35,17 @@
- mbs - mbs
- mbs/common - mbs/common
- name: copy fedmsg configuration
template: >
src=mbs-fedmsg.py dest=/etc/fedmsg.d/mbs-fedmsg.py
owner=root group=fedmsg mode=0644
notify:
- restart apache
- restart fedmsg-hub
tags:
- mbs
- mbs/common
- name: copy client secrets - name: copy client secrets
template: > template: >
src=client_secrets.json.{{env}} dest=/etc/module-build-service/client_secrets.json src=client_secrets.json.{{env}} dest=/etc/module-build-service/client_secrets.json

View file

@ -0,0 +1,7 @@
import socket
config = {
# So that the MBS can find it's cert in /etc/fedmsg.d/ssl.py
'cert_prefix': 'mbs',
'name': 'mbs-%s' % socket.gethostname(),
}

View file

@ -4,7 +4,7 @@
- name: disable the scheduler on the frontend - name: disable the scheduler on the frontend
copy: > copy: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }} src={{ item }} dest=/etc/fedmsg.d/{{ item }}
owner=apache group=apache mode=0600 owner=fedmsg group=fedmsg mode=0644
with_items: with_items:
- mbs-scheduler.py - mbs-scheduler.py
notify: notify:
@ -41,6 +41,7 @@
with_items: with_items:
- httpd_can_network_connect_db - httpd_can_network_connect_db
- httpd_can_network_memcache - httpd_can_network_memcache
- httpd_can_network_connect
- httpd_can_sendmail - httpd_can_sendmail
tags: tags:
- mbs - mbs

View file

@ -131,3 +131,7 @@ OversignHeaders From
## caching service. Useful if the nameserver being used by the filter is ## caching service. Useful if the nameserver being used by the filter is
## not local. ## not local.
# QueryCache yes # QueryCache yes
#
# We need to increase the default header size because notifs adds a X-fedmsg header for
# each message in a digest.
MaximumHeaders 262144

View file

@ -13,6 +13,8 @@ prod_rdb_report: true
resultsdb_url: http://resultsdb-stg01.qa.fedoraproject.org/resultsdb_api/api/v2.0/ resultsdb_url: http://resultsdb-stg01.qa.fedoraproject.org/resultsdb_api/api/v2.0/
wiki_hostname: stg.fedoraproject.org wiki_hostname: stg.fedoraproject.org
[consumers] [consumers]
# as we use the production scheduler
prod_oqa_hostname: localhost
stg_oqa_hostname: localhost stg_oqa_hostname: localhost
stg_oqa_baseurl: https://{{ external_hostname|default(ansible_nodename) }} stg_oqa_baseurl: https://{{ external_hostname|default(ansible_nodename) }}
stg_wiki_hostname: stg.fedoraproject.org stg_wiki_hostname: stg.fedoraproject.org