Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alilotfi23/jenkins-automation
Jenkins fully Automation process with terrafrom and ansible
https://github.com/alilotfi23/jenkins-automation
ansible ansible-playbook jcasc jenkins terraform terraform-module
Last synced: about 2 months ago
JSON representation
Jenkins fully Automation process with terrafrom and ansible
- Host: GitHub
- URL: https://github.com/alilotfi23/jenkins-automation
- Owner: alilotfi23
- License: apache-2.0
- Created: 2024-03-07T15:54:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T15:45:08.000Z (2 months ago)
- Last Synced: 2024-12-08T16:28:45.746Z (2 months ago)
- Topics: ansible, ansible-playbook, jcasc, jenkins, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins-Automation
![Diagram](https://github.com/alilotfi23/Jenkins-Automation/assets/91953142/64090543-b28f-4e3c-b3e6-a11380e4f1f7)
## This project will Create vm on Vsphere and install and config Jenkins with ansible and jcasc## Asnible
Define the server on which you want to install Jenkins in the playbook.yml
```shell
hosts: your_ubuntu_server
```
## TerrformInstall provider
```shell
terraform init
```The Terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure
```shell
terraform plan
```Deploy vm on Vsphere
```shell
terraform apply
```
## jenkins.yaml file which contains jcasc configuration has a job section that clones all this project
```shell
jobs:
- script: >
freeStyleJob('MyGitHubJob') {
description('A job that clones a GitHub repository')
scm {
git {
remote {
url('https://github.com/alilotfi23/Jenkins-Automation.git')
credentials('your-github-credentials-id')
}
branches('*/main')
}
}
}
```