donal
2018-04-05 09f041eba783f3af5e1d9fae85bc6ebfb5262dce
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>/`
9 1. Install the required [casl-ansible](https://github.com/redhat-cop/casl-ansible) dependency:
10 ```bash
11 ansible-galaxy install -r requirements.yml --roles-path=roles
12 ```
13 1. Run the play book using
14 ```bash
15 ansible-playbook roles/casl-ansible/playbooks/openshift-cluster-seed.yml -i inventory/
16 ```
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
24 ansible-playbook roles/casl-ansible/playbooks/openshift-cluster-seed.yml \
25      -i inventory/ \
26      -e="filter_tags=jenkins,ci,projects"
27 ```