From dba2ff13661259c4e23db38a4de87c642f3b7e5c Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Wed, 30 May 2018 14:06:48 +0200 Subject: [PATCH] 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 --- manifests/designate.pp | 1 + spec/classes/neutron_designate_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/manifests/designate.pp b/manifests/designate.pp index 3b3ab1102..54347e3f5 100644 --- a/manifests/designate.pp +++ b/manifests/designate.pp @@ -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; diff --git a/spec/classes/neutron_designate_spec.rb b/spec/classes/neutron_designate_spec.rb index 287f2106c..febcac8d8 100644 --- a/spec/classes/neutron_designate_spec.rb +++ b/spec/classes/neutron_designate_spec.rb @@ -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')