aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Boudnik <konstantin_boudnik@epam.com>2017-07-18 19:48:44 -0700
committerNaresh Bhat <naresh.bhat@linaro.org>2017-07-26 17:02:16 +0530
commitd343146956d2e8d35e086f6bfc5a094e65ca8b10 (patch)
tree483a0c3b4a6e1f2082102d90f30b24b90e615784
parentef61e5721c31e0dc89b865a176298094e54401a2 (diff)
BIGTOP-2849. Cannot build bigtop/slaves-ubuntu-16.04 with fresh built puppet image
-rwxr-xr-xbigtop_toolchain/bin/puppetize.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bigtop_toolchain/bin/puppetize.sh b/bigtop_toolchain/bin/puppetize.sh
index a5ae590b..b2ade5f6 100755
--- a/bigtop_toolchain/bin/puppetize.sh
+++ b/bigtop_toolchain/bin/puppetize.sh
@@ -84,5 +84,9 @@ puppet module install puppetlabs-stdlib
case ${ID} in
debian|ubuntu)
- puppet module install puppetlabs-apt;;
+ version=""
+ if [ `puppet --version | cut -c1` -lt "4" ]; then
+ version="--version 2.4.0"
+ fi
+ puppet module install puppetlabs-apt $version;;
esac