Also do draining for os-master nodes
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
000cad6a8d
commit
45e9dbcade
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue