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:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
- name: dole out the old service specific config
|
||||
hosts: packages
|
||||
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
|
||||
- name: dole out the new service specific config
|
||||
hosts: packages;packages-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
|
@ -38,23 +38,14 @@
|
|||
ignore_errors: true
|
||||
|
||||
roles:
|
||||
- role: packages/web
|
||||
when: env != "staging"
|
||||
- role: packages3/web
|
||||
when: env == "staging"
|
||||
|
||||
post_tasks:
|
||||
- service: name="fedmsg-hub" state=stopped
|
||||
when: env == "staging"
|
||||
- service: name="fcomm-cache-worker" state=stopped
|
||||
when: env != "staging"
|
||||
- service: name="httpd" state=stopped
|
||||
# TODO -- do any DB maintenance steps we need to do here..
|
||||
- service: name="httpd" state=started
|
||||
- service: name="fcomm-cache-worker" state=started
|
||||
when: env != "staging"
|
||||
- service: name="fedmsg-hub" state=started
|
||||
when: env == "staging"
|
||||
|
||||
- name: tell nagios to unshush
|
||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue