summaryrefslogtreecommitdiff
path: root/tests/example-provider/vagrant/add-pixelated.sh
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-08-29 16:39:13 -0700
committerelijah <elijah@riseup.net>2016-09-01 10:13:31 -0700
commite6544ecc5a51ad6502a64bd08df71aa7ff75a3ee (patch)
tree57614836a4efc6a5f64d1609bd109f18c0c669d6 /tests/example-provider/vagrant/add-pixelated.sh
parent07c0e60e6bdc5b8bfe1f42f76dae9f0a79e7abb0 (diff)
moved vagrant example provider to tests/example-provider
Diffstat (limited to 'tests/example-provider/vagrant/add-pixelated.sh')
-rwxr-xr-xtests/example-provider/vagrant/add-pixelated.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/example-provider/vagrant/add-pixelated.sh b/tests/example-provider/vagrant/add-pixelated.sh
new file mode 100755
index 00000000..f9908947
--- /dev/null
+++ b/tests/example-provider/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'