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

Commit 155ce51

Browse files
committed
For now don't allow registering host dns entries when using GSS-TSIG auth
1 parent 493cc1d commit 155ce51

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

manifests/register_dns.pp

Lines changed: 5 additions & 1 deletion
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)