Open Innovation Labs Enablement CI/CD Exercise
Repository hosts the Labs Enablement material. It is a working skeleton that learners will use in conjunction with the enablement-docs.
Basic usage
- Clone this repository.
- Log on to an OpenShift server
oc login -u <user> https://<server>:<port>/
- Install the required openshift-applier dependency:
bash ansible-galaxy install -r requirements.yml --roles-path=roles
- Run the play book using this to create projects and roles
bash ansible-playbook apply.yml -i inventory/ -e target=bootstrap
- Run the play book using this to create projects and roles
bash ansible-playbook apply.yml -i inventory/ -e target=tools
Running a Subset of the Inventory
- See the docs in casl-ansible
- The only required tag to deploy objects within the inventory is projects, all other tags are optional
- Here is an example that runs the tags that provision projects, ci, and jenkins objects:
bash ansible-playbook apply.yml -e target=tools \ -i inventory/ \ -e "filter_tags=jenkins,ci,projects"