Skip to content

Commit 41ba430

Browse files
authored
Cleanup vars and README (#19)
1 parent ecab7ed commit 41ba430

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Role Variables
4141

4242
```yml
4343
jenkins_version: "2.73.1" # The exact version of jenkins to deploy
44-
jenkins_docker_image: "jenkins/jenkins" # The docker hub image name
4544

4645
jenkins_url: "http://127.0.0.1" # The url that Jenkins will be accessible on
4746
jenkins_port: "8080" # The port that Jenkins will listen on
@@ -96,25 +95,34 @@ jenkins_plugins:
9695
# List of sources of custom jenkins plugins to install
9796
jenkins_custom_plugins: []
9897

98+
###################################################
99+
# Docker vars: apply to deploying via docker only #
100+
###################################################
101+
102+
# The docker hub image name
103+
jenkins_docker_image: "jenkins/jenkins"
104+
99105
# Configs specific to the "docker" method of running jenkins
100106
# The name of the jenkins container
101107
jenkins_docker_container_name: jenkins
108+
102109
# Default, if true, the port will be exposed on the host (using "port")
103110
# If set to false, the port will only be exposed to other containers (using "expose")
104111
jenkins_docker_expose_port: true
105-
```
106112

107-
Debian-Specific Role Variables
108-
------------------------------
109113

110-
```yml
114+
#############################################
115+
# Apt vars: apply to deploying via apt only #
116+
#############################################
117+
111118
# Packages which are to be installed on the jenkins instance
112119
jenkins_apt_packages:
113120
- openjdk-8-jdk
114121

115122
# Java version to use. Note that JDK 8 is required for Jenkins
116123
# 2.54 or greater.
117124
jenkins_java_version: "java-1.8.0-openjdk-amd64"
125+
118126
```
119127
120128
Example Playbook
@@ -124,7 +132,7 @@ Example Playbook
124132
- hosts: jenkins
125133

126134
vars:
127-
jenkins_version: "1.642.4"
135+
jenkins_version: "2.73.1"
128136
jenkins_url: http://jenkins.example.com
129137
jenkins_port: 80
130138
jenkins_install_via: "docker"

defaults/main.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22

33
jenkins_version: "2.73.1" # The exact version of jenkins to deploy
4-
jenkins_docker_image: "jenkins/jenkins" # The docker hub image name
54

65
jenkins_url: "http://127.0.0.1" # The url that Jenkins will be accessible on
76
jenkins_port: "8080" # The port that Jenkins will listen on
@@ -47,10 +46,31 @@ jenkins_plugins:
4746
# List of sources of custom jenkins plugins to install
4847
jenkins_custom_plugins: []
4948

49+
###################################################
50+
# Docker vars: apply to deploying via docker only #
51+
###################################################
52+
53+
# The docker hub image name
54+
jenkins_docker_image: "jenkins/jenkins"
55+
5056
# Configs specific to the "docker" method of running jenkins
5157
# The name of the jenkins container
5258
jenkins_docker_container_name: jenkins
5359

5460
# Default, if true, the port will be exposed on the host (using "port")
5561
# If set to false, the port will only be exposed to other containers (using "expose")
5662
jenkins_docker_expose_port: true
63+
64+
65+
#############################################
66+
# Apt vars: apply to deploying via apt only #
67+
#############################################
68+
69+
# Packages which are to be installed on the jenkins instance
70+
jenkins_apt_packages:
71+
- openjdk-8-jdk
72+
73+
# Java version to use. Note that JDK 8 is required for Jenkins
74+
# 2.54 or greater.
75+
jenkins_java_version: "java-1.8.0-openjdk-amd64"
76+

vars/debian.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)