blob: ac5d5df102e7e849ed8c4810cb9ab34c84b870a9 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
Leap Platform testing scripts
=============================
Install scripts
---------------
cd /usr/local/bin/
git clone git://code.leap.se/platform_test
* Make sure wherever you clone the repo, configure $PATH so you can call the scripts directly.
Install leap_cli
----------------
See https://leap.se/en/docs/platform/quick-start how to install leap_cli.
Configure platform_test scripts
-------------------------------
* edit /etc/leap/platform-test-common.cfg for common config used by all providers,
see platform-test-common.cfg.example.
* edit /etc/leap/PROVIDER_BRANCH.cfg for provider specific config, see
rewire_develop.cfg.example
Setup example provider
----------------------
leap-platform-test -c /etc/leap/rewire_develop.cfg create_provider
* creates new example provider
* adds all nodes and their services, including neccessary config for successfull deploy
* checks in the state of the provider directory into git version control
leap-platform-test -c /etc/leap/rewire_develop.cfg --all bootstrap
* bootstraps nodes
** starts node (leap local start)
** runs leap node init on node
** sets up hostname and runs apt-get dist-upgrade
** saves the initialized node (leap local save)
** takes ~6 mins to bootstrap one node, depending on how many updates are available.
Deploy nodes
------------
leap-platform-test -c /etc/leap/rewire_develop.cfg --all reset_deploy
|