Skip to content

Commit

Permalink
group updates to public branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lj020326 committed Nov 8, 2024
1 parent af286af commit 5eb6143
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ https://github.com/lj020326/pipeline-automation-lib/blob/main/jobs/jobdsl/templa

An ansible role is used to setup all docker stack instances.

The `docker-stack` ansible role used to stand up the docker stack [can be found here](https://github.com/lj020326/ansible-datacenter/tree/main/roles/docker-stack).
The `bootstrap_docker_stack` ansible role used to stand up the docker stack [can be found here](https://github.com/lj020326/ansible-datacenter/tree/main/roles/bootstrap_docker_stack).

The [`docker-stack` ansible role](https://github.com/lj020326/ansible-datacenter/tree/main/roles/docker-stack) contains the [__jenkins config-as-code (jcac) yaml definition__](https://github.com/lj020326/ansible-datacenter/blob/main/roles/docker-stack/templates/jenkins_jcac/jenkins_casc.yml.j2) in template form used to setup the jenkins jcac instance.
The [`bootstrap_docker_stack` ansible role](https://github.com/lj020326/ansible-datacenter/tree/main/roles/bootstrap_docker_stack) contains the [__jenkins config-as-code (jcac) yaml definition__](https://github.com/lj020326/ansible-datacenter/blob/main/roles/bootstrap_docker_stack/templates/jenkins_jcac/jenkins_casc.yml.j2) in template form used to setup the jenkins jcac instance.

[The jcac definition can be found here](https://github.com/lj020326/ansible-datacenter/blob/main/roles/docker-stack/templates/jenkins_jcac/jenkins_casc.yml.j2).
[The jcac definition can be found here](https://github.com/lj020326/ansible-datacenter/blob/main/roles/bootstrap_docker_stack/templates/jenkins_jcac/jenkins_casc.yml.j2).

### Setup pipeline automation library used by all jenkins jobs<a name="setup-pipeline-automation-library-used-by-all-jenkins-jobs"></a>

Expand Down
2 changes: 1 addition & 1 deletion ansible
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This article will cover the issues around the automated development of software

The VM template build jobs are enabled using a jenkins shared library to automate the VM template build found at the [github repo here](https://github.com/lj020326/pipeline-automation-lib). The same library defines the `INFRA` project pipelines, including the vm-templates jobs with [job-dsl definition here](https://github.com/lj020326/pipeline-automation-lib/blob/main/jobs/jobdsl/templates/01_INFRA/init02_vm_templates.groovy).

The jenkins environment is setup using jenkins configuration-as-code. Ansible creates a docker swarm setup and leverage a template to render the jenkins runtime configuration at `jenkins_home/casc/jenkins.yml`. The ansible template used can be found in the [ansible repo on github here](https://github.com/lj020326/ansible-datacenter/blob/main/roles/docker-stack/templates/jenkins_jcac/jenkins_casc.yml.j2).
The jenkins environment is setup using jenkins configuration-as-code. Ansible creates a docker swarm setup and leverage a template to render the jenkins runtime configuration at `jenkins_home/casc/jenkins.yml`. The ansible template used can be found in the [ansible repo on github here](https://github.com/lj020326/ansible-datacenter/blob/main/roles/bootstrap_docker_stack/templates/jenkins_jcac/jenkins_casc.yml.j2).

The `seedjob.groovy` found at bottom of the `jenkins_home/casc/jenkins.yml` configuration is used upon starting jenkins to define/render/bootstrap all of the project folders and jobs/pipelines used within each project in code using jenkins job-dsl. The seedjob executes all of the `*.groovy` files located in the pipeline repo's `jobs/jobdsl/template/` folders. This allows a systematic method to create project+pipeline specific groovy files that can be used to completely bootstrap all projects.

Expand Down

0 comments on commit 5eb6143

Please sign in to comment.