Add roles for bugyou_plugins

This commit is contained in:
Sayan Chowdhury 2016-03-03 23:37:13 +05:30
parent 7fc596759b
commit 9140595423
6 changed files with 44 additions and 16 deletions

View file

@ -1,27 +1,15 @@
---
# Configuration for Bugyou
- name: install needed packages
- name: install needed packages for bugyou
yum: 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 }}

View file

@ -0,0 +1,32 @@
---
# Configuration for Bugyou Plugins
- name: install needed packages for bugyou_plugins
yum: pkg={{ item }} state=present
with_items:
- python-libpagure
- bugyou_plugins
notify:
- restart fedmsg-hub
tags:
- bugyou/plugins
- name: copy bugyou plugins configuration files
template: >
src={{ item }}
dest=/etc/bugyou/{{ item }}
owner=root
group=fedmsg
mode=0640
with_items:
- bugyou_plugins.cfg
- bugyou_services.cfg
notify:
- restart fedmsg-hub
tags:
- bugyou/plugins
- name: start the bugyou-cntrl
service: name=bugyou-cntrl state=started
tags:
- bugyou/plugins

View file

@ -0,0 +1,3 @@
[autocloud]
services = pagure
topic = org.fedoraproject.prod.autocloud.image.success, org.fedoraproject.prod.autocloud.image.failed

View file

@ -0,0 +1,8 @@
[autocloud_pagure]
{% if env == 'staging' %}
repo_name = atomic-images-test
access_token = {{bugyou_stg_pagure_atomic_images_api_key}}
{% else %}
repo_name = atomic-images
access_token = {{bugyou_pagure_atomic_images_api_key}}
{% endif %}

View file

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