Setup external_dns_driver with designate

When the designate configuration is setup, we also need to configure the
external_dns_driver option.

Change-Id: Iec946147b07acba58f11ffa19215b3d5c25ae3b4
This commit is contained in:
Thomas Herve 2018-05-30 14:06:48 +02:00 committed by Emilien Macchi
parent 8d65a81163
commit dba2ff1366
2 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,7 @@ class neutron::designate (
include ::neutron::params
neutron_config {
'DEFAULT/external_dns_driver': value => 'designate';
'designate/password': value => $password;
'designate/url': value => $url;
'designate/auth_type': value => $auth_type;

View File

@ -14,6 +14,7 @@ describe 'neutron::designate' do
end
it 'configures designate in neutron.conf' do
is_expected.to contain_neutron_config('DEFAULT/external_dns_driver').with_value('designate')
is_expected.to contain_neutron_config('designate/url').with_value('http://ip/designate')
is_expected.to contain_neutron_config('designate/password').with_value('secret')
is_expected.to contain_neutron_config('designate/username').with_value('neutron')
@ -42,6 +43,7 @@ describe 'neutron::designate' do
end
it 'configures designate in neutron.conf' do
is_expected.to contain_neutron_config('DEFAULT/external_dns_driver').with_value('designate')
is_expected.to contain_neutron_config('designate/url').with_value('http://ip/designate')
is_expected.to contain_neutron_config('designate/password').with_value('secret')
is_expected.to contain_neutron_config('designate/username').with_value('user')