Add roles for bugyou_plugins
This commit is contained in:
parent
7fc596759b
commit
9140595423
6 changed files with 44 additions and 16 deletions
|
@ -1,27 +1,15 @@
|
||||||
---
|
---
|
||||||
# Configuration for Bugyou
|
# Configuration for Bugyou
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages for bugyou
|
||||||
yum: pkg={{ item }} state=present
|
yum: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- python-libpagure
|
|
||||||
- bugyou
|
- bugyou
|
||||||
notify:
|
notify:
|
||||||
- restart fedmsg-hub
|
- restart fedmsg-hub
|
||||||
tags:
|
tags:
|
||||||
- bugyou
|
- 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
|
- name: copy bugyou fedmsg configuration
|
||||||
template: >
|
template: >
|
||||||
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
|
src={{ item }} dest=/etc/fedmsg.d/{{ item }}
|
32
roles/bugyou/bugyou-plugins/tasks/main.yml
Normal file
32
roles/bugyou/bugyou-plugins/tasks/main.yml
Normal 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
|
3
roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg
Normal file
3
roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[autocloud]
|
||||||
|
services = pagure
|
||||||
|
topic = org.fedoraproject.prod.autocloud.image.success, org.fedoraproject.prod.autocloud.image.failed
|
|
@ -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 %}
|
|
@ -1,3 +0,0 @@
|
||||||
[general]
|
|
||||||
repo_name = atomic-images
|
|
||||||
access_token = {{bugyou_pagure_atomic_images_api_key}}
|
|
Loading…
Add table
Add a link
Reference in a new issue