Skip to content

Commit d716535

Browse files
committed
Make bind/designate usable via wireguard
Signed-off-by: Christian Berendt <[email protected]>
1 parent ca79354 commit d716535

File tree

6 files changed

+20
-0
lines changed

6 files changed

+20
-0
lines changed

environments/infrastructure/configuration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ wireguard_users:
7474
key: LDweUZxqy/0AieSVw3baZmbRMPBqhfDUcuLAwSYyQkE=
7575
ip: 192.168.48.4
7676
wireguard_create_client_config: true
77+
wireguard_dns: 192.168.16.10
7778

7879
##########################
7980
# nexus

environments/kolla/configuration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ octavia_network_type: tenant
5757

5858
# designate
5959
designate_ns_record: openstack.testbed.osism.xyz
60+
designate_forwarders_addresses: ""
61+
designate_recursion: "yes"
6062

6163
# horizon
6264
horizon_keystone_multidomain: true

scripts/deploy-in-a-nutshell.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ sh -c '/opt/configuration/scripts/pull-images.sh'
77
# prepare the ceph deployment
88
sh -c '/opt/configuration/scripts/prepare-ceph-configuration.sh'
99

10+
# prepare the openstack deployment
11+
sh -c '/opt/configuration/scripts/prepare-openstack-configuration.sh'
12+
1013
# deploy everything
1114

1215
echo

scripts/deploy/300-openstack-services.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -e
44
source /opt/configuration/scripts/include.sh
55
source /opt/configuration/scripts/manager-version.sh
66

7+
sh -c '/opt/configuration/scripts/prepare-openstack-configuration.sh'
8+
79
# checkout the cinder dm-clone driver and prepare drives
810
osism apply -e custom cinder-driver-dm-clone
911

scripts/include.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ wait_for_container_healthy() {
1414
fi
1515
done
1616
}
17+
18+
get_default_dns_servers() {
19+
resolvectl dns | grep Global | awk -F': ' '{ print $2 }' | sed 's/ /; /g'
20+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
source /opt/configuration/scripts/include.sh
5+
source /opt/configuration/scripts/manager-version.sh
6+
7+
default_dns_servers="$(get_default_dns_servers)"
8+
sed -i "s/designate_forwarders_addresses: .*/designate_forwarders_addresses: \"$default_dns_servers\"/" /opt/configuration/environments/kolla/configuration.yml

0 commit comments

Comments
 (0)