Skip to content

Commit

Permalink
Merge pull request voxpupuli#398 from nespresso/feature/Giving_the_po…
Browse files Browse the repository at this point in the history
…ssibility_to_get_swarm_plugin_from_a_custom_location

client_url is hardcoded in slave.pp
  • Loading branch information
R. Tyler Croy committed Oct 13, 2015
2 parents 1b13202 + 410e116 commit 77fdc16
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/slave.pp
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,17 @@
$tool_locations = undef,
$install_java = $jenkins::params::install_java,
$ensure = 'running',
$enable = true
$enable = true,
$source = undef,
) inherits jenkins::params {

validate_string($tool_locations)

$client_jar = "swarm-client-${version}-jar-with-dependencies.jar"
$client_url = "http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/plugins/swarm-client/${version}/"
$client_url = $source ? {
undef => "http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/plugins/swarm-client/${version}/",
default => $source,
}
$quoted_ui_user = shellquote($ui_user)
$quoted_ui_pass = shellquote($ui_pass)

Expand Down

0 comments on commit 77fdc16

Please sign in to comment.