update config

This commit is contained in:
Emmanuel Garette 2020-11-16 08:12:02 +01:00
parent 03809f041c
commit 00017de13c
1 changed files with 5 additions and 9 deletions

View File

@ -1,12 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -xe set -xe
#=======================================================================================================
# Import Cadoles seed
#=======================================================================================================
cucchiaiata-cli v1.setting.source.create --source_name Cadoles --source_directory /usr/share/risotto/seed/cadoles
#======================================================================================================= #=======================================================================================================
# Infrastructure # 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) 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" \ 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_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.dns 192.168.1.2 \
--configuration.network.gateway 192.168.1.254 --configuration.network.gateway 192.168.1.254
cucchiaiata-cli v1.setting.session.validate --session_id $S 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 \ cucchiaiata-cli v1.infra.cluster.create --cluster_name cluster.cadoles.com \
--zone_name internet --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 --zones_name internet
# configuration # configuration
@ -100,7 +95,7 @@ cucchiaiata-cli v1.setting.session.stop --session_id "$S" --save
# Servermodel unbound # Servermodel unbound
S=$(cucchiaiata-cli v1.setting.session.servermodel.start --servermodel_name unbound| jq -r .session_id) 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 \ 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 --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.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 \ 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 \ --zones_name internet \
--servermodel_name unbound_etab1 --servermodel_name unbound_etab1
# configuration # configuration
sleep 1
S=$(cucchiaiata-cli v1.setting.session.server.start --server dns.cadoles.com | jq -r .session_id) 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.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 cucchiaiata-cli v1.setting.session.filter --session_id "$S" --namespace opennebula