diff --git a/inventory/group_vars/all.yml b/inventory/group_vars/all.yml index 57e32eb4..4f69b5fb 100644 --- a/inventory/group_vars/all.yml +++ b/inventory/group_vars/all.yml @@ -7,7 +7,7 @@ openshift_templates_raw: "https://raw.githubusercontent.com/redhat-cop/openshift openshift_templates_raw_version_tag: "v1.3" cop_quickstarts: "https://github.com/redhat-cop/containers-quickstarts.git" cop_quickstarts_raw: "https://raw.githubusercontent.com/redhat-cop/containers-quickstarts" -cop_quickstarts_raw_version_tag: "v1.9" +cop_quickstarts_raw_version_tag: "v1.13" ci_cd: NAMESPACE: "{{ ci_cd_namespace }}" diff --git a/inventory/host_vars/ci-cd-tooling.yml b/inventory/host_vars/ci-cd-tooling.yml index a3faf088..e520f0b7 100644 --- a/inventory/host_vars/ci-cd-tooling.yml +++ b/inventory/host_vars/ci-cd-tooling.yml @@ -32,6 +32,56 @@ jenkins: GITLAB_TOKEN: "token123" GITLAB_GROUP_NAME: "rht-labs" +jenkins_slaves: + build: + ansible: + NAME: jenkins-slave-ansible + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-ansible + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + arachni: + NAME: jenkins-slave-arachni + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-arachni + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + python: + NAME: jenkins-slave-python + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-python + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + golang: + NAME: jenkins-slave-golang + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-golang + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + gradle: + NAME: jenkins-slave-gradle + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-gradle + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + mongodb: + NAME: jenkins-slave-mongodb + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-mongodb + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + mvn: + NAME: jenkins-slave-mvn + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-mvn + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + npm: + BUILDER_IMAGE_NAME: openshift/jenkins-slave-base-centos7:v3.11 + NAME: jenkins-slave-npm + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-npm + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + zap: + BUILDER_IMAGE_NAME: centos:centos7 + NAME: jenkins-slave-zap + SOURCE_CONTEXT_DIR: jenkins-slaves/jenkins-slave-zap + SOURCE_REPOSITORY_REF: "{{ cop_quickstarts_raw_version_tag }}" + SOURCE_REPOSITORY_URL: "{{ cop_quickstarts }}" + nexus: secret: SECRET_NAME: "nexus-password" @@ -153,69 +203,12 @@ openshift_cluster_content: # Jenkins slave agents to give him some superpowers in OCP land - object: jenkins-slave-nodes content: - - name: jenkins-slave-mvn - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/mvn" + - name: jenkins-slave-agents + template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/.openshift/templates/jenkins-slave-generic-template.j2" + params_from_vars: "{{ jenkins_slaves.build }}" namespace: "{{ ci_cd_namespace }}" tags: - jenkins-slaves - - mvn-slave - - name: jenkins-slave-npm - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/npm" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - npm-slave - - name: jenkins-slave-zap - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/zap" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - zap-slave - - name: jenkins-slave-ansible - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/ansible" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - ansible-slave - - name: jenkins-slave-arachni - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/arachni" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - arachni-slave - - name: jenkins-slave-gradle - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/gradle" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - gradle-slave - - name: jenkins-slave-golang - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/golang" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - golang-slave - - name: jenkins-slave-mongodb - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/mongodb" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - mongodb-slave - - name: jenkins-slave-python - template: "{{ cop_quickstarts_raw }}/{{ cop_quickstarts_raw_version_tag }}/jenkins-slaves/.openshift/templates/jenkins-slave-generic-template.yml" - params: "{{ inventory_dir }}/../params/jenkins-slaves/python" - namespace: "{{ ci_cd_namespace }}" - tags: - - jenkins-slaves - - python-slave # CI/CD Deployments is the OpenShift Deployment Configs and all # supporting tooling, pre and post hooks needed to setup and configure a comprehensive tool chain diff --git a/params/jenkins-slaves/ansible b/params/jenkins-slaves/ansible deleted file mode 100644 index 367e1674..00000000 --- a/params/jenkins-slaves/ansible +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-ansible -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-ansible -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/arachni b/params/jenkins-slaves/arachni deleted file mode 100644 index 2d072ea4..00000000 --- a/params/jenkins-slaves/arachni +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-arachni -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-arachni -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/golang b/params/jenkins-slaves/golang deleted file mode 100644 index e16f4366..00000000 --- a/params/jenkins-slaves/golang +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-golang -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-golang -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/gradle b/params/jenkins-slaves/gradle deleted file mode 100644 index 1272dcd4..00000000 --- a/params/jenkins-slaves/gradle +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-gradle -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-gradle -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/mongodb b/params/jenkins-slaves/mongodb deleted file mode 100644 index 1565381d..00000000 --- a/params/jenkins-slaves/mongodb +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-mongodb -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-mongodb -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/mvn b/params/jenkins-slaves/mvn deleted file mode 100644 index 804baa07..00000000 --- a/params/jenkins-slaves/mvn +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-mvn -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-agent-maven-35-rhel7:latest -NAME=jenkins-slave-mvn -SOURCE_REPOSITORY_REF=v1.9 -DOCKERFILE_PATH=Dockerfile -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/npm b/params/jenkins-slaves/npm deleted file mode 100644 index bede0226..00000000 --- a/params/jenkins-slaves/npm +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-npm -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-npm -SOURCE_REPOSITORY_REF=v1.9 -DOCKERFILE_PATH=Dockerfile.rhel7 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/python b/params/jenkins-slaves/python deleted file mode 100644 index c95090d7..00000000 --- a/params/jenkins-slaves/python +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-python -BUILDER_IMAGE_NAME=registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7:v3.11 -NAME=jenkins-slave-python -SOURCE_REPOSITORY_REF=v1.9 -SLAVE_IMAGE_TAG=latest diff --git a/params/jenkins-slaves/zap b/params/jenkins-slaves/zap deleted file mode 100644 index 35ca6081..00000000 --- a/params/jenkins-slaves/zap +++ /dev/null @@ -1,7 +0,0 @@ -SOURCE_REPOSITORY_URL=https://github.com/redhat-cop/containers-quickstarts.git -SOURCE_CONTEXT_DIR=jenkins-slaves/jenkins-slave-zap -BUILDER_IMAGE_NAME=centos:centos7 -NAME=jenkins-slave-zap -SOURCE_REPOSITORY_REF=v1.9 -DOCKERFILE_PATH=Dockerfile -SLAVE_IMAGE_TAG=latest diff --git a/requirements.yml b/requirements.yml index 3836818f..a94103ae 100644 --- a/requirements.yml +++ b/requirements.yml @@ -4,5 +4,5 @@ # From 'openshift-applier' - src: https://github.com/redhat-cop/openshift-applier scm: git - version: v2.1.0 + version: v2.1.1 name: openshift-applier