Permalink
Browse files

Added support for passwords with funny characters, output parameter w…

…ith variables and downloading artifacts that only differ in classifier.
  • Loading branch information...
1 parent 3ca1a16 commit 46cb3ca4ccb170347c0b9917a14b9d49e313b4f9 Martin van Vliet committed Jan 20, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 manifests/artifact.pp
View
10 manifests/artifact.pp
@@ -34,7 +34,7 @@
include nexus
if ($nexus::authentication) {
- $args = "-u ${nexus::user} -p ${nexus::pwd}"
+ $args = "-u ${nexus::user} -p '${nexus::pwd}'"
} else {
$args = ""
}
@@ -46,17 +46,17 @@
$cmd = "/opt/nexus-script/download-artifact-from-nexus.sh -a ${gav} -e ${packaging} ${$includeClass} -n ${nexus::NEXUS_URL} -r ${repository} -o ${output} $args -v"
if $ensure == present {
- exec { "Download ${gav}":
+ exec { "Download ${gav}-${classifier}":
command => $cmd,
- unless => '/bin/test -f ${output}'
+ unless => "/bin/test -f ${output}"
}
} elsif $ensure == absent {
- file { "Remove ${gav}":
+ file { "Remove ${gav}-${classifier}":
path => $output,
ensure => absent
}
} else {
- exec { "Download ${gav}":
+ exec { "Download ${gav}-${classifier}":
command => $cmd,
}
}

0 comments on commit 46cb3ca

Please sign in to comment.