From a029d04952370d1254ad6a6d73a7d4c5a2e4fe12 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 18 Mar 2015 14:19:37 +0000 Subject: [PATCH] Schedule brief nagios downtime for FMN after restart. --- playbooks/manual/restart-fedmsg-services.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/playbooks/manual/restart-fedmsg-services.yml b/playbooks/manual/restart-fedmsg-services.yml index c2916e623d..23e95bbcf9 100644 --- a/playbooks/manual/restart-fedmsg-services.yml +++ b/playbooks/manual/restart-fedmsg-services.yml @@ -47,6 +47,22 @@ - 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;notifs-backend-stg + 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 10 minute downtime. give notifs backend time to start up. + nagios: action=downtime minutes=10 service=host host={{ inventory_hostname }} + delegate_to: noc01.phx2.fedoraproject.org + ignore_errors: true + - name: restart fedmsg-hub instances hosts: fedmsg-hubs;fedmsg-hubs-stg user: root