Skip to content

Commit 43c67fb

Browse files
Merge pull request #88 from sbitio/sbitio-214
Add java_params with default value '-Xmx128m -Xms128m' for the jenkins-cli
2 parents 9f148e1 + ea55fe9 commit 43c67fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manifests/jenkins.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
Hash $rogues = {},
1212
Hash $user_defaults = {},
1313
Hash $users = {},
14+
String $java_params = '-Xmx128m -Xms128m',
1415
) {
1516

1617
if $enabled {
@@ -21,7 +22,7 @@
2122
anchor {'ducktape-jenkins-completed': }
2223

2324
### Create wrapper for jenkins cli
24-
$jenkins_cli = "/usr/bin/java -jar ${::jenkins::cli::jar} -s http://127.0.0.1:${jenkins::cli_helper::port}${jenkins::cli_helper::prefix}"
25+
$jenkins_cli = "/usr/bin/java -jar ${java_params} ${::jenkins::cli::jar} -s http://127.0.0.1:${jenkins::cli_helper::port}${jenkins::cli_helper::prefix}"
2526
file {'/usr/local/bin/jenkins-cli':
2627
ensure => 'present',
2728
content => epp('ducktape/jenkins/jenkins-cli', {'command' => $jenkins_cli, 'auth' => regsubst($::jenkins::_cli_auth_arg, "'", "", 'IG')}),

0 commit comments

Comments
 (0)