Skip to content

ocp-power-automation/ocp4-playbooks-extras

Repository files navigation

Extra Ansible Playbooks for OCP4

This repository consists of additional ansible playbooks for the following:

  1. Run e2e tests against an existing OCP4 cluster
  2. Run scale tests against an existing OCP4 cluster
  3. Expose OCP internal image registry
  4. Run alerts configuration
  5. Run migration and rollback of Container Network Interface (CNI) cluster network provider
  6. Run OVN-Kubernetes CNI Validation
  7. Run Global Secret Update
  8. Run etcd data encryption and decryption
  9. Run IBM Block storage CSI (Raw block)
  10. Run OCP ClusterLogForwarding Installation
  11. Go Lang Installation
  12. Run OCP Node Feature Discovery Operator Installation
  13. Run SBO installation and running smoke acceptance tests
  14. Configure HTPasswd Identity Provider
  15. Set custom catalog source
  16. Run Horizontal Pod Autoscaler installation and verification
  17. Jenkins installation and verification
  18. Vertical Pod Autoscaler installation, verification and e2e
  19. Setup persistent storage using hostPath
  20. PowerVC CSI driver installation and validation
  21. Setup persistent storage using iSCSI
  22. OC CLI-plug-ins automation testing
  23. Run cluster health check
  24. Run Compliance Operator installation and e2e
  25. Hypershift deployment on PowerVS
  26. Run File Integrity Operator and e2e
  27. Configure and test IPA identity provider
  28. Enable monitoring for user-defined projects
  29. Configure and test Request-Header identity provider
  30. Descheduler deployment and running e2e test
  31. Configure and run verification-tests
  32. Enabling Stream Control Transmission Protocol (SCTP) and run e2e
  33. Deploy Kubernetes NMState Operator and run e2e
  34. Enable pod disruption budget (pdb)
  35. Scheduler profile configuration and run e2e tests
  36. Cluster Resource Override Operator deployment and e2e test run
  37. Deploy MetalLB operator and run e2e
  38. Hypershift Agent based installation

Assumptions:

  • A healthy OpenShift 4 cluster in running state.

Setting up inventory

Make use of sample file at examples/inventory.

cp examples/inventory .

Run the playbooks

Run all playbooks at once or specific playbook as shown below.

Run all playbooks

To set up variables make use of the sample file at examples/all.yaml. Modify the values as per your cluster.

cp examples/all.yaml .

Once you have configured the vars & inventory file, run the playbook using:

ansible-playbook  -i inventory -e @all.yaml playbooks/main.yml

Run specific playbook

To set up variables for specific playbook make use of the sample file at examples/<playbook_vars.yaml>. Modify the values as per your cluster. For more information refer to examples.

cp examples/<playbook_vars.yaml> .

Once you have configured the vars & inventory file, run the specific playbook using:

ansible-playbook  -i inventory -e @<playbook_vars.yaml> playbooks/main.yml

Note:
The Ansible playbook fails when a role requires the make module or when running all playbooks using playbooks/main.yaml, as described in Issue 42.

Install collection community.general:

ansible-galaxy collection install community.general

License

See LICENCE.txt

About

Extra Ansible Playbooks for OCP4 on Power

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published