Skip to content

Commit 3a3b50c

Browse files
committed
add cifmw_snr_nhc role for SNR and NHC deployment
This role automates the deployment and verification of the Self Node Remediation (SNR) and Node Health Check (NHC) components on OpenShift clusters. Included features: - Creation of required namespaces and OperatorGroups - Installation of SNR and NHC operators via Subscriptions - Verification of CRs like SelfNodeRemediationTemplate, Config, and NodeHealthCheck - Full lifecycle handling including status checks and readiness validation
1 parent b121940 commit 3a3b50c

File tree

4 files changed

+463
-0
lines changed

4 files changed

+463
-0
lines changed

roles/cifmw_snr_nhc/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# cifmw_snr_nhc
2+
Apply Self Node Remediation and Node Health Check Custom Resources on OpenShift.
3+
4+
## Privilege escalation
5+
None - all actions use the provided kubeconfig and require no additional host privileges.
6+
7+
## Parameters
8+
* `cifmw_snr_nhc_kubeconfig`: (String) Path to the kubeconfig file.
9+
* `cifmw_snr_nhc_kubeadmin_password_file`: (String) Path to the kubeadmin password file.
10+
* `cifmw_snr_nhc_namespace`: (String) Namespace used for SNR and NHC resources.
11+
12+
## Examples
13+
```yaml
14+
- name: Configure SNR and NHC
15+
hosts: masters
16+
roles:
17+
- role: cifmw_snr_nhc
18+
cifmw_snr_nhc_kubeconfig: "/home/zuul/.kube/config"
19+
cifmw_snr_nhc_kubeadmin_password_file: "/home/zuul/.kube/kubeadmin-password"
20+
cifmw_snr_nhc_namespace: openshift-workload-availability

roles/cifmw_snr_nhc/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
cifmw_snr_nhc_kubeconfig: "/home/zuul/.kube/config"
3+
cifmw_snr_nhc_kubeadmin_password_file: "/home/zuul/.kube/kubeadmin-password"
4+
cifmw_snr_nhc_namespace: openshift-workload-availability

roles/cifmw_snr_nhc/meta/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
galaxy_info:
3+
author: CI Framework
4+
description: CI Framework Role -- cifmw_snr_nhc
5+
company: Red Hat
6+
license: Apache-2.0
7+
min_ansible_version: "2.14"
8+
namespace: cifmw
9+
galaxy_tags:
10+
- cifmw
11+
12+
dependencies: []

0 commit comments

Comments
 (0)