summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 00000000..0db6cf91
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,23 @@
+#!/bin/sh -x
+#
+# missing: header, licence, usage
+
+PUPPET_ENV='--confdir=puppet'
+
+install_prerequisites () {
+ apt-get update
+ apt-get install puppet git
+
+ # lsb is needed for a first puppet run
+ puppet apply $PUPPET_ENV --execute 'include lsb'
+ git submodule init
+ git submodule update
+}
+
+# main
+
+# commented for testing purposes
+install_prerequisites
+
+puppet apply $PUPPET_ENV puppet/manifests/site.pp $@
+