donal
2018-05-16 55ba1797dcee0c2dc455c1ac824958da595e7f9b
FIX some ordering errors
1 files added
3 files modified
12 ■■■■ changed files
1-the-manual-menace/README.md 10 ●●●● patch | view | raw | blame | history
4-an-enslaved-hope/README.md 2 ●●● patch | view | raw | blame | history
images/exercise1/jenkins-mongo.png patch | view | raw | blame | history
images/exercise4/zap-object.png patch | view | raw | blame | history
1-the-manual-menace/README.md
@@ -320,15 +320,15 @@
git push -u origin --all
```
#### 5 MongoDB for CI tests
### Part 5 MongoDB for CI tests
> In order to run our API tests in CI in later labs; we need there to be a MongoDB available for executing our tests. As this is part of our CI/CD Lifecycle; we will add it now.
4. In our `enablement-ci-cd` repo; checkout the mongo templates as shown below to bring in the template and params. The mongodb template we're using is the same as the one for our `todolist-fe` created in previous exercise.
```bash
git checkout exercise3/mongodb params/mongodb templates/mongodb.yml
git checkout exercise1/mongodb params/mongodb templates/mongodb.yml
```
4. Open `enablement-ci-cd` in your favourite editor. Edit the `inventory/host_vars/ci-cd-tooling.yml` to include a new object for our mongodb  as shown below. This item can be added below the jenkins slave in the `ci-cd-builds` section.
4. Open `enablement-ci-cd` in your favourite editor. Edit the `inventory/host_vars/ci-cd-tooling.yml` to include a new object for our mongodb  as shown below. This item can be added below the jenkins slave in the `ci-cd-tooling` section.
```yaml
  - name: "jenkins-mongodb"
    namespace: "{{ ci_cd_namespace }}"
@@ -337,7 +337,7 @@
    tags:
    - mongodb
```
![jenkins-mongo](../images/exercise3/jenkins-mongo.png)
![jenkins-mongo](../images/exercise1/jenkins-mongo.png)
4. Git commit your updates to the inventory to git for traceability.
```bash
@@ -378,7 +378,7 @@
JENKINS_OPTS=--sessionTimeout=720
```
5. Add a `jenkins` variable to the ansible inventory underneath the nexus (and git if you have it) in  `inventory/host_vars/ci-cd-tooling.yml`.
5. Add a `jenkins` variable to the ansible inventory underneath the jenkins-mongo (and git if you have it) in  `inventory/host_vars/ci-cd-tooling.yml`.
```yaml
    - name: "jenkins"
      namespace: "{{ ci_cd_namespace }}"
4-an-enslaved-hope/README.md
@@ -345,7 +345,7 @@
3. Update the `jenkins-slave-arachni` files `SOURCE_REPOSITORY_URL` to point to your gitlab's hosted version of the `enablement-ci-cd` repo.
```
SOURCE_REPOSITORY_URL=https://gitlab.apps.<SOME_DOMAIN>.com/<GIT_USERNAME>/enablement-ci-cd.git
SOURCE_REPOSITORY_URL=https://gitlab.apps.lader.rht-labs.com/<GIT_USERNAME>/enablement-ci-cd.git
SOURCE_CONTEXT_DIR=docker/jenkins-slave-arachni
BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:latest
NAME=jenkins-slave-arachni
images/exercise1/jenkins-mongo.png
images/exercise4/zap-object.png