Repository: bigtop
Updated Branches:
  refs/heads/master 0648a2fe3 -> 3f8216e1e


BIGTOP-2003. Bigtop puppet fails to deploy on Ubuntu due to a hiera 1.3.0 bug


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/3f8216e1
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/3f8216e1
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/3f8216e1

Branch: refs/heads/master
Commit: 3f8216e1ef8e7aff8fe4b54b7aaca29c364c33c6
Parents: 0648a2f
Author: Evans Ye <[email protected]>
Authored: Fri Sep 4 00:57:10 2015 +0800
Committer: Evans Ye <[email protected]>
Committed: Fri Sep 4 17:34:45 2015 +0000

----------------------------------------------------------------------
 bigtop-deploy/vm/utils/setup-env-debian.sh | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/3f8216e1/bigtop-deploy/vm/utils/setup-env-debian.sh
----------------------------------------------------------------------
diff --git a/bigtop-deploy/vm/utils/setup-env-debian.sh 
b/bigtop-deploy/vm/utils/setup-env-debian.sh
index aa173b9..46bdc87 100755
--- a/bigtop-deploy/vm/utils/setup-env-debian.sh
+++ b/bigtop-deploy/vm/utils/setup-env-debian.sh
@@ -17,6 +17,15 @@
 
 enable_local_repo=${1:-false}
 
+# BIGTOP-2003. A workaround to install newer hiera to get rid of hiera 1.3.0 
bug.
+# This hack should be removed when newer hiera is available natively in Ubuntu.
+cat /etc/*release |grep Ubuntu >/dev/null
+if [ $? == 0 ]; then
+    wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
+    sudo dpkg -i puppetlabs-release-trusty.deb
+    sudo apt-get update
+fi
+
 # Install puppet agent
 apt-get update
 apt-get -y install puppet curl sudo unzip

Reply via email to