Stop configuring contrail-named from a template
Currently contrail-named is configurated from a template, which doesn't make any sence 'cause contrail-dns overrides contrail-named's configuration files. Change-Id: If91b98fa2c835cf764f4a66b777b4ec8e7664c30
This commit is contained in:
parent
ff84523d58
commit
73b6c79b38
@ -1,10 +0,0 @@
|
|||||||
key "rndc-key" {
|
|
||||||
algorithm hmac-md5;
|
|
||||||
secret "xvysmOR8lnUQRBcunkC6vg==";
|
|
||||||
};
|
|
||||||
|
|
||||||
options {
|
|
||||||
default-key "rndc-key";
|
|
||||||
default-server 127.0.0.1;
|
|
||||||
default-port 8094;
|
|
||||||
};
|
|
@ -74,40 +74,31 @@ class contrail::control {
|
|||||||
notify => Service['supervisor-control'],
|
notify => Service['supervisor-control'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/contrail/dns/contrail-named.conf':
|
|
||||||
content => template('contrail/contrail-named.conf.erb'),
|
|
||||||
require => Package['contrail-dns'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/contrail/dns/contrail-rndc.conf':
|
|
||||||
source => 'puppet:///modules/contrail/contrail-rndc.conf',
|
|
||||||
require => Package['contrail-dns'],
|
|
||||||
}
|
|
||||||
|
|
||||||
contrail_control_nodemgr_config {
|
contrail_control_nodemgr_config {
|
||||||
'DISCOVERY/server': value => $contrail::contrail_private_vip;
|
'DISCOVERY/server': value => $contrail::contrail_private_vip;
|
||||||
'DISCOVERY/port': value => '5998';
|
'DISCOVERY/port': value => '5998';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Control service
|
service { 'contrail-dns':
|
||||||
service { 'contrail-named':
|
|
||||||
ensure => running,
|
ensure => running,
|
||||||
require => Package['contrail-dns'],
|
require => Package['contrail-dns'],
|
||||||
subscribe => [
|
|
||||||
File['/etc/contrail/dns/contrail-named.conf'],
|
|
||||||
File['/etc/contrail/dns/contrail-rndc.conf'],
|
|
||||||
]
|
|
||||||
}
|
|
||||||
service { 'supervisor-control':
|
|
||||||
ensure => $contrail::service_ensure,
|
|
||||||
enable => true,
|
|
||||||
require => [
|
|
||||||
Package['contrail-openstack-control'],
|
|
||||||
Package['contrail-control']
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Contrail_control_config <||> ~> Service['supervisor-control']
|
service { 'contrail-named':
|
||||||
Contrail_dns_config <||> ~> Service['supervisor-control']
|
ensure => running,
|
||||||
|
require => Service['contrail-dns']
|
||||||
|
}
|
||||||
|
|
||||||
|
service { 'supervisor-control':
|
||||||
|
ensure => $contrail::service_ensure,
|
||||||
|
enable => true,
|
||||||
|
require => [
|
||||||
|
Package['contrail-openstack-control'],
|
||||||
|
Package['contrail-control']
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
Contrail_control_config <||> ~> Service['supervisor-control']
|
||||||
|
Contrail_dns_config <||> ~> Service['supervisor-control']
|
||||||
|
Contrail_dns_config <||> ~> Service['contrail-dns']
|
||||||
}
|
}
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
<%- external_dns=scope.function_hiera(['external_dns']) %>
|
|
||||||
options {
|
|
||||||
directory "/etc/contrail/dns/";
|
|
||||||
managed-keys-directory "/etc/contrail/dns/";
|
|
||||||
allow-new-zones yes;
|
|
||||||
pid-file "/etc/contrail/dns/contrail-named.pid";
|
|
||||||
};
|
|
||||||
|
|
||||||
key "rndc-key" {
|
|
||||||
algorithm hmac-md5;
|
|
||||||
secret "xvysmOR8lnUQRBcunkC6vg==";
|
|
||||||
};
|
|
||||||
|
|
||||||
controls {
|
|
||||||
inet 127.0.0.1 port 8094
|
|
||||||
allow { 127.0.0.1; } keys { "rndc-key"; };
|
|
||||||
};
|
|
||||||
|
|
||||||
logging {
|
|
||||||
channel debug_log {
|
|
||||||
file "/var/log/contrail/contrail-named.log" versions 3 size 5m;
|
|
||||||
severity debug;
|
|
||||||
print-time yes;
|
|
||||||
print-severity yes;
|
|
||||||
print-category yes;
|
|
||||||
};
|
|
||||||
category default {
|
|
||||||
debug_log;
|
|
||||||
};
|
|
||||||
category queries {
|
|
||||||
debug_log;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
view "_default_view_" {
|
|
||||||
match-clients {any;};
|
|
||||||
match-destinations {any;};
|
|
||||||
match-recursive-only no;
|
|
||||||
forwarders { <%= external_dns['dns_list'].map{ |ip| "#{ip};" }.join(' ') %> };
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user