add server/node/cluster support
This commit is contained in:
parent
a69e2cca1d
commit
4fe8a95619
|
@ -21,6 +21,9 @@ verif() {
|
||||||
./script/cucchiaiata user.user.create -u gnunux -n gnunux -s gnunux
|
./script/cucchiaiata user.user.create -u gnunux -n gnunux -s gnunux
|
||||||
./script/cucchiaiata user.role.create -u gnunux -o 'server_rw' -a 'Server.ServerName' -v test.cadoles.com
|
./script/cucchiaiata user.role.create -u gnunux -o 'server_rw' -a 'Server.ServerName' -v test.cadoles.com
|
||||||
|
|
||||||
|
# A servermodel for node in cluster
|
||||||
|
./script/cucchiaiata setting.servermodel.create -m cluster -d "Node in the cluster" -p base -o eole -e last
|
||||||
|
|
||||||
# Heritage
|
# Heritage
|
||||||
## ACA
|
## ACA
|
||||||
./script/cucchiaiata setting.servermodel.create -m aca -d Aca -p base -o eole -e last
|
./script/cucchiaiata setting.servermodel.create -m aca -d Aca -p base -o eole -e last
|
||||||
|
@ -58,13 +61,18 @@ verif servermodel null null '["cadoles.com"]' null
|
||||||
S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound_etab1 | jq -r .session_id)
|
S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound_etab1 | jq -r .session_id)
|
||||||
verif servermodel 192.168.1.2 test.cadoles.com '["cadoles.com"]' null
|
verif servermodel 192.168.1.2 test.cadoles.com '["cadoles.com"]' null
|
||||||
|
|
||||||
# Create a site, a zone, a server, a cluster
|
# Create a site, a zone and servers
|
||||||
./script/cucchiaiata infra.site.create -i etab1 -d "Etab 1"
|
./script/cucchiaiata infra.site.create -i etab1 -d "Etab 1"
|
||||||
./script/cucchiaiata infra.zone.create -z pedago -d "Pedago" -s etab1 -n "192.168.1.0/24" -t "192.168.1.10" -e "192.168.1.100" -q 192.168.1.1 -g 192.168.1.254
|
./script/cucchiaiata infra.site.create -i cluster -d "Cluster"
|
||||||
|
./script/cucchiaiata infra.zone.create -z pedago -d "Pedago" -s etab1 cluster -n "192.168.1.0/24" -t "192.168.1.10" -e "192.168.1.100" -q 192.168.1.1 -g 192.168.1.254
|
||||||
|
|
||||||
|
./script/cucchiaiata infra.server.create -s node1.cadoles.com -d node1 -m cluster -e last -i cluster -z pedago
|
||||||
./script/cucchiaiata infra.server.create -s test.cadoles.com -d description -m unbound_etab1 -e last -i etab1 -z pedago
|
./script/cucchiaiata infra.server.create -s test.cadoles.com -d description -m unbound_etab1 -e last -i etab1 -z pedago
|
||||||
|
|
||||||
|
# Create a cluster with one node and one VM
|
||||||
./script/cucchiaiata provider.factory.cluster.create -c cluster.cadoles.com -d toto -v 192.168.1.1 -z pedago
|
./script/cucchiaiata provider.factory.cluster.create -c cluster.cadoles.com -d toto -v 192.168.1.1 -z pedago
|
||||||
|
./script/cucchiaiata provider.factory.cluster.join -c cluster.cadoles.com -n node1.cadoles.com
|
||||||
|
./script/cucchiaiata provider.factory.server.add -s test.cadoles.com -c cluster.cadoles.com
|
||||||
|
|
||||||
# Configure server
|
# Configure server
|
||||||
S=$(./script/cucchiaiata setting.session.server.start -s test.cadoles.com | jq -r .session_id)
|
S=$(./script/cucchiaiata setting.session.server.start -s test.cadoles.com | jq -r .session_id)
|
||||||
|
|
Loading…
Reference in New Issue