Donal Spring
2018-05-21 9543475e3607c49f2d7d5b889cf35a639ed76fde
README.md
@@ -6,13 +6,17 @@
1. Clone this repository.
1. Log on to an OpenShift server `oc login -u <user> https://<server>:<port>/`
1. Install the required [casl-ansible](https://github.com/redhat-cop/casl-ansible) dependency:
1. Install the required [openshift-applier](https://github.com/redhat-cop/openshift-applier) dependency:
```bash
ansible-galaxy install -r requirements.yml --roles-path=roles
```
1. Run the play book using
1. Run the play book using this to create projects and roles
```bash
ansible-playbook roles/casl-ansible/playbooks/openshift-cluster-seed.yml -i inventory/
ansible-playbook apply.yml -i inventory/ -e target=bootstrap
```
1. 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
@@ -21,7 +25,7 @@
2. The only required tag to deploy objects within the inventory is **projects**, all other tags are *optional*
2. Here is an example that runs the tags that provision projects, ci, and jenkins objects:
```bash
ansible-playbook roles/casl-ansible/playbooks/openshift-cluster-seed.yml \
ansible-playbook apply.yml -e target=tools \
     -i inventory/ \
     -e="filter_tags=jenkins,ci,projects"
     -e "filter_tags=jenkins,ci,projects"
```