Start working on the simple-koji-ci playbook

This commit is contained in:
Pierre-Yves Chibon 2017-11-21 16:01:34 +01:00
parent 1afabeef71
commit 4d29d49b2d
3 changed files with 73 additions and 0 deletions

View file

@ -31,3 +31,9 @@
hostname: name="{{inventory_hostname}}"
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- role: keytab/service
service: simple-koji-ci
- role: simple-koji-ci

View file

@ -0,0 +1,24 @@
---
# Configuration for simple-koji-ci
- name: install needed packages
package: name={{ item }} state=present
with_items:
- simple-koji-ci
tags:
- packages
- simple-koji-ci
- name: copy simple-koji-ci configuration
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
owner=root, group=root mode=0640
with_items:
- { file: simple-koji-ci.py, location: /etc/fedmsg}
changed_when: "1 != 1"
tags:
- config
- simple-koji-ci
notify:
- restart fedmsg-hub

View file

@ -0,0 +1,43 @@
config = {
'simple-koji-ci.enabled': True,
'simple-koji-ci.koji': {
'server': 'https://koji.stg.fedoraproject.org/kojihub',
'weburl': 'https://koji.stg.fedoraproject.org/koji',
# Kerberos configuration to authenticate with Koji. In development
# environments, use `kinit <fas-name>@FEDORAPROJECT.ORG` to get a
# Kerberos ticket and use the default settings below.
'krb_principal': None,
'krb_keytab': None,
'krb_ccache': None,
'krb_proxyuser': None,
'krb_sessionopts': {'timeout': 3600, 'krb_rdns': False},
'git_url': 'https://src.stg.fedoraproject.org/rpms/{package}.git',
'opts': {'scratch': True},
'priority': 30,
'target_tag': 'rawhide',
},
"simple-koji-ci.cache": {
"backend": "dogpile.cache.dbm",
"expiration_time": 300,
"arguments": {
"filename": "/var/tmp/simple-koji-ci-cache.dbm",
},
},
"simple-koji-ci.pagure_url" : "https://src.stg.fedoraproject.org",
"simple-koji-ci.pagure_token" : "{{ simple_koji_ci_pagure_token_stg }}",
# The time in seconds the-new-hotness should wait for a socket to connect
# before giving up.
'simple-koji-ci.connect_timeout': 15,
# The time in seconds the-new-hotness should wait for a read from a socket
# before giving up.
'simple-koji-ci.read_timeout': 15,
# The number of times the-new-hotness should retry a network request that
# that failed for any reason (e.g. read timeout, DNS error, etc)
'simple-koji-ci.requests_retries': 3,
}