@@ -41,7 +41,6 @@ Role Variables
41
41
42
42
``` yml
43
43
jenkins_version : " 2.73.1" # The exact version of jenkins to deploy
44
- jenkins_docker_image : " jenkins/jenkins" # The docker hub image name
45
44
46
45
jenkins_url : " http://127.0.0.1" # The url that Jenkins will be accessible on
47
46
jenkins_port : " 8080" # The port that Jenkins will listen on
@@ -96,25 +95,34 @@ jenkins_plugins:
96
95
# List of sources of custom jenkins plugins to install
97
96
jenkins_custom_plugins : []
98
97
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
+
99
105
# Configs specific to the "docker" method of running jenkins
100
106
# The name of the jenkins container
101
107
jenkins_docker_container_name : jenkins
108
+
102
109
# Default, if true, the port will be exposed on the host (using "port")
103
110
# If set to false, the port will only be exposed to other containers (using "expose")
104
111
jenkins_docker_expose_port : true
105
- ` ` `
106
112
107
- Debian-Specific Role Variables
108
- ------------------------------
109
113
110
- ` ` ` yml
114
+ # ############################################
115
+ # Apt vars: apply to deploying via apt only #
116
+ # ############################################
117
+
111
118
# Packages which are to be installed on the jenkins instance
112
119
jenkins_apt_packages :
113
120
- openjdk-8-jdk
114
121
115
122
# Java version to use. Note that JDK 8 is required for Jenkins
116
123
# 2.54 or greater.
117
124
jenkins_java_version : " java-1.8.0-openjdk-amd64"
125
+
118
126
` ` `
119
127
120
128
Example Playbook
@@ -124,7 +132,7 @@ Example Playbook
124
132
- hosts : jenkins
125
133
126
134
vars :
127
- jenkins_version : " 1.642.4 "
135
+ jenkins_version : " 2.73.1 "
128
136
jenkins_url : http://jenkins.example.com
129
137
jenkins_port : 80
130
138
jenkins_install_via : " docker"
0 commit comments