vhost_reboot: clean up some old ocp stuff

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-09-30 10:41:51 -07:00
parent a6b405d31e
commit 654979219b

View file

@ -55,21 +55,7 @@
serial: 1
tasks:
# - name: delegate to on-control01 for ocp4 cluster
# set_fact:
# os_delegate_via: os-control01
# when: inventory_hostname in groups['ocp']
#
# - name: delegate to on-control01 for ocp4 cluster (stg)
# set_fact:
# os_delegate_via: os-control01.stg
# when: inventory_hostname in groups['ocp_stg']
#
# - name: drain OS node if necessary
# command: oc adm drain {{inventory_hostname }} --ignore-daemonsets --delete-local-data
# delegate_to: "{{os_delegate_via}}{{env_suffix}}.iad2.fedoraproject.org"
# when: inventory_hostname.startswith(('ocp', 'worker')) and hostvars[inventory_hostname].datacenter == 'iad2'
#
- name: schedule regular host downtime
nagios: action=downtime minutes=30 service=host host={{ inventory_hostname_short }}{{ env_suffix }}
delegate_to: noc01.iad2.fedoraproject.org
@ -133,21 +119,6 @@
tasks:
- name: delegate to on-control01 for ocp4 cluster
set_fact:
os_delegate_via: os-control01
when: inventory_hostname in groups['ocp']
- name: delegate to on-control01 for ocp4 cluster (stg)
set_fact:
os_delegate_via: os-control01.stg
when: inventory_hostname in groups['ocp_stg']
- name: Add back to openshift
command: oc adm uncordon {{inventory_hostname}}
delegate_to: "{{os_delegate_via}}{{env_suffix}}.iad2.fedoraproject.org"
when: inventory_hostname.startswith(('ocp', 'worker')) and hostvars[inventory_hostname].datacenter == 'iad2'
- name: restart gssproxy if we rebooted a ipa server
service: name=gssproxy state=restarted
when: inventory_hostname.startswith('ipa')