summaryrefslogtreecommitdiff
path: root/vagrant/add-pixelated.sh
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-03-07 12:23:05 +0100
committervarac <varacanero@zeromail.org>2016-03-07 12:26:31 +0100
commite6e0b2b9c5cad7f7a66b0aedaf3ab67438eedf2d (patch)
tree5620cea2751d764af51534e9143f197a136ff2f4 /vagrant/add-pixelated.sh
parent0ec326f27feecda1357ca7ba8b1c09ef2567a481 (diff)
[vagrant] Vagrant now can deploy a pixelated box
By default, a leap_platform-only box will get started. To start the pixelated box, use `vagrant up pixelated`.
Diffstat (limited to 'vagrant/add-pixelated.sh')
-rwxr-xr-xvagrant/add-pixelated.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/vagrant/add-pixelated.sh b/vagrant/add-pixelated.sh
new file mode 100755
index 00000000..f9908947
--- /dev/null
+++ b/vagrant/add-pixelated.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+#
+# adds pixelated-server to the node
+
+. /vagrant/vagrant/vagrant.config
+
+cd "$PROVIDERDIR"
+
+if ! git submodule status files/puppet/modules/pixelated > /dev/null 2>&1; then
+ git submodule add https://github.com/pixelated/puppet-pixelated.git files/puppet/modules/pixelated
+fi
+
+echo '{}' > services/pixelated.json
+[ -d files/puppet/modules/custom/manifests ] || mkdir -p files/puppet/modules/custom/manifests
+echo 'class custom { include ::pixelated}' > files/puppet/modules/custom/manifests/init.pp
+
+$LEAP $OPTS -v 2 deploy
+
+echo '==============================================='
+echo 'testing the platform'
+echo '==============================================='
+
+$LEAP $OPTS -v 2 test --continue
+
+
+echo -e '\n===========================================================================================================\n\n'
+echo -e 'You are now ready to use your vagrant Pixelated provider.\n'
+
+echo -e 'The LEAP webapp is available at https://localhost:4443. Use it to register an account before using the Pixelated Useragent.\n'
+echo -e 'The Pixelated Useragent is available at https://localhost:8080\n'
+
+echo -e 'Please add an exception for both sites in your browser dialog to allow the self-signed certificate.\n'