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: 5 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T15:45:08.000Z (over 1 year ago)
- Last Synced: 2025-08-21T13:46:14.590Z (11 months ago)
- Topics: ansible, ansible-playbook, jcasc, jenkins, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 43.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins-Automation

## 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
```
## Terrform
Install 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')
}
}
}
```