Also define primary koji

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-09-12 23:39:12 +00:00
parent 43a02102eb
commit d8a97f3b9b
4 changed files with 58 additions and 1 deletions

View 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

View 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

View file

@ -9,6 +9,14 @@
tags:
- 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
copy: src={{ item }} dest=/etc/{{ item }} owner=root group=root mode=644
with_items:

View file

@ -20,8 +20,11 @@ required-fas-group: signers
fas-user-name: {{ fedoraDummyUser }}
fas-password: {{ fedoraDummyUserPassword }}
{% if inventory_hostname.startswith('secondary') %}
[koji]
{% if inventory_hostname.startswith('sign') %}
koji-instances: primary
koji-config-ppc: /etc/koji-primary.conf
{% else %}
koji-instances: ppc s390 arm sparc
koji-config-ppc: /etc/koji-ppc.conf
koji-config-s390: /etc/koji-s390.conf