Skip to content

Commit

Permalink
Backport voxpupuli#883: Allow custom location for slave JAVA command
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaf committed Sep 14, 2018
1 parent 89cff0a commit 1d2d437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions manifests/slave.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
# parameter so the `::jenkins` class does not need to be the catalog for
# slave only nodes.
#
# [*java_cmd*]
# Path to the java command in ${defaults_location}/jenkins-slave. Defaults to '/usr/bin/java'
#

# === Examples
#
Expand Down Expand Up @@ -119,6 +122,7 @@
$source = undef,
$java_args = undef,
$proxy_server = undef,
$java_cmd = '/usr/bin/java',
) inherits jenkins::params {
validate_string($slave_name)
validate_string($description)
Expand Down
2 changes: 1 addition & 1 deletion templates/jenkins-slave-defaults.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
NAME=jenkins-slave

# location of java
JAVA=/usr/bin/java
JAVA=<%= @java_cmd %>

# arguments to pass to java
#JAVA_ARGS="-Xmx256m"
Expand Down

0 comments on commit 1d2d437

Please # to comment.