mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
The messaging bridges openshift project and github2fedmsg VM were already removed in staging. This is to clean the ansible playbooks. I will create a separate one for production after this one is merged. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
96 lines
2.7 KiB
YAML
96 lines
2.7 KiB
YAML
# Restart fedmsg services
|
|
#
|
|
# The grande list of "what is running and where" is maintained here manually.
|
|
# By running this playbook, you're not actually guaranteed that all services
|
|
# everywhere will be restarted. As stuff changes over time, this playbook will
|
|
# need to be periodically updated with new things.
|
|
|
|
---
|
|
- name: Restart fedmsg-gateway instances
|
|
hosts: fedmsg_gateways
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Bounce the fedmsg-gateway service
|
|
service: name=fedmsg-gateway state=restarted
|
|
|
|
- name: Restart fedmsg-relay instances
|
|
hosts: fedmsg_relays
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Bounce the fedmsg-relay service
|
|
service: name=fedmsg-relay state=restarted
|
|
|
|
- name: Restart fedmsg-irc instances
|
|
hosts: fedmsg_ircs
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Bounce the fedmsg-irc service
|
|
service: name=fedmsg-irc state=restarted
|
|
|
|
- name: Tell nagios to be quiet about FMN for the moment
|
|
hosts: notifs_backend
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Schedule a 25 minute downtime. give notifs backend time to start up.
|
|
nagios: action=downtime minutes=25 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
|
delegate_to: noc01.iad2.fedoraproject.org
|
|
ignore_errors: true
|
|
# - name: Bounce the fmn-digests service
|
|
# service: name=fmn-digests@1 state=restarted
|
|
|
|
- name: Restart fedmsg-hub instances
|
|
hosts: fedmsg_hubs
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Bounce the fedmsg-hub service
|
|
service: name=fedmsg-hub state=restarted
|
|
|
|
- name: Restart moksha-hub instances
|
|
hosts: moksha_hubs
|
|
user: root
|
|
gather_facts: false
|
|
|
|
vars_files:
|
|
- /srv/web/infra/ansible/vars/global.yml
|
|
- "/srv/private/ansible/vars.yml"
|
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
|
|
|
tasks:
|
|
- name: Bounce the moksha-hub service
|
|
service: name=moksha-hub state=restarted
|