donal
2018-04-06 04eacdcdfc085c3814f188b9f2ac342860a4eb9a
commit | author | age
62813b 1 # Open Innovation Labs Enablement CI/CD Exercise
D 2
3 Repository hosts the Labs Enablement material. It is a working skeleton that learners will use in conjunction with the [enablement-docs](https://github.com/rht-labs/enablement-docs).
4
5 ### Basic usage
6
7 1. Clone this repository.
8 1. Log on to an OpenShift server `oc login -u <user> https://<server>:<port>/`
04eacd 9 1. Install the required [openshift-applier](https://github.com/redhat-cop/openshift-applier) dependency:
62813b 10 ```bash
D 11 ansible-galaxy install -r requirements.yml --roles-path=roles
12 ```
13 1. Run the play book using
14 ```bash
04eacd 15 ansible-playbook roles/openshift-applier/playbooks/openshift-cluster-seed.yml -i inventory/
62813b 16 ```
D 17
18 ## Running a Subset of the Inventory
19
20 2. See [the docs](https://github.com/redhat-cop/casl-ansible/tree/master/roles/openshift-applier#filtering-content-based-on-tags) in casl-ansible
21 2. The only required tag to deploy objects within the inventory is **projects**, all other tags are *optional*
22 2. Here is an example that runs the tags that provision projects, ci, and jenkins objects:
23 ```bash
04eacd 24 ansible-playbook roles/openshift-applier/playbooks/openshift-cluster-seed.yml \
62813b 25      -i inventory/ \
D 26      -e="filter_tags=jenkins,ci,projects"
27 ```