Add ODCS raw_config_wrapper and runroot_koji configs as ansible templates
This commit is contained in:
parent
e8ef32271c
commit
d0ef82673f
3 changed files with 62 additions and 0 deletions
|
@ -82,6 +82,34 @@
|
||||||
- odcs
|
- odcs
|
||||||
- odcs/backend
|
- 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
|
- name: copy the ODCS pungi config template to backend
|
||||||
copy: src="{{ roles_path }}/odcs/base/files/pungi.conf" dest=/etc/odcs/pungi.conf
|
copy: src="{{ roles_path }}/odcs/base/files/pungi.conf" dest=/etc/odcs/pungi.conf
|
||||||
owner=odcs group=odcs mode=0640
|
owner=odcs group=odcs mode=0640
|
||||||
|
|
|
@ -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
|
||||||
|
|
20
roles/odcs/base/templates/etc/odcs/runroot_koji.conf.j2
Normal file
20
roles/odcs/base/templates/etc/odcs/runroot_koji.conf.j2
Normal 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue