Add bugyou roles
This commit is contained in:
parent
e43cf5940b
commit
a8355e7419
4 changed files with 53 additions and 1 deletions
|
@ -56,7 +56,7 @@
|
|||
|
||||
roles:
|
||||
- fedmsg/hub
|
||||
#- bugyou # TODO -- we still have to write this role.
|
||||
- bugyou
|
||||
- role: collectd/fedmsg-service
|
||||
process: fedmsg-hub
|
||||
|
||||
|
|
34
roles/bugyou/tasks/main.yml
Normal file
34
roles/bugyou/tasks/main.yml
Normal 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
|
3
roles/bugyou/templates/bugyou.cfg
Normal file
3
roles/bugyou/templates/bugyou.cfg
Normal file
|
@ -0,0 +1,3 @@
|
|||
[general]
|
||||
repo_name = atomic-images
|
||||
access_token = {{bugyou_pagure_atomic_images_api_key}}
|
15
roles/bugyou/templates/bugyou.py
Normal file
15
roles/bugyou/templates/bugyou.py
Normal 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'],
|
||||
},
|
||||
),
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue