Add ODCS raw_config_wrapper and runroot_koji configs as ansible templates

This commit is contained in:
Jan Kaluža 2018-01-18 07:03:01 +00:00
parent e8ef32271c
commit d0ef82673f
3 changed files with 62 additions and 0 deletions

View file

@ -82,6 +82,34 @@
- odcs
- odcs/backend
- name: generate the ODCS raw_config_wrapper config for backend
template:
src: etc/odcs/raw_config_wrapper.conf.j2
dest: /etc/odcs/raw_config_wrapper.conf
owner: odcs
group: odcs
mode: 0440
notify:
- restart odcs-backend
when: inventory_hostname.startswith('odcs-backend')
tags:
- odcs
- odcs/backend
- name: generate the ODCS runroot_koji config for backend
template:
src: etc/odcs/runroot_koji.conf.j2
dest: /etc/odcs/runroot_koji.conf
owner: odcs
group: odcs
mode: 0440
notify:
- restart odcs-backend
when: inventory_hostname.startswith('odcs-backend')
tags:
- odcs
- odcs/backend
- name: copy the ODCS pungi config template to backend
copy: src="{{ roles_path }}/odcs/base/files/pungi.conf" dest=/etc/odcs/pungi.conf
owner=odcs group=odcs mode=0640

View file

@ -0,0 +1,14 @@
from raw_config import *
{% if env == 'staging' %}
koji_profile = 'odcs_stg'
{% else %}
koji_profile = 'odcs_production'
% endif %}
# We do not have any old compose when generating ODCS compose, so do not
# request using deltas.
createrepo_deltas = False
# In runroot, we cannot use guestmount, but have to use mount -o loop.
buildinstall_use_guestmount=False

View file

@ -0,0 +1,20 @@
[odcs_stg]
server = https://koji.stg.fedoraproject.org/kojihub
weburl = https://koji.stg.fedoraproject.org/koji
topurl = https://kojipkgs.fedoraproject.org/
anon_retry = true
krb_rdns = false
authtype = kerberos
principal = innercompose/odcs.stg.fedoraproject.org@STG.FEDORAPROJECT.ORG
keytab = /etc/kojid/secrets/odcs_inner.keytab
[odcs_production]
server = https://koji.fedoraproject.org/kojihub
weburl = https://koji.fedoraproject.org/koji
topurl = https://kojipkgs.fedoraproject.org/
anon_retry = true
krb_rdns = false
authtype = kerberos
principal = innercompose/odcs.fedoraproject.org@FEDORAPROJECT.ORG
keytab = /etc/kojid/secrets/odcs_inner.keytab