summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-09-06 14:23:17 +0200
committervarac <varacanero@zeromail.org>2012-09-06 14:23:17 +0200
commit45c8d3fb727e00ac2a9de3a9fc83f4500b981d55 (patch)
treeb223a10e640c2a538d17c0ab0aaabe4e5a5ee48b
parent81812a5f631d40b83f862de3da30e2e0b4e2efaa (diff)
install ruby-hiera-puppet
-rwxr-xr-xdeploy.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 441a1128..fd109c13 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -7,9 +7,19 @@ apt-get install lsb-release git
# we need puppet from backports
dist="`lsb_release -cs`"
+
+# enable backports for puppet + facter
[ -f /etc/apt/sources.list.d/$dist-backports.list ] || echo "deb http://backports.debian.org/debian-backports/ $dist-backports main contrib non-free">/etc/apt/sources.list.d/$dist-backports.list
+# enable debian testing for ruby-hiera-puppet
+cat > /etc/apt/preferences.d/wheezy <<DELIM
+Package: *
+Pin: release o=Debian,n=wheezy
+Pin-Priority: 2
+DELIM
+
apt-get update
apt-get install -y -t $dist-backports facter puppet
+apt-get install ruby-hiera-puppet ruby-hiera
puppet apply --modulepath=$PWD/puppet/modules $PWD/puppet/manifests/site.pp $@