diff --git a/manifests/bind.pp b/manifests/bind.pp index 2b3c59b6a..4866ec953 100644 --- a/manifests/bind.pp +++ b/manifests/bind.pp @@ -41,17 +41,4 @@ class openstack_integration::bind { } }, } - - $dnsdir = $::dns::params::dnsdir - - # ::dns creates the rndc key but not a rndc.conf. - # Contribute this in upstream ::dns ? - file { 'rndc.conf': - ensure => present, - path => "${dnsdir}/rndc.conf", - owner => $::dns::params::user, - group => $::dns::params::group, - content => template("${module_name}/rndc.conf.erb"), - require => Package[$dns::params::dns_server_package] - } } diff --git a/manifests/designate.pp b/manifests/designate.pp index 8455e7ed6..147b0c5ae 100644 --- a/manifests/designate.pp +++ b/manifests/designate.pp @@ -121,16 +121,11 @@ class openstack_integration::designate ( } class { 'designate::backend::bind9': - nameservers => [$::openstack_integration::config::host], - bind9_hosts => [$::openstack_integration::config::host], - dns_port => 5322, - mdns_hosts => [$::openstack_integration::config::host], - rndc_config_file => "${::dns::params::dnsdir}/rndc.conf", - rndc_key_file => $::dns::params::rndckeypath, - # Configure bind using openstack_integration::bind - configure_bind => false, + nameservers => [$::openstack_integration::config::host], + bind9_hosts => [$::openstack_integration::config::host], + dns_port => 5322, + mdns_hosts => [$::openstack_integration::config::host], + rndc_key_file => $::dns::rndckeypath, } - - File['rndc.conf'] -> Anchor['designate::service::begin'] Class['dns::service'] -> Anchor['designate::service::begin'] } diff --git a/templates/rndc.conf.erb b/templates/rndc.conf.erb deleted file mode 100644 index 92c52c4a9..000000000 --- a/templates/rndc.conf.erb +++ /dev/null @@ -1,6 +0,0 @@ -include "<%= @dnsdir %>/rndc.key"; -options { - default-key "rndc-key"; - default-server <%= @bind_host %>; - default-port 953; -};