Set up ansible to do new fedora-packages in prod.
This commit is contained in:
parent
a71165245a
commit
2fa3374061
2 changed files with 2 additions and 29 deletions
|
@ -85,26 +85,8 @@
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
- name: dole out the old service specific config
|
- name: dole out the new service specific config
|
||||||
hosts: packages
|
hosts: packages;packages-stg
|
||||||
user: root
|
|
||||||
gather_facts: True
|
|
||||||
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- fedmsg/base
|
|
||||||
- packages/web
|
|
||||||
- collectd/fcomm-queue
|
|
||||||
|
|
||||||
handlers:
|
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
|
||||||
|
|
||||||
- name: dole out the new service specific config to staging
|
|
||||||
hosts: packages-stg
|
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
|
|
|
@ -38,23 +38,14 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: packages/web
|
|
||||||
when: env != "staging"
|
|
||||||
- role: packages3/web
|
- role: packages3/web
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- service: name="fedmsg-hub" state=stopped
|
- service: name="fedmsg-hub" state=stopped
|
||||||
when: env == "staging"
|
|
||||||
- service: name="fcomm-cache-worker" state=stopped
|
|
||||||
when: env != "staging"
|
|
||||||
- service: name="httpd" state=stopped
|
- service: name="httpd" state=stopped
|
||||||
# TODO -- do any DB maintenance steps we need to do here..
|
# TODO -- do any DB maintenance steps we need to do here..
|
||||||
- service: name="httpd" state=started
|
- service: name="httpd" state=started
|
||||||
- service: name="fcomm-cache-worker" state=started
|
|
||||||
when: env != "staging"
|
|
||||||
- service: name="fedmsg-hub" state=started
|
- service: name="fedmsg-hub" state=started
|
||||||
when: env == "staging"
|
|
||||||
|
|
||||||
- name: tell nagios to unshush
|
- name: tell nagios to unshush
|
||||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue