Skip to content

add cifmw_snr_nhc role for SNR and NHC deployment #3062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/dictionary/en-custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ networkconfig
networkmanager
networktype
nfs
nhc
nftables
nic
nigzpbgugpsavdmfyl
Expand Down Expand Up @@ -507,6 +508,7 @@ sig
Sinha
sizepercent
skbg
snr
skiplist
specificities
spnego
Expand Down
20 changes: 20 additions & 0 deletions roles/cifmw_snr_nhc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# cifmw_snr_nhc
Apply Self Node Remediation and Node Health Check Custom Resources on OpenShift.

## Privilege escalation
None - all actions use the provided kubeconfig and require no additional host privileges.

## Parameters
* `cifmw_snr_nhc_kubeconfig`: (String) Path to the kubeconfig file.
* `cifmw_snr_nhc_kubeadmin_password_file`: (String) Path to the kubeadmin password file.
* `cifmw_snr_nhc_namespace`: (String) Namespace used for SNR and NHC resources.

## Examples
```yaml
- name: Configure SNR and NHC
hosts: masters
roles:
- role: cifmw_snr_nhc
cifmw_snr_nhc_kubeconfig: "/home/zuul/.kube/config"
cifmw_snr_nhc_kubeadmin_password_file: "/home/zuul/.kube/kubeadmin-password"
cifmw_snr_nhc_namespace: openshift-workload-availability
4 changes: 4 additions & 0 deletions roles/cifmw_snr_nhc/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
cifmw_snr_nhc_kubeconfig: "/home/zuul/.kube/config"
cifmw_snr_nhc_kubeadmin_password_file: "/home/zuul/.kube/kubeadmin-password"
cifmw_snr_nhc_namespace: openshift-workload-availability
12 changes: 12 additions & 0 deletions roles/cifmw_snr_nhc/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
galaxy_info:
author: CI Framework
description: CI Framework Role -- cifmw_snr_nhc
company: Red Hat
license: Apache-2.0
min_ansible_version: "2.14"
namespace: cifmw
galaxy_tags:
- cifmw

dependencies: []
Loading