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

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