Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit da2d8dc

Browse files
committed
Bug 1162093 - infrastructure dns improvements
https://bugzilla.redhat.com/show_bug.cgi?id=1162093 - include the dns_infrastructure_key in oo_instrastructure.conf - Allow changes to oo_infrastructure.conf file - No longer reference fqdn fact in register_dns
1 parent b323123 commit da2d8dc

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

manifests/nameserver.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
group => 'named',
111111
mode => '0644',
112112
content => template('openshift_origin/named/oo_infrastructure.conf.erb'),
113-
replace => false,
114113
require => File['/var/named']
115114
}
116115

@@ -142,7 +141,6 @@
142141
} else {
143142
file { 'empty infrastructure host configuration':
144143
ensure => present,
145-
replace => false,
146144
path => '/var/named/oo_infrastructure.conf',
147145
owner => 'root',
148146
group => 'named',

manifests/register_dns.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$::openshift_origin::domain)
2828
$key_argument="${key_algorithm}:${key_domain}:${key_secret}"
2929

30-
exec { "Register ${::fqdn}" :
30+
exec { "Attempting to register host dns" :
3131
command => template('openshift_origin/register_dns.erb'),
3232
provider => 'shell',
3333
require => Package['bind-utils'],

templates/named/oo_infrastructure.conf.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// define a zone for infrastructure hosts
2+
<% unless scope.lookupvar('::openshift_origin::dns_infrastructure_key').empty? -%>
3+
include "<%= scope.lookupvar('::openshift_origin::dns_infrastructure_zone') %>.key";
4+
<% end -%>
25

36
zone "<%= scope.lookupvar('::openshift_origin::dns_infrastructure_zone') %>" IN {
47
type master;

0 commit comments

Comments
 (0)