mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
vhost_reboot: disable ocp for now until we can sort it out
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
eth0_ipv4_gw: 10.3.166.254
|
||||
eth0_ipv4_ip: 10.3.166.75
|
||||
ks_repo: http://10.3.163.35/pub/fedora/linux/releases/37/Server/x86_64/os/
|
||||
ks_repo: http://10.3.163.35/pub/fedora/linux/releases/38/Server/x86_64/os/
|
||||
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-fedora
|
||||
nrpe_procs_crit: 1400
|
||||
nrpe_procs_warn: 1200
|
||||
|
||||
@@ -44,21 +44,21 @@
|
||||
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: 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
|
||||
|
||||
Reference in New Issue
Block a user