Add bugyou roles

This commit is contained in:
Sayan Chowdhury 2015-12-08 06:27:10 +00:00
parent e43cf5940b
commit a8355e7419
4 changed files with 53 additions and 1 deletions

View file

@ -56,7 +56,7 @@
roles:
- fedmsg/hub
#- bugyou # TODO -- we still have to write this role.
- bugyou
- role: collectd/fedmsg-service
process: fedmsg-hub

View file

@ -0,0 +1,34 @@
---
# Configuration for Bugyou
- name: install needed packages
dnf: pkg={{ item }} state=present
with_items:
- python-libpagure
- bugyou
notify:
- restart fedmsg-hub
tags:
- bugyou
- name: copy bugyou service configuration
template: >
src={{ item }} dest=/etc/bugyou/{{ item }}
owner=root group=fedmsg mode=0640
with_items:
- bugyou.cfg
notify:
- restart fedmsg-hub
tags:
- bugyou
- name: copy bugyou fedmsg configuration
template: >
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
owner=root group=fedmsg mode=0640
with_items:
- bugyou.py
notify:
- restart fedmsg-hub
tags:
- bugyou

View file

@ -0,0 +1,3 @@
[general]
repo_name = atomic-images
access_token = {{bugyou_pagure_atomic_images_api_key}}

View file

@ -0,0 +1,15 @@
config = {
# Consumer stuff
"bugyou.consumer.enabled": True,
# Turn on the logging for bugyou
"logging": dict(
loggers=dict(
bugyou={
"level": "DEBUG",
"propagate": False,
"handlers": ['console'],
},
),
},
}