summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-09-06 11:46:46 +0200
committervarac <varacanero@zeromail.org>2012-09-06 11:46:46 +0200
commit653efcee3f3427817e63a8432df99c1e932e3261 (patch)
treeb3fee5ffa13215af0925d9ae58cbf9a17ac3f94e /deploy.sh
parent2c2e3608a251bdb8210767484e05c896f6803d6c (diff)
install puppet+facter from backports
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index c8f89b90..4da972b5 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,3 +1,15 @@
#!/bin/sh
+#
+# missing: header, licence, usage
+
+
+apt-get install lsb-release git
+
+# we need puppet from backports
+dist="`lsb_release -cs`"
+[ -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
+
+apt-get update
+apt-get install -t $dist-backports facter puppet
puppet apply --modulepath=$PWD/puppet/modules $PWD/puppet/manifests/site.pp $@