-
Notifications
You must be signed in to change notification settings - Fork 9
/
README.yaml
91 lines (82 loc) · 2.58 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
#
# This is the canonical configuration for the `README.md`
# Run `make readme` to rebuild the `README.md`
#
# Name of this project
name: Ansible Role Docker Jenkins
# License of this project
license: "MIT"
# Canonical GitHub repo
github_repo: clouddrove/ansible-role-docker-jenkins
# Badges to display
badges:
- name: "Ansible"
image: "https://img.shields.io/badge/Ansible-2.8-green?style=flat&logo=ansible"
url: "https://www.ansible.com"
- name: "Licence"
image: "https://img.shields.io/badge/License-MIT-blue.svg"
url: "LICENSE.md"
- name: "Distribution"
image: "https://img.shields.io/badge/ubuntu-16.x-orange?style=flat&logo=ubuntu"
url: "https://ubuntu.com/"
- name: "Distribution"
image: "https://img.shields.io/badge/ubuntu-18.x-orange?style=flat&logo=ubuntu"
url: "https://ubuntu.com/"
- name: "Distribution"
image: "https://img.shields.io/badge/centos-7.x-orange"
url: "https://www.centos.org/"
# Prerequesties to display
# yamllint disable
prerequesties:
- name: "Ansible2.8"
url: "https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html"
- name: "Python"
url: "https://www.python.org/downloads"
- name: "Docker"
url: "https://docs.docker.com/install/linux/docker-ce/ubuntu"
- name: "Docker Caddy"
url: "https://github.com/clouddrove/ansible-role-docker-caddy"
# yamllint enable
# What Includes to display
what_includes:
- name: "jenkins"
# description of this project
description: |-
This ansible role is used to install Jenkins with docker on server.
# How to use this project
usage: |-
```yaml
- hosts: localhost
remote_user: root
become: true
roles:
- clouddrove.ansible_role_docker_jenkins
```
# Variables use in the project
variables: |-
```yaml
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"
```
# How to install project
installation: |-
```console
$ ansible-galaxy install clouddrove.ansible_role_docker_jenkins
```