Designate: Use appropriate IP version for bind and mdns
... instead of using 127.0.0.1 always. Change-Id: I27f976bde8a0f61aed814156f97a84b19f653b86
This commit is contained in:
parent
dcaa10cfb3
commit
6fb144ec85
@ -6,6 +6,17 @@ class openstack_integration::bind {
|
|||||||
include openstack_integration::config
|
include openstack_integration::config
|
||||||
include openstack_integration::params
|
include openstack_integration::params
|
||||||
|
|
||||||
|
$bind_host = $::openstack_integration::config::host
|
||||||
|
|
||||||
|
$listen_on = $::openstack_integration::config::ipv6 ? {
|
||||||
|
true => 'none',
|
||||||
|
default => $bind_host,
|
||||||
|
}
|
||||||
|
$listen_on_v6 = $::openstack_integration::config::ipv6 ? {
|
||||||
|
true => $bind_host,
|
||||||
|
default => 'none',
|
||||||
|
}
|
||||||
|
|
||||||
# NOTE (dmsimard): listen_on_v6 is false and overridden due to extended port
|
# NOTE (dmsimard): listen_on_v6 is false and overridden due to extended port
|
||||||
# configuration in additional_options
|
# configuration in additional_options
|
||||||
class { 'dns':
|
class { 'dns':
|
||||||
@ -13,10 +24,17 @@ class openstack_integration::bind {
|
|||||||
allow_recursion => [],
|
allow_recursion => [],
|
||||||
listen_on_v6 => false,
|
listen_on_v6 => false,
|
||||||
additional_options => {
|
additional_options => {
|
||||||
'listen-on' => 'port 5322 { any; }',
|
'listen-on' => "port 5322 { ${listen_on}; }",
|
||||||
'listen-on-v6' => 'port 5322 { any; }',
|
'listen-on-v6' => "port 5322 { ${listen_on_v6}; }",
|
||||||
'auth-nxdomain' => 'no',
|
'auth-nxdomain' => 'no',
|
||||||
}
|
},
|
||||||
|
controls => {
|
||||||
|
$bind_host => {
|
||||||
|
'port' => 953,
|
||||||
|
'allowed_addresses' => [$bind_host],
|
||||||
|
'keys' => ['rndc-key'],
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
# ::dns creates the rndc key but not a rndc.conf.
|
# ::dns creates the rndc key but not a rndc.conf.
|
||||||
|
@ -86,9 +86,8 @@ class openstack_integration::designate {
|
|||||||
workers => '2',
|
workers => '2',
|
||||||
}
|
}
|
||||||
|
|
||||||
# IPv6 doesn't work for mdns ? https://bugs.launchpad.net/designate/+bug/1501396
|
|
||||||
class { 'designate::mdns':
|
class { 'designate::mdns':
|
||||||
listen => '127.0.0.1:5354'
|
listen => "${::openstack_integration::config::ip_for_url}:5354"
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'designate::central': }
|
class { 'designate::central': }
|
||||||
@ -98,7 +97,10 @@ class openstack_integration::designate {
|
|||||||
class { 'designate::worker': }
|
class { 'designate::worker': }
|
||||||
|
|
||||||
class { 'designate::backend::bind9':
|
class { 'designate::backend::bind9':
|
||||||
|
nameservers => [$::openstack_integration::config::host],
|
||||||
|
bind9_hosts => [$::openstack_integration::config::host],
|
||||||
dns_port => 5322,
|
dns_port => 5322,
|
||||||
|
mdns_hosts => [$::openstack_integration::config::host],
|
||||||
rndc_config_file => '/etc/rndc.conf',
|
rndc_config_file => '/etc/rndc.conf',
|
||||||
rndc_key_file => $::dns::params::rndckeypath,
|
rndc_key_file => $::dns::params::rndckeypath,
|
||||||
manage_pool => true
|
manage_pool => true
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
include "/etc/rndc.key";
|
include "/etc/rndc.key";
|
||||||
options {
|
options {
|
||||||
default-key "rndc-key";
|
default-key "rndc-key";
|
||||||
default-server 127.0.0.1;
|
default-server <%= @bind_host %>;
|
||||||
default-port 953;
|
default-port 953;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user