diff options
| author | Sayan Chowdhury <sayanchowdhury@fedoraproject.org> | 2016-03-03 23:37:13 +0530 |
|---|---|---|
| committer | Sayan Chowdhury <sayanchowdhury@fedoraproject.org> | 2016-03-03 18:52:37 +0000 |
| commit | 9140595423a6720b110ea7edd87e705b6ac3973e (patch) | |
| tree | b9f411e76c6f943842eaa2ae2856e91261ae6d51 /roles/bugyou | |
| parent | 7fc596759b94f5a17f8c1bc73436fa330d89b956 (diff) | |
| download | ansible-9140595423a6720b110ea7edd87e705b6ac3973e.tar.gz ansible-9140595423a6720b110ea7edd87e705b6ac3973e.tar.xz ansible-9140595423a6720b110ea7edd87e705b6ac3973e.zip | |
Add roles for bugyou_plugins
Diffstat (limited to 'roles/bugyou')
| -rw-r--r-- | roles/bugyou/bugyou-master/tasks/main.yml (renamed from roles/bugyou/tasks/main.yml) | 14 | ||||
| -rw-r--r-- | roles/bugyou/bugyou-master/templates/bugyou.py (renamed from roles/bugyou/templates/bugyou.py) | 0 | ||||
| -rw-r--r-- | roles/bugyou/bugyou-plugins/tasks/main.yml | 32 | ||||
| -rw-r--r-- | roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg | 3 | ||||
| -rw-r--r-- | roles/bugyou/bugyou-plugins/templates/bugyou_services.cfg | 8 | ||||
| -rw-r--r-- | roles/bugyou/templates/bugyou.cfg | 3 |
6 files changed, 44 insertions, 16 deletions
diff --git a/roles/bugyou/tasks/main.yml b/roles/bugyou/bugyou-master/tasks/main.yml index f25160661..3bc86c9a6 100644 --- a/roles/bugyou/tasks/main.yml +++ b/roles/bugyou/bugyou-master/tasks/main.yml @@ -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 }} diff --git a/roles/bugyou/templates/bugyou.py b/roles/bugyou/bugyou-master/templates/bugyou.py index 3952d3fae..3952d3fae 100644 --- a/roles/bugyou/templates/bugyou.py +++ b/roles/bugyou/bugyou-master/templates/bugyou.py diff --git a/roles/bugyou/bugyou-plugins/tasks/main.yml b/roles/bugyou/bugyou-plugins/tasks/main.yml new file mode 100644 index 000000000..cf128cf5a --- /dev/null +++ b/roles/bugyou/bugyou-plugins/tasks/main.yml @@ -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 diff --git a/roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg b/roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg new file mode 100644 index 000000000..8f6bc1c23 --- /dev/null +++ b/roles/bugyou/bugyou-plugins/templates/bugyou_plugins.cfg @@ -0,0 +1,3 @@ +[autocloud] +services = pagure +topic = org.fedoraproject.prod.autocloud.image.success, org.fedoraproject.prod.autocloud.image.failed diff --git a/roles/bugyou/bugyou-plugins/templates/bugyou_services.cfg b/roles/bugyou/bugyou-plugins/templates/bugyou_services.cfg new file mode 100644 index 000000000..bbb1e6e01 --- /dev/null +++ b/roles/bugyou/bugyou-plugins/templates/bugyou_services.cfg @@ -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 %} diff --git a/roles/bugyou/templates/bugyou.cfg b/roles/bugyou/templates/bugyou.cfg deleted file mode 100644 index 2aee1f509..000000000 --- a/roles/bugyou/templates/bugyou.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[general] -repo_name = atomic-images -access_token = {{bugyou_pagure_atomic_images_api_key}} |
