Add tag2distrepo to bodhi-backend02
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
b1572a994d
commit
8f16aff7a8
2 changed files with 45 additions and 0 deletions
|
@ -31,6 +31,13 @@
|
|||
- packages
|
||||
- bodhi
|
||||
|
||||
- name: install tag2distrepo on fedora bodhi backends
|
||||
package: pkg=python2-tag2distrepo state=present
|
||||
when: inventory_hostname.startswith('bodhi-backend02')
|
||||
tags:
|
||||
- packages
|
||||
- bodhi
|
||||
|
||||
- name: install python3-ccolutils on fedora bodhi backends
|
||||
package: pkg=python3-cccolutils state=present
|
||||
when: inventory_hostname.startswith('bodhi-backend01')
|
||||
|
@ -468,6 +475,15 @@
|
|||
tags:
|
||||
- bodhi
|
||||
|
||||
- name: Put in tag2distrepo config
|
||||
template: >
|
||||
src=tag2distrepo.py.j2
|
||||
dest=/etc/fedmsg.d/tag2distrepo.py
|
||||
when: inventory_hostname.startswith('bodhi-backend02')
|
||||
tags:
|
||||
- config
|
||||
- bodhi
|
||||
|
||||
#- name: have apache own /mnt/koji/mash/updates
|
||||
# file: path=/mnt/koji/mash/updates state=directory recurse=yes owner=apache group=apache
|
||||
# tags:
|
||||
|
|
29
roles/bodhi2/backend/templates/tag2distrepo.py.j2
Normal file
29
roles/bodhi2/backend/templates/tag2distrepo.py.j2
Normal file
|
@ -0,0 +1,29 @@
|
|||
config = {
|
||||
{% if inventory_hostname.startswith('bodhi-backend02') %}
|
||||
'tag2distrepo.enabled': True,
|
||||
{% else %}
|
||||
'tag2distrepo.enabled': False,
|
||||
{% endif %}
|
||||
|
||||
'tag2distrepo.tags': {
|
||||
'primary': {
|
||||
'url': 'https://koji.fedoraproject.org/kojihub',
|
||||
'authmethod': 'kerberos',
|
||||
'principal': 'bodhi/bodhi.fedoraproject.org@FEDORAPROJECT.ORG',
|
||||
'keytab': '/etc/krb5.bodhi_bodhi.fedoraproject.org.keytab',
|
||||
|
||||
'tags': {
|
||||
'f25-infra': ['47dd8ef9'],
|
||||
'f25-infra-stg': ['47dd8ef9'],
|
||||
'f26-infra': ['47dd8ef9'],
|
||||
'f26-infra-stg': ['47dd8ef9'],
|
||||
'f27-infra': ['47dd8ef9'],
|
||||
'f27-infra-stg': ['47dd8ef9'],
|
||||
'epel6-infra': ['47dd8ef9'],
|
||||
'epel6-infra-stg': ['47dd8ef9'],
|
||||
'epel7-infra': ['47dd8ef9'],
|
||||
'epel7-infra-stg': ['47dd8ef9'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue