summaryrefslogtreecommitdiff
path: root/test_cli.sh
blob: 73c09ea124c653f1000dbbd1b79240ec0899db6c (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
#!/bin/sh

OPTS='-v9'
LEAP="leap $OPTS"

# use env var if set, otherwise use default
[ -z "$PROVIDER_DIR" ] && PROVIDER_DIR='/tmp/provider_test'
[ -z "$PLATFORM_DIR" ] && PLATFORM_DIR='/tmp/leap_platform'


[ -e $PROVIDER_DIR ] && rm -rf $PROVIDER_DIR
mkdir $PROVIDER_DIR
cd $PROVIDER_DIR
$LEAP new --contacts your@email.here --domain example.org --name Example --platform="$PLATFORM_DIR" .

$LEAP node add test1 ip_address:1.2.3.4 services:webapp,couchdb,mx
$LEAP add-user --self --ssh-pub-key="/home/${USER}/.ssh/id_rsa.pub" --pgp-pub-key=/dev/null
$LEAP cert ca
$LEAP cert csr


$LEAP list

$LEAP compile