Skip to content

r3dact3d/OpenShift4-Ansible-Roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge
badge

Purpose

To provide reusable automation to run ansible plays and roles against OpenShift 4 clusters

Note
This will always pull the latest stable OpenShift 4 CLI tools

Requirements

You will need an OpenShift 4 cluster deployed with access to the kubeconfig

Roles

  • Add any addition modules to requirements.txt with openshift listed

Deploy-Operator

  1. Create repository secret in GitHub Settings > Secrets called KUBECONFIG that contains kubeconfig details

  2. Update ansible playbook called main.yaml to ensure vars are set

    1. ansible_python_interpreter: /usr/bin/python3

    2. OPERATOR-NAME: web-terminal put operator to install here

    3. NAMESPACE: openshift-operators put namespace to install operator at here

Workflow

Once the main branch is pushed with updates to main.yaml the workflow will trigger the actions that will run ansible-playbook.

This is intended to simulate running Ansible playbooks to engineer, operate, or manage OpenShift 4 clusters on a bastion host. The playbook is intended to run locally on runner and use either oc, kubectl, or other modules that interact with OpenShift APIs or any APIs.

About

Ansible role to deploy OpenShift Operators

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published