tkey-* additional parameters
- tkey-gssapi-credential - tkey-domain
This commit is contained in:
parent
e39b9b9db1
commit
81135efa23
@ -1,15 +1,17 @@
|
|||||||
# ex: syntax=puppet si ts=4 sw=4 et
|
# ex: syntax=puppet si ts=4 sw=4 et
|
||||||
|
|
||||||
class bind (
|
class bind (
|
||||||
$forwarders = undef,
|
$forwarders = undef,
|
||||||
$forward = undef,
|
$forward = undef,
|
||||||
$dnssec = undef,
|
$dnssec = undef,
|
||||||
$filter_ipv6 = undef,
|
$filter_ipv6 = undef,
|
||||||
$version = undef,
|
$version = undef,
|
||||||
$statistics_port = undef,
|
$statistics_port = undef,
|
||||||
$auth_nxdomain = undef,
|
$auth_nxdomain = undef,
|
||||||
$include_default_zones = true,
|
$include_default_zones = true,
|
||||||
$include_local = false,
|
$include_local = false,
|
||||||
|
$tkey_gssapi_credential = undef,
|
||||||
|
$tkey_domain = undef,
|
||||||
) inherits bind::defaults {
|
) inherits bind::defaults {
|
||||||
|
|
||||||
File {
|
File {
|
||||||
|
|||||||
@ -73,6 +73,11 @@ describe 'bind' do
|
|||||||
end
|
end
|
||||||
it { is_expected.to contain_file(expected_named_conf).that_requires('Package[bind]') }
|
it { is_expected.to contain_file(expected_named_conf).that_requires('Package[bind]') }
|
||||||
it { is_expected.to contain_file(expected_named_conf).that_notifies('Service[bind]') }
|
it { is_expected.to contain_file(expected_named_conf).that_notifies('Service[bind]') }
|
||||||
|
it do
|
||||||
|
is_expected.to contain_file(expected_named_conf)
|
||||||
|
.with_content(/^options {$/)
|
||||||
|
.without_content(/^\s+tkey-gssapi-credential/)
|
||||||
|
end
|
||||||
it do
|
it do
|
||||||
is_expected.to contain_service('bind').with({
|
is_expected.to contain_service('bind').with({
|
||||||
ensure: 'running',
|
ensure: 'running',
|
||||||
@ -80,6 +85,20 @@ describe 'bind' do
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
context 'with tkey-* parameters' do
|
||||||
|
let(:params) do
|
||||||
|
{
|
||||||
|
tkey_gssapi_credential: 'DNS/ds01.foobar.com',
|
||||||
|
tkey_domain: 'foobar.com'
|
||||||
|
}
|
||||||
|
end
|
||||||
|
it do
|
||||||
|
is_expected.to contain_file(expected_named_conf)
|
||||||
|
.with_content(/^options {$/)
|
||||||
|
.with_content(%r{^\s+tkey-gssapi-credential "DNS/ds01.foobar.com";$})
|
||||||
|
.with_content(%r{^\s+tkey-domain "foobar.com";$})
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -42,6 +42,12 @@ options {
|
|||||||
<%- if @version != '' -%>
|
<%- if @version != '' -%>
|
||||||
version "<%= @version %>";
|
version "<%= @version %>";
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
<%- if @tkey_gssapi_credential -%>
|
||||||
|
tkey-gssapi-credential "<%= @tkey_gssapi_credential %>";
|
||||||
|
<%- end -%>
|
||||||
|
<%- if @tkey_domain -%>
|
||||||
|
tkey-domain "<%= @tkey_domain %>";
|
||||||
|
<%- end -%>
|
||||||
};
|
};
|
||||||
<%- if @include_local -%>
|
<%- if @include_local -%>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user