update provisioning_example.sh modification

This commit is contained in:
Emmanuel Garette 2020-04-07 17:38:07 +02:00
parent 7edf9f7e4e
commit 28a081e758
1 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ verif() {
## ACA ## ACA
./script/cucchiaiata setting.servermodel.create -m aca -d Aca -p base -o cadoles -e last ./script/cucchiaiata setting.servermodel.create -m aca -d Aca -p base -o cadoles -e last
./script/cucchiaiata setting.servermodel.dependency.add -m aca -a unbound -o cadoles -e last ./script/cucchiaiata setting.servermodel.dependency.add -m aca -a unbound -o cadoles -e last
S=$(./script/cucchiaiata setting.session.servermodel.start -m aca | jq -r .session_id) S=$(./script/cucchiaiata setting.session.servermodel.start -m aca -e last| jq -r .session_id)
verif servermodel null null [] null verif servermodel null null [] null
./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.reseau.unbound_route_address 192.168.1.2 ./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.reseau.unbound_route_address 192.168.1.2
./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_dns.unbound_allowed_client_cidr 192.168.1.0/24 ./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_dns.unbound_allowed_client_cidr 192.168.1.0/24
@ -61,7 +61,7 @@ verif servermodel 192.168.1.2 null [] null
## etab1 ## etab1
./script/cucchiaiata setting.servermodel.create -m etab1 -d "Etab 1" -p aca -o internal -e last ./script/cucchiaiata setting.servermodel.create -m etab1 -d "Etab 1" -p aca -o internal -e last
S=$(./script/cucchiaiata setting.session.servermodel.start -m etab1 | jq -r .session_id) S=$(./script/cucchiaiata setting.session.servermodel.start -m etab1 -e last| jq -r .session_id)
./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.reseau.unbound_domain_name dns.cadoles.com ./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.reseau.unbound_domain_name dns.cadoles.com
verif servermodel 192.168.1.2 dns.cadoles.com [] null verif servermodel 192.168.1.2 dns.cadoles.com [] null
./script/cucchiaiata setting.session.servermodel.stop -s $S -a ./script/cucchiaiata setting.session.servermodel.stop -s $S -a
@ -69,7 +69,7 @@ verif servermodel 192.168.1.2 dns.cadoles.com [] null
## unbound ## unbound
./script/cucchiaiata setting.servermodel.create -m unbound -d "generic unbound configuration" -p fedora-31 -o cadoles -e last ./script/cucchiaiata setting.servermodel.create -m unbound -d "generic unbound configuration" -p fedora-31 -o cadoles -e last
./script/cucchiaiata setting.servermodel.dependency.add -m unbound -a unbound -o cadoles -e last ./script/cucchiaiata setting.servermodel.dependency.add -m unbound -a unbound -o cadoles -e last
S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound | jq -r .session_id) S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound -e last| jq -r .session_id)
./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_dns.unbound_local_zones cadoles.com ./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_dns.unbound_local_zones cadoles.com
./script/cucchiaiata setting.session.servermodel.filter -s $S -n unbound ./script/cucchiaiata setting.session.servermodel.filter -s $S -n unbound
./script/cucchiaiata setting.session.servermodel.configure -s $S --unbound.unbound_zone_cadoles_com.hostname_cadoles_com.hostname_cadoles_com toto titi ./script/cucchiaiata setting.session.servermodel.configure -s $S --unbound.unbound_zone_cadoles_com.hostname_cadoles_com.hostname_cadoles_com toto titi
@ -82,7 +82,7 @@ verif servermodel null null '["cadoles.com"]' null
## unbound_etab1 ## unbound_etab1
./script/cucchiaiata setting.servermodel.create -m unbound_etab1 -d "unbound configuration for etab1" -p etab1 unbound -o internal -e last ./script/cucchiaiata setting.servermodel.create -m unbound_etab1 -d "unbound configuration for etab1" -p etab1 unbound -o internal -e last
S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound_etab1 | jq -r .session_id) S=$(./script/cucchiaiata setting.session.servermodel.start -m unbound_etab1 -e last | jq -r .session_id)
verif servermodel 192.168.1.2 dns.cadoles.com '["cadoles.com"]' null verif servermodel 192.168.1.2 dns.cadoles.com '["cadoles.com"]' null
# Create a site, a zone and servers # Create a site, a zone and servers
@ -96,7 +96,7 @@ verif servermodel 192.168.1.2 dns.cadoles.com '["cadoles.com"]' null
# Create a cluster with one node and one VM # 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.cluster.join -c cluster.cadoles.com -n node1.cadoles.com
./script/cucchiaiata provider.factory.server.add -s dns.cadoles.com -n node1.cadoles.com -p 0.2 -v 2 -m 2 ./script/cucchiaiata provider.factory.server.add -s dns.cadoles.com -c cluster.cadoles.com -p 0.2 -v 2 -m 2
# Configure server # Configure server
S=$(./script/cucchiaiata setting.session.server.start -s dns.cadoles.com | jq -r .session_id) S=$(./script/cucchiaiata setting.session.server.start -s dns.cadoles.com | jq -r .session_id)
@ -116,7 +116,7 @@ R=$(./script/cucchiaiata setting.session.server.get -s $S -n creole.serveur_ssh.
[ $R = "[]" ] [ $R = "[]" ]
./script/cucchiaiata setting.session.server.stop -s $S ./script/cucchiaiata setting.session.server.stop -s $S
S=$(./script/cucchiaiata setting.session.servermodel.start -m aca | jq -r .session_id) S=$(./script/cucchiaiata setting.session.servermodel.start -m aca -e last| jq -r .session_id)
./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_ssh.ssh_allow_networks admin.cadoles.com ./script/cucchiaiata setting.session.servermodel.configure -s $S --creole.serveur_ssh.ssh_allow_networks admin.cadoles.com
./script/cucchiaiata setting.session.servermodel.stop -s $S -a ./script/cucchiaiata setting.session.servermodel.stop -s $S -a