Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdn/ansible-jenkins
(Deprecated) Jenkins ansible playbook
https://github.com/mdn/ansible-jenkins
ansible jenkins
Last synced: about 2 months ago
JSON representation
(Deprecated) Jenkins ansible playbook
- Host: GitHub
- URL: https://github.com/mdn/ansible-jenkins
- Owner: mdn
- License: cc0-1.0
- Archived: true
- Created: 2018-08-16T00:05:03.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T14:58:07.000Z (over 1 year ago)
- Last Synced: 2024-08-09T02:17:17.672Z (5 months ago)
- Topics: ansible, jenkins
- Language: Jinja
- Homepage:
- Size: 75.2 KB
- Stars: 26
- Watchers: 13
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - mdn/ansible-jenkins - (Deprecated) Jenkins ansible playbook (Jinja)
README
# ansible-jenkins
This is an [ansible](http://ansible.com/) playbook to install and
configure [Jenkins-CI](http://jenkins-ci.org/).> **Note**
> As of 2023, we have migrated all our CI/CD workflows to GitHub Actions and no longer use Jenkins.The playbook will install NGINX, Docker, a local-only
SMTP server and Jenkins. It will also install Docker-maintenance cron
jobs and Jenkins-backup scripts to S3.This playbook assumes that the instance is behind an elb and the elb will
do its SSL termination. The ssl certificate can be obtained using AWS ACM
or can be manually uploadedThis playbook is a rework of the [ee-infra-jenkins](https://github.com/mozmeao/ee-infra-jenkins)
## Build your own
1. SSH to host you want to run this
2. Install `git` and `ansible`
3. Clone this repository to a location
4. Run the playbook
```
ansible-playbook site.yml -e "nginx_htpasswd=YourPasswordHere jenkins_backup_bucket=BucketNameHere jenkins_backup_dms=deadmanssitchurl jenkins_backup_directory=backupdirpath papertrail_host=papertrailurl papertrail_port=papertrailport"
```Currently this playbook is being used as part of an autoscaling group userdata that clones and runs this playbook on boot.
## Jenkins backups
This playbook expects that you use the [ThinBackup](https://wiki.jenkins-ci.org/display/JENKINS/thinBackup) Jenkins plugin and that you save backups in `/data/backups`.