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

Commit 4a8aba5

Browse files
committed
Merge pull request #361 from sdodson/bz1162052
Fix GSS-TSIG nsupdate
2 parents 1da0a40 + 155ce51 commit 4a8aba5

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

manifests/plugins/dns/nsupdate.pp

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
warning "Use the last field in the generated key file /var/named/K${openshift_origin::domain}*.key"
3030
fail 'bind_key is required.'
3131
}
32-
if !$::openshift_origin::bind_krb_principal == '' and $::openshift_origin::bind_krb_keytab == '' {
33-
warning "Kerberos keytab for the DNS service was not found. Please generate a keytab for DNS/${::openshift_origin::nameserver_fqdn}"
32+
if $::openshift_origin::bind_krb_principal != '' and $::openshift_origin::bind_krb_keytab == '' {
33+
warning "Kerberos keytab for the DNS service was not set. Please generate a keytab for DNS/${::openshift_origin::nameserver_fqdn} and provide a path for the keytab."
3434
fail 'bind_krb_keytab is required.'
3535
}
3636

@@ -41,7 +41,7 @@
4141
],
4242
}
4343

44-
if !$::openshift_origin::bind_krb_principal == '' {
44+
if $::openshift_origin::bind_krb_principal != '' {
4545
file { 'broker-dns-keytab':
4646
ensure => present,
4747
path => $::openshift_origin::bind_krb_keytab,

manifests/register_dns.pp

+5-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
#
1515
class openshift_origin::register_dns {
16-
if $::openshift_origin::register_host_with_nameserver {
16+
if $::openshift_origin::register_host_with_nameserver and $::openshift_origin::bind_krb_principal == '' {
1717
if $::fqdn != 'localhost' {
1818
package { 'bind-utils' :
1919
ensure => present,
@@ -47,5 +47,9 @@
4747
require => Package['bind-utils'],
4848
}
4949
}
50+
} elsif $::openshift_origin::register_host_with_nameserver and $::openshift_origin::bind_krb_principal != '' {
51+
warning "You cannot use register_host_with_nameserver when using GSS-TSIG DNS updates"
52+
fail "You cannot use register_host_with_nameserver when using GSS-TSIG DNS updates"
5053
}
54+
5155
}

0 commit comments

Comments
 (0)