Automation Orchestrator install and tweaks
This commit is contained in:
23
playbooks/maintain_sno_etcd.yml
Normal file
23
playbooks/maintain_sno_etcd.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# Defragment etcd on the single-node OpenShift cluster.
|
||||
#
|
||||
# OpenShift disables automatic etcd defragmentation on single-control-plane
|
||||
# clusters, so run this on a schedule (e.g. weekly AAP schedule, off-hours).
|
||||
# It only defragments when fragmentation exceeds the thresholds of the
|
||||
# etcdDatabaseHighFragmentationRatio alert; otherwise it reports and exits.
|
||||
#
|
||||
# Usage:
|
||||
# ansible-navigator run playbooks/maintain_sno_etcd.yml --mode stdout
|
||||
# ansible-navigator run playbooks/maintain_sno_etcd.yml --mode stdout -e sno_etcd_defrag_force=true
|
||||
|
||||
- name: Defragment etcd on single-node OpenShift
|
||||
hosts: sno.openshift.toal.ca
|
||||
gather_facts: false
|
||||
connection: local
|
||||
|
||||
environment:
|
||||
KUBECONFIG: "{{ ocp_kubeconfig | default('~/.kube/config') }}"
|
||||
K8S_AUTH_VERIFY_SSL: "false"
|
||||
|
||||
roles:
|
||||
- role: sno_etcd_defrag
|
||||
Reference in New Issue
Block a user