summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index c8f89b90..6aab1119 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,3 +1,21 @@
-#!/bin/sh
+#!/bin/sh -x
+#
+# missing: header, licence, usage
+
+PUPPET_ENV='--confdir=puppet'
+
+install_prerequisites () {
+ apt-get update
+ apt-get install puppet
+
+ # lsb is needed for a first puppet run
+ puppet apply $PUPPET_ENV --execute 'include lsb'
+}
+
+# main
+
+# commented for testing purposes
+#install_prerequisites
+
+puppet apply $PUPPET_ENV puppet/manifests/site.pp $@
-puppet apply --modulepath=$PWD/puppet/modules $PWD/puppet/manifests/site.pp $@