File tree Expand file tree Collapse file tree 4 files changed +57
-0
lines changed Expand file tree Collapse file tree 4 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1475
1475
# }
1476
1476
# ```
1477
1477
#
1478
+ # @param gssapi
1479
+ # Specfies mod_auth_gssapi parameters for particular directories in a virtual host directory
1480
+ # ```puppet
1481
+ # include apache::mod::auth_gssapi
1482
+ # apache::vhost { 'sample.example.net':
1483
+ # docroot => '/path/to/directory',
1484
+ # directories => [
1485
+ # { path => '/path/to/different/dir',
1486
+ # gssapi => {
1487
+ # credstore => 'keytab:/foo/bar.keytab',
1488
+ # localname => 'Off',
1489
+ # sslonly => 'On',
1490
+ # }
1491
+ # },
1492
+ # ],
1493
+ # }
1494
+ # ```
1495
+ #
1478
1496
# @param ssl
1479
1497
# Enables SSL for the virtual host. SSL virtual hosts only respond to HTTPS queries.
1480
1498
#
Original file line number Diff line number Diff line change 246
246
'passenger_allow_encoded_slashes' => false ,
247
247
'passenger_app_log_file' => '/tmp/app.log' ,
248
248
'passenger_debugger' => false ,
249
+ 'gssapi' => {
250
+ 'credstore' => 'keytab:/foo/bar.keytab' ,
251
+ 'localname' => 'On' ,
252
+ 'sslonly' => 'Off' ,
253
+ } ,
249
254
} ,
250
255
] ,
251
256
'error_log' => false ,
921
926
content : %r{^\s +PassengerDebugger\s Off$} ,
922
927
)
923
928
}
929
+ it {
930
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
931
+ content : %r{^\s +GssapiCredStore\s keytab:/foo/bar.keytab$} ,
932
+ )
933
+ }
934
+ it {
935
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
936
+ content : %r{^\s +GssapiSSLonly\s Off$} ,
937
+ )
938
+ }
939
+ it {
940
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-directories' ) . with (
941
+ content : %r{^\s +GssapiLocalName\s On$} ,
942
+ )
943
+ }
924
944
it { is_expected . to contain_concat__fragment ( 'rspec.example.com-additional_includes' ) }
925
945
it { is_expected . to contain_concat__fragment ( 'rspec.example.com-logging' ) }
926
946
it {
Original file line number Diff line number Diff line change 497
497
<%- if directory [ 'custom_fragment' ] -%>
498
498
<%= directory [ 'custom_fragment' ] %>
499
499
<%- end -%>
500
+ <%- if directory [ 'gssapi' ] -%>
501
+ <%= scope . call_function ( 'epp' , [ "apache/vhost/_gssapi.epp" , directory [ 'gssapi' ] ] ) -%>
502
+ <%- end -%>
500
503
</ <%= provider %> >
501
504
<%- end -%>
502
505
<%- end -%>
Original file line number Diff line number Diff line change
1
+ <%|
2
+ # https://github.com/gssapi/mod_auth_gssapi
3
+ Optional[String[1]] $credstore = undef,
4
+ Optional[Enum['On','Off']] $sslonly = undef,
5
+ Optional[Enum['On','Off']] $localname = undef,
6
+ |%>
7
+ # mod_auth_gssapi configuration
8
+ <% if $sslonly { -%>
9
+ GssapiSSLonly <%= $sslonly %>
10
+ <% } -%>
11
+ <% if $localname { -%>
12
+ GssapiLocalName <%= $localname %>
13
+ <% } -%>
14
+ <% if $credstore { -%>
15
+ GssapiCredStore <%= $credstore %>
16
+ <% } -%>
You can’t perform that action at this time.
0 commit comments