diff --git a/environments/infrastructure/configuration.yml b/environments/infrastructure/configuration.yml index fec7ae90d..86be64c0d 100644 --- a/environments/infrastructure/configuration.yml +++ b/environments/infrastructure/configuration.yml @@ -74,6 +74,7 @@ wireguard_users: key: LDweUZxqy/0AieSVw3baZmbRMPBqhfDUcuLAwSYyQkE= ip: 192.168.48.4 wireguard_create_client_config: true +wireguard_dns: 192.168.16.10 ########################## # nexus diff --git a/environments/kolla/configuration.yml b/environments/kolla/configuration.yml index b690600ce..c7fe45bba 100644 --- a/environments/kolla/configuration.yml +++ b/environments/kolla/configuration.yml @@ -57,6 +57,8 @@ octavia_network_type: tenant # designate designate_ns_record: openstack.testbed.osism.xyz +designate_forwarders_addresses: "" +designate_recursion: "yes" # horizon horizon_keystone_multidomain: true diff --git a/scripts/deploy-in-a-nutshell.sh b/scripts/deploy-in-a-nutshell.sh index cc33fd082..1c7494148 100755 --- a/scripts/deploy-in-a-nutshell.sh +++ b/scripts/deploy-in-a-nutshell.sh @@ -7,6 +7,9 @@ sh -c '/opt/configuration/scripts/pull-images.sh' # prepare the ceph deployment sh -c '/opt/configuration/scripts/prepare-ceph-configuration.sh' +# prepare the openstack deployment +sh -c '/opt/configuration/scripts/prepare-openstack-configuration.sh' + # deploy everything echo diff --git a/scripts/deploy/300-openstack-services.sh b/scripts/deploy/300-openstack-services.sh index 8ca28925d..671dff647 100755 --- a/scripts/deploy/300-openstack-services.sh +++ b/scripts/deploy/300-openstack-services.sh @@ -4,6 +4,8 @@ set -e source /opt/configuration/scripts/include.sh source /opt/configuration/scripts/manager-version.sh +sh -c '/opt/configuration/scripts/prepare-openstack-configuration.sh' + # checkout the cinder dm-clone driver and prepare drives osism apply -e custom cinder-driver-dm-clone diff --git a/scripts/include.sh b/scripts/include.sh index 29b9f5793..fe77c46fe 100644 --- a/scripts/include.sh +++ b/scripts/include.sh @@ -14,3 +14,7 @@ wait_for_container_healthy() { fi done } + +get_default_dns_servers() { + resolvectl dns | grep Global | awk -F': ' '{ print $2 }' | sed 's/ /; /g' +} diff --git a/scripts/prepare-openstack-configuration.sh b/scripts/prepare-openstack-configuration.sh new file mode 100755 index 000000000..69828657c --- /dev/null +++ b/scripts/prepare-openstack-configuration.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +source /opt/configuration/scripts/include.sh +source /opt/configuration/scripts/manager-version.sh + +default_dns_servers="$(get_default_dns_servers)" +sed -i "s/designate_forwarders_addresses: .*/designate_forwarders_addresses: \"$default_dns_servers\"/" /opt/configuration/environments/kolla/configuration.yml