summaryrefslogtreecommitdiff
path: root/leap-bootstrap-provider.sh
blob: 912a705718531a3f8a75efcb8eebf44aaeafd6d3 (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
#!/bin/sh -x

. /etc/leap/platform-test.cfg

cd $ROOTDIR/$PROVIDER

if [ -e $ROOTDIR/$PROVIDER ]
then
  echo $ROOTDIR/$PROVIDER exists - exiting
  exit 1
fi

mkdir  $ROOTDIR/$PROVIDER
cd  $ROOTDIR/$PROVIDER
leap new .
cd $ROOTDIR/leap_platform
git checkout develop
git submodule update --init
cd $ROOTDIR/$PROVIDER


leap add-user --self
leap cert ca && leap cert csr
leap cert dh

$PLATFORM_TEST_BIN/leap-add-nodes.sh
$PLATFORM_TEST_BIN/leap-bootstrap-all.sh