donal
2018-04-17 b921353e5ab3436b0ddaa10bd852b55433c8ad5e
FIX lab instructions cuz of the rework
3 files modified
18 ■■■■ changed files
1-the-manual-menace/README.md 8 ●●●● patch | view | raw | blame | history
2-attack-of-the-pipelines/README.md 10 ●●●● patch | view | raw | blame | history
images/exercise2/jenkins-slave-ansible.png patch | view | raw | blame | history
1-the-manual-menace/README.md
@@ -184,9 +184,9 @@
```
![ci-cd-deployments-yml](../images/exercise1/ci-cd-deployments-yml.png)
4. Run the OpenShift applier, specifying the tag `nexus` to speed up it's execution (`-e "target=ci-cd-tools"` is to run the other inventory).
4. Run the OpenShift applier, specifying the tag `nexus` to speed up it's execution (`-e target=tools` is to run the other inventory).
```bash
$ ansible-playbook apply.yml -e "target=ci-cd-tools" \
$ ansible-playbook apply.yml -e target=tools \
     -i inventory/ \
     -e "filter_tags=nexus"
```
@@ -245,7 +245,7 @@
4. Run the OpenShift applier, specifying the tag `gitlab` to speed up it's execution.
```bash
$ ansible-playbook apply.yml -e "target=ci-cd-tools" \
$ ansible-playbook apply.yml -e target=tools \
     -i inventory/ \
     -e "filter_tags=gitlab"
```
@@ -380,7 +380,7 @@
5. When your code is commited; run the OpenShift Applier to add the config to the cluster
```bash
$ ansible-playbook apply.yml -e "target=ci-cd-tools" \
$ ansible-playbook apply.yml -e target=tools \
     -i inventory/ \
     -e "filter_tags=jenkins"
```
2-attack-of-the-pipelines/README.md
@@ -296,12 +296,12 @@
NAME=npm-jenkins-slave
```
3. Create an item in the `inventory/group_vars/all.yml` under the `ci-cd-builds` object to run the template with. Don't forget to substitute `<YOUR_NAME>`
3. Create an item in the `inventory/host_vars/ci-cd-tooling.yml` under the `ci-cd-builds` object to run the template with.
```yaml
  - name: "jenkins-npm-slave"
    namespace: "<YOUR_NAME>-ci-cd"
    template: "{{ inventory_dir }}/../templates/jenkins-slave-generic-template.yml"
    params: "{{ inventory_dir }}/../params/jenkins-slave-npm"
    namespace: "{{ ci_cd_namespace }}"
    template: "{{ playbook_dir }}/templates/jenkins-slave-generic-template.yml"
    params: "{{ playbook_dir }}/params/jenkins-slave-npm"
    tags:
    - jenkins-slave
```
@@ -309,7 +309,7 @@
3. Run the OpenShift Applier to trigger a build of this jenkins slave image.
```bash
$ ansible-playbook roles/openshift-applier/playbooks/openshift-cluster-seed.yml \
$ ansible-playbook apply.yml -e target=tools \
     -i inventory/ \
     -e "filter_tags=jenkins-slave"
```
images/exercise2/jenkins-slave-ansible.png