32 lines
626 B
Bash
32 lines
626 B
Bash
|
mkdir a
|
||
|
mkdir b
|
||
|
mkdir c
|
||
|
|
||
|
cat >daemon.yml <<EOF
|
||
|
vpn:
|
||
|
tun:
|
||
|
device: isle-test
|
||
|
storage:
|
||
|
allocations:
|
||
|
- data_path: a/data
|
||
|
meta_path: a/meta
|
||
|
capacity: 100
|
||
|
- data_path: b/data
|
||
|
meta_path: b/meta
|
||
|
capacity: 100
|
||
|
- data_path: c/data
|
||
|
meta_path: c/meta
|
||
|
capacity: 100
|
||
|
EOF
|
||
|
|
||
|
isle admin create-network \
|
||
|
--config-path daemon.yml \
|
||
|
--domain test.isle.com \
|
||
|
--hostname primus \
|
||
|
--ip-net "10.6.9.1/24" \
|
||
|
--name "testing"
|
||
|
|
||
|
[ "$(cat a/meta/isle/rpc_port)" = "3900" ]
|
||
|
[ "$(cat b/meta/isle/rpc_port)" = "3910" ]
|
||
|
[ "$(cat c/meta/isle/rpc_port)" = "3920" ]
|