Also define primary koji
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
43a02102eb
commit
d8a97f3b9b
4 changed files with 58 additions and 1 deletions
25
roles/sigul/bridge/files/koji-primary.conf
Normal file
25
roles/sigul/bridge/files/koji-primary.conf
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
[koji]
|
||||||
|
|
||||||
|
;configuration for koji cli tool
|
||||||
|
|
||||||
|
;url of XMLRPC server
|
||||||
|
server = http://koji.fedoraproject.org/kojihub
|
||||||
|
|
||||||
|
;url of web interface
|
||||||
|
weburl = http://koji.fedoraproject.org/koji
|
||||||
|
|
||||||
|
;url of package download site
|
||||||
|
topurl = https://kojipkgs.fedoraproject.org/
|
||||||
|
|
||||||
|
;path to the koji top directory
|
||||||
|
;topdir = /mnt/koji
|
||||||
|
|
||||||
|
anon_retry = true
|
||||||
|
|
||||||
|
;configuration for SSL authentication
|
||||||
|
|
||||||
|
;client certificate
|
||||||
|
cert = ~/.fedora.cert
|
||||||
|
|
||||||
|
;certificate of the CA that issued the HTTP server certificate
|
||||||
|
serverca = ~/.fedora-server-ca.cert
|
21
roles/sigul/bridge/files/koji-primary.stg.conf
Normal file
21
roles/sigul/bridge/files/koji-primary.stg.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[koji]
|
||||||
|
|
||||||
|
;configuration for koji cli tool
|
||||||
|
|
||||||
|
;url of XMLRPC server
|
||||||
|
server = http://koji.stg.fedoraproject.org/kojihub
|
||||||
|
|
||||||
|
;url of web interface
|
||||||
|
weburl = http://koji.stg.fedoraproject.org/koji
|
||||||
|
|
||||||
|
;url of package download site
|
||||||
|
topurl = http://kojipkgs.stg.fedoraproject.org/
|
||||||
|
|
||||||
|
|
||||||
|
;configuration for SSL athentication
|
||||||
|
|
||||||
|
;client certificate
|
||||||
|
cert = ~/.fedora.cert
|
||||||
|
|
||||||
|
;certificate of the CA that issued the HTTP server certificate
|
||||||
|
serverca = ~/.fedora-server-ca.cert
|
|
@ -9,6 +9,14 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: Setup primary koji config file
|
||||||
|
copy: src=koji-primary.conf dest=/etc/koji-primary.conf owner=root group=root mode=644
|
||||||
|
when: inventory_hostname.startswith('sign') and env == "production"
|
||||||
|
|
||||||
|
- name: Setup primary stg koji config file
|
||||||
|
copy: src=koji-primary.stg.conf dest=/etc/koji-primary.conf owner=root group=root mode=644
|
||||||
|
when: inventory_hostname.startswith('sign') and env == "staging"
|
||||||
|
|
||||||
- name: Setup secondary koji config files
|
- name: Setup secondary koji config files
|
||||||
copy: src={{ item }} dest=/etc/{{ item }} owner=root group=root mode=644
|
copy: src={{ item }} dest=/etc/{{ item }} owner=root group=root mode=644
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -20,8 +20,11 @@ required-fas-group: signers
|
||||||
fas-user-name: {{ fedoraDummyUser }}
|
fas-user-name: {{ fedoraDummyUser }}
|
||||||
fas-password: {{ fedoraDummyUserPassword }}
|
fas-password: {{ fedoraDummyUserPassword }}
|
||||||
|
|
||||||
{% if inventory_hostname.startswith('secondary') %}
|
|
||||||
[koji]
|
[koji]
|
||||||
|
{% if inventory_hostname.startswith('sign') %}
|
||||||
|
koji-instances: primary
|
||||||
|
koji-config-ppc: /etc/koji-primary.conf
|
||||||
|
{% else %}
|
||||||
koji-instances: ppc s390 arm sparc
|
koji-instances: ppc s390 arm sparc
|
||||||
koji-config-ppc: /etc/koji-ppc.conf
|
koji-config-ppc: /etc/koji-ppc.conf
|
||||||
koji-config-s390: /etc/koji-s390.conf
|
koji-config-s390: /etc/koji-s390.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue