From 00017de13c81f86d7669126f9d0093f3f0a86e6b Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 16 Nov 2020 08:12:02 +0100 Subject: [PATCH] update config --- provisioning_example.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/provisioning_example.sh b/provisioning_example.sh index 5cd2199..6f653e4 100755 --- a/provisioning_example.sh +++ b/provisioning_example.sh @@ -1,12 +1,6 @@ #!/usr/bin/env bash set -xe -#======================================================================================================= -# Import Cadoles seed -#======================================================================================================= - -cucchiaiata-cli v1.setting.source.create --source_name Cadoles --source_directory /usr/share/risotto/seed/cadoles - #======================================================================================================= # Infrastructure #======================================================================================================= @@ -31,7 +25,7 @@ cucchiaiata-cli v1.infra.zone.create --zone_name internet S=$(cucchiaiata-cli v1.setting.session.zone.start --zone_name internet | jq -r .session_id) cucchiaiata-cli v1.setting.session.configure --session_id "$S" --configuration.network.network "192.168.1.0/24" \ --configuration.network.host_start "192.168.1.10" \ - --configuration.network.host_end "192.168.1.100" \ + --configuration.network.host_stop "192.168.1.100" \ --configuration.network.dns 192.168.1.2 \ --configuration.network.gateway 192.168.1.254 cucchiaiata-cli v1.setting.session.validate --session_id $S @@ -47,7 +41,8 @@ cucchiaiata-cli v1.setting.session.stop --session_id "$S" --save # +---------------------------+ cucchiaiata-cli v1.infra.cluster.create --cluster_name cluster.cadoles.com \ --zone_name internet -cucchiaiata-cli v1.infra.cluster.node.create --server_name node1.cadoles.com \ +cucchiaiata-cli v1.infra.cluster.node.create --node_name node1.cadoles.com \ + --cluster_name cluster.cadoles.com \ --zones_name internet # configuration @@ -100,7 +95,7 @@ cucchiaiata-cli v1.setting.session.stop --session_id "$S" --save # Servermodel unbound S=$(cucchiaiata-cli v1.setting.session.servermodel.start --servermodel_name unbound| jq -r .session_id) cucchiaiata-cli v1.setting.session.configure --session_id "$S" --configuration.serveur_dns.unbound_local_zones cadoles.com \ - --configuration.reseau.unbound_route_address 192.168.1.2 \ + --configuration.reseau.unbound_route_address 192.168.1.254 \ --configuration.serveur_dns.unbound_allowed_client_cidr 192.168.1.0/24 cucchiaiata-cli v1.setting.session.filter --session_id "$S" --namespace unbound cucchiaiata-cli v1.setting.session.configure --session_id "$S" --unbound.unbound_zone_cadoles_com.hostname_cadoles_com.hostname_cadoles_com toto titi \ @@ -129,6 +124,7 @@ cucchiaiata-cli v1.infra.server.create --server_name dns.cadoles.com \ --zones_name internet \ --servermodel_name unbound_etab1 # configuration +sleep 1 S=$(cucchiaiata-cli v1.setting.session.server.start --server dns.cadoles.com | jq -r .session_id) cucchiaiata-cli v1.setting.session.configure --session_id "$S" --configuration.reseau.unbound_ip_address_cidr 192.168.1.2/24 cucchiaiata-cli v1.setting.session.filter --session_id "$S" --namespace opennebula