Tag up this role.

This commit is contained in:
Ralph Bean 2015-08-18 21:57:53 +00:00
parent e3759d9580
commit ec1252bb19
2 changed files with 40 additions and 1 deletions

View file

@ -4,12 +4,18 @@
- name: add ftpsync group - name: add ftpsync group
group: name=ftpsync gid=263 system=yes state=present group: name=ftpsync gid=263 system=yes state=present
tags:
- bodhi
- name: add ftpsync user - name: add ftpsync user
user: name=ftpsync uid=263 group=ftpsync createhome=yes system=yes state=present user: name=ftpsync uid=263 group=ftpsync createhome=yes system=yes state=present
tags:
- bodhi
- name: add the ftpsync update-fullfilelist script - name: add the ftpsync update-fullfilelist script
copy: src=update-fullfilelist dest=/usr/local/bin/update-fullfilelist owner=ftpsync group=ftpsync mode=555 copy: src=update-fullfilelist dest=/usr/local/bin/update-fullfilelist owner=ftpsync group=ftpsync mode=555
tags:
- bodhi
- name: install needed packages - name: install needed packages
yum: pkg={{ item }} state=present yum: pkg={{ item }} state=present
@ -20,13 +26,18 @@
- fedmsg-relay - fedmsg-relay
tags: tags:
- packages - packages
- bodhi
- name: add masher group - name: add masher group
group: name=masher gid=751 system=yes state=present group: name=masher gid=751 system=yes state=present
tags:
- bodhi
# masher user 751 # masher user 751
- name: add masher user as 751 - and group - name: add masher user as 751 - and group
user: name=masher uid=751 group=masher home=/home/masher groups=mock,ftpsync,bodhi user: name=masher uid=751 group=masher home=/home/masher groups=mock,ftpsync,bodhi
tags:
- bodhi
- name: install bodhi-masher /etc/httpd/conf.d/bodhi.conf file - name: install bodhi-masher /etc/httpd/conf.d/bodhi.conf file
copy: > copy: >
@ -38,6 +49,7 @@
notify: notify:
- restart httpd - restart httpd
tags: tags:
- bodhi
- config - config
- name: change owner and group attributes of bodhi.pem file - name: change owner and group attributes of bodhi.pem file
@ -47,12 +59,14 @@
group=masher group=masher
when: inventory_hostname.startswith('bodhi-backend') when: inventory_hostname.startswith('bodhi-backend')
tags: tags:
- bodhi
- config - config
- name: change owner and group attributes of /var/log/bodhi directory - name: change owner and group attributes of /var/log/bodhi directory
file: path=/var/log/bodhi owner=masher group=masher file: path=/var/log/bodhi owner=masher group=masher
when: inventory_hostname.startswith('bodhi-backend') when: inventory_hostname.startswith('bodhi-backend')
tags: tags:
- bodhi
- config - config
- name: setup /etc/bodhi/mash.conf file... - name: setup /etc/bodhi/mash.conf file...
@ -64,6 +78,7 @@
mode=0640 mode=0640
tags: tags:
- config - config
- bodhi
- name: change type part of SELinux file context - name: change type part of SELinux file context
file: > file: >
@ -73,6 +88,7 @@
recurse=yes recurse=yes
tags: tags:
- config - config
- bodhi
#- name: change owner attribute of /var/tmp/bodhi-bz.cookie file #- name: change owner attribute of /var/tmp/bodhi-bz.cookie file
# file: > # file: >
@ -80,6 +96,7 @@
# owner=masher # owner=masher
# tags: # tags:
# - config # - config
# - bodhi
- name: install /etc/bodhi/*.mash files - name: install /etc/bodhi/*.mash files
copy: > copy: >
@ -100,6 +117,7 @@
- epel7-testing.mash - epel7-testing.mash
tags: tags:
- config - config
- bodhi
# tasks for setting up epelmasher # tasks for setting up epelmasher
@ -109,6 +127,7 @@
- repoview - repoview
tags: tags:
- packages - packages
- bodhi
- name: install bodhi-epel-masher /etc/bodhi/bodhi.cfg file - name: install bodhi-epel-masher /etc/bodhi/bodhi.cfg file
template: > template: >
@ -122,6 +141,7 @@
- restart httpd - restart httpd
tags: tags:
- config - config
- bodhi
# tasklist for setting up jobrunner # tasklist for setting up jobrunner
@ -137,6 +157,7 @@
- restart httpd - restart httpd
tags: tags:
- config - config
- bodhi
# #
# cron job that syncs packages to koji # cron job that syncs packages to koji
@ -145,6 +166,7 @@
# template: src=owner-sync-pkgdb.j2 dest=/usr/local/bin/owner-sync-pkgdb mode=0755 # template: src=owner-sync-pkgdb.j2 dest=/usr/local/bin/owner-sync-pkgdb mode=0755
# tags: # tags:
# - config # - config
# - bodhi
- name: sync packages from pkgdb2 to koji (el5) - name: sync packages from pkgdb2 to koji (el5)
cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root" cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root"
@ -152,6 +174,8 @@
cron_file=update-koji-owner-EL-5 cron_file=update-koji-owner-EL-5
state=absent state=absent
when: inventory_hostname.startswith('bodhi-backend01') and env == "production" when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
- bodhi
- name: sync packages from pkgdb2 to koji (el6) - name: sync packages from pkgdb2 to koji (el6)
cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root" cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root"
@ -159,6 +183,8 @@
cron_file=update-koji-owner-EL-6 cron_file=update-koji-owner-EL-6
state=absent state=absent
when: inventory_hostname.startswith('bodhi-backend01') and env == "production" when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
- bodhi
- name: sync packages from pkgdb2 to koji (epel7) - name: sync packages from pkgdb2 to koji (epel7)
cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root" cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root"
@ -166,6 +192,8 @@
cron_file=update-koji-owner-epel7 cron_file=update-koji-owner-epel7
state=absent state=absent
when: inventory_hostname.startswith('bodhi-backend01') and env == "production" when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
tags:
- bodhi
- name: sync packages from pkgdb2 to koji (f20) - name: sync packages from pkgdb2 to koji (f20)
cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root" cron: name="owner-sync-el5" minute="7,17,27,37,47,57" user="root"
@ -173,6 +201,8 @@
cron_file=update-koji-owner-f20 cron_file=update-koji-owner-f20
state=absent state=absent
when: inventory_hostname.startswith('bodhi-backend01') when: inventory_hostname.startswith('bodhi-backend01')
tags:
- bodhi
# #
# cron job that syncs updates to master mirror # cron job that syncs updates to master mirror
@ -183,18 +213,24 @@
# tags: # tags:
# - config # - config
# when: inventory_hostname.startswith('bodhi-backend01') and env == "production" # when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
# tags:
# - bodhi
# #
##- name: put fedora-epel-push in place ##- name: put fedora-epel-push in place
# copy: src=fedora-epel-push dest=/usr/local/bin/fedora-epel-push mode=0755 # copy: src=fedora-epel-push dest=/usr/local/bin/fedora-epel-push mode=0755
# tags: # tags:
# - config # - config
# when: inventory_hostname.startswith('bodhi-backend02') and env == "production" # when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
# tags:
# - bodhi
# #
#- name: put update-fullfilelist in place #- name: put update-fullfilelist in place
# copy: src=update-fullfilelist dest=/usr/local/bin/update-fullfilelist mode=0755 # copy: src=update-fullfilelist dest=/usr/local/bin/update-fullfilelist mode=0755
# tags: # tags:
# - config # - config
# when: inventory_hostname.startswith('bodhi-backend01') and env == "production" # when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
# tags:
# - bodhi
# #
#- name: Updates sync cron job. #- name: Updates sync cron job.
# cron: name="updates-sync" minute="15,45" user="ftpsync" # cron: name="updates-sync" minute="15,45" user="ftpsync"
@ -203,6 +239,7 @@
# when: inventory_hostname.startswith('bodhi-backend01') and env == "production" # when: inventory_hostname.startswith('bodhi-backend01') and env == "production"
# tags: # tags:
# - config # - config
# - bodhi
# #
#- name: epel Updates sync cron job. #- name: epel Updates sync cron job.
# cron: name="epel-updates-sync" minute="15,45" user="ftpsync" # cron: name="epel-updates-sync" minute="15,45" user="ftpsync"
@ -211,6 +248,7 @@
# when: inventory_hostname.startswith('bodhi-backend02') and env == "production" # when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
# tags: # tags:
# - config # - config
# - bodhi
# #
#- name: directory sizes update cron job. #- name: directory sizes update cron job.
# cron: name="directory-sizes-update" minute="30" hour="19" user="ftpsync" # cron: name="directory-sizes-update" minute="30" hour="19" user="ftpsync"
@ -219,6 +257,7 @@
# when: inventory_hostname.startswith('bodhi-backend02') and env == "production" # when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
# tags: # tags:
# - config # - config
# - bodhi
# #
- name: have the masher own the bodhi config - name: have the masher own the bodhi config
file: > file: >

View file

@ -98,7 +98,7 @@
owner=bodhi owner=bodhi
group=bodhi group=bodhi
mode=0400 mode=0400
when: inventory_hostname.startswith('bodhi') when: inventory_hostname.startswith('bodhi0')
tags: tags:
- config - config
- bodhi - bodhi