Also do draining for os-master nodes

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
Patrick Uiterwijk 2019-02-27 22:55:18 +01:00
parent 000cad6a8d
commit 45e9dbcade

View file

@ -47,7 +47,7 @@
- name: drain OS node if necessary
command: oc adm drain {{inventory_hostname }} --ignore-daemonsets --delete-local-data
delegate_to: os-master01{{env_suffix}}.phx2.fedoraproject.org
when: inventory_hostname.startswith('os-node')
when: inventory_hostname.startswith(('os-node', 'os-master'))
- name: schedule regular host downtime
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
@ -117,7 +117,7 @@
- name: Add back to openshift
command: oc adm uncordon {{inventory_hostname}}
delegate_to: os-master01{{env_suffix}}.phx2.fedoraproject.org
when: inventory_hostname.startswith('os-node')
when: inventory_hostname.startswith(('os-node', 'os-master'))
# Call out to that dns playbook. Put proxies back in now that they're back
- import_playbook: update-proxy-dns.yml status=enable proxies=myvms_new:&proxies