summaryrefslogtreecommitdiff
path: root/tests/example-provider/vagrant/add-pixelated.sh
blob: 38a7ea47958df8da4e54ef1feb461ff50ffeaccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#
# adds pixelated-server to the node

. /vagrant/vagrant/vagrant.config

cd "$PROVIDERDIR"

if ! [ -d files/puppet/modules/pixelated ]; then
  git clone 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 User Agent.\n'
echo -e 'The Pixelated User Agent 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'