ansible_role_docker_jenkins
Ansible Role Docker Jenkins
This ansible role is used to install Jenkins with docker on server.
We eat, drink, sleep and most importantly love DevOps. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.
Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in ansible-playbook to achieve the desired yet consistent results.
Prerequisites
This module has a few dependencies:
What Includes
Following things includes in this role:
- jenkins
Example Playbook
IMPORTANT: Since the master
branch used in source
varies based on new modifications, we suggest that you use the release versions here.
- hosts: localhost
remote_user: root
become: true
roles:
- clouddrove.ansible_role_docker_jenkins
Variables
jenkins_version: "lts-alpine"
jenkins_caddy_server_name: jenkins.clouddrove.com
jenkins_opt_dir: "/opt/jenkins"
jenkins_config_dir: "{{ jenkins_opt_dir }}/config"
jenkins_tmp_dir: "{{ jenkins_opt_dir }}/tmp"
jenkins_data_dir: "{{ jenkins_opt_dir }}/data"
jenkins_https_port: "443"
jenkins_http_port: "8080"
jenkins_xmx: "{{ ( ansible_memtotal_mb * 0.20 ) | round(0, 'ceil') | int }}"
jenkins_user: jenkins
jenkins_group: jenkins
jenkins_hostname: localhost
jenkins_agent_port: "50001"
jenkins_plugins:
- git
- ssh
cert_path: "/root/config/star-clouddrove.crt"
key_path: "/root/config/clouddrove-sub-domain-private-key.pem"
Installation
$ ansible-galaxy install clouddrove.ansible_role_docker_jenkins
Feedback
If you come accross a bug or have any feedback, please log it in our issue tracker, or feel free to drop us an email at [email protected].
If you have found it worth your time, go ahead and give us a ★ on our GitHub!
About us
At CloudDrove, we offer expert guidance, implementation support and services to help organisations accelerate their journey to the cloud. Our services include docker and container orchestration, cloud migration and adoption, infrastructure automation, application modernisation and remediation, and performance engineering.
We are The Cloud Experts!
We ❤️ Open Source and you can check out our other modules to get help with your new Cloud ideas.
This ansible role is used to install Jenkins with docker on server.
ansible-galaxy install clouddrove/ansible-role-docker-jenkins