|
1325 | 1325 | # Any handlers you do not set in these hashes are considered `undefined` within Puppet and |
1326 | 1326 | # are not added to the virtual host, resulting in the module using their default values. |
1327 | 1327 | # |
| 1328 | +# The `directories` param can accepts the different authentication ways, including `gssapi`, `Basic (authz_core)`, |
| 1329 | +# and others. |
| 1330 | +# |
| 1331 | +# * `gssapi` - Specifies mod_auth_gssapi parameters for particular directories in a virtual host directory |
| 1332 | +# TODO: check, if this Documentation is obsolete |
| 1333 | +# |
| 1334 | +# ```puppet |
| 1335 | +# apache::vhost { 'sample.example.net': |
| 1336 | +# docroot => '/path/to/directory', |
| 1337 | +# directories => [ |
| 1338 | +# { path => '/path/to/different/dir', |
| 1339 | +# gssapi => { |
| 1340 | +# acceptor_name => '{HOSTNAME}', |
| 1341 | +# allowed_mech => ['krb5', 'iakerb', 'ntlmssp'], |
| 1342 | +# authname => 'Kerberos 5', |
| 1343 | +# authtype => 'GSSAPI', |
| 1344 | +# basic_auth => true, |
| 1345 | +# basic_auth_mech => ['krb5', 'iakerb', 'ntlmssp'], |
| 1346 | +# basic_ticket_timeout => 300, |
| 1347 | +# connection_bound => true, |
| 1348 | +# cred_store => { |
| 1349 | +# ccache => ['/path/to/directory'], |
| 1350 | +# client_keytab => ['/path/to/example.keytab'], |
| 1351 | +# keytab => ['/path/to/example.keytab'], |
| 1352 | +# }, |
| 1353 | +# deleg_ccache_dir => '/path/to/directory', |
| 1354 | +# deleg_ccache_env_var => 'KRB5CCNAME', |
| 1355 | +# deleg_ccache_perms => { |
| 1356 | +# mode => '0600', |
| 1357 | +# uid => 'example-user', |
| 1358 | +# gid => 'example-group', |
| 1359 | +# }, |
| 1360 | +# deleg_ccache_unique => true, |
| 1361 | +# impersonate => true, |
| 1362 | +# local_name => true, |
| 1363 | +# name_attributes => 'json', |
| 1364 | +# negotiate_once => true, |
| 1365 | +# publish_errors => true, |
| 1366 | +# publish_mech => true, |
| 1367 | +# required_name_attributes => 'auth-indicators=high', |
| 1368 | +# session_key => 'file:/path/to/example.key', |
| 1369 | +# signal_persistent_auth => true, |
| 1370 | +# ssl_only => true, |
| 1371 | +# use_s4u2_proxy => true, |
| 1372 | +# use_sessions => true, |
| 1373 | +# } |
| 1374 | +# }, |
| 1375 | +# ], |
| 1376 | +# } |
| 1377 | +# ``` |
| 1378 | +# |
| 1379 | +# * `Basic` - Specifies mod_authz_core parameters for particular directories in a virtual host directory |
| 1380 | +# ```puppet |
| 1381 | +# apache::vhost { 'sample.example.net': |
| 1382 | +# docroot => '/path/to/directory', |
| 1383 | +# directories => [ |
| 1384 | +# { |
| 1385 | +# path => '/path/to/different/dir', |
| 1386 | +# auth_type => 'Basic', |
| 1387 | +# authz_core => { |
| 1388 | +# require_all => { |
| 1389 | +# 'require_any' => { |
| 1390 | +# 'require' => ['user superadmin'], |
| 1391 | +# 'require_all' => { |
| 1392 | +# 'require' => ['group admins', 'ldap-group "cn=Administrators,o=Airius"'], |
| 1393 | +# }, |
| 1394 | +# }, |
| 1395 | +# 'require_none' => { |
| 1396 | +# 'require' => ['group temps', 'ldap-group "cn=Temporary Employees,o=Airius"'] |
| 1397 | +# } |
| 1398 | +# } |
| 1399 | +# } |
| 1400 | +# }, |
| 1401 | +# ], |
| 1402 | +# } |
| 1403 | +# ``` |
| 1404 | +# |
1328 | 1405 | # @param custom_fragment |
1329 | 1406 | # Pass a string of custom configuration directives to be placed at the end of the directory |
1330 | 1407 | # configuration. |
|
1405 | 1482 | # } |
1406 | 1483 | # ``` |
1407 | 1484 | # |
1408 | | -# TODO: check, if this Documentation is obsolete |
1409 | | -# lint:ignore:parameter_documentation |
1410 | | -# @param gssapi |
1411 | | -# lint:endignore |
1412 | | -# Specfies mod_auth_gssapi parameters for particular directories in a virtual host directory |
1413 | | -# ```puppet |
1414 | | -# apache::vhost { 'sample.example.net': |
1415 | | -# docroot => '/path/to/directory', |
1416 | | -# directories => [ |
1417 | | -# { path => '/path/to/different/dir', |
1418 | | -# gssapi => { |
1419 | | -# acceptor_name => '{HOSTNAME}', |
1420 | | -# allowed_mech => ['krb5', 'iakerb', 'ntlmssp'], |
1421 | | -# authname => 'Kerberos 5', |
1422 | | -# authtype => 'GSSAPI', |
1423 | | -# basic_auth => true, |
1424 | | -# basic_auth_mech => ['krb5', 'iakerb', 'ntlmssp'], |
1425 | | -# basic_ticket_timeout => 300, |
1426 | | -# connection_bound => true, |
1427 | | -# cred_store => { |
1428 | | -# ccache => ['/path/to/directory'], |
1429 | | -# client_keytab => ['/path/to/example.keytab'], |
1430 | | -# keytab => ['/path/to/example.keytab'], |
1431 | | -# }, |
1432 | | -# deleg_ccache_dir => '/path/to/directory', |
1433 | | -# deleg_ccache_env_var => 'KRB5CCNAME', |
1434 | | -# deleg_ccache_perms => { |
1435 | | -# mode => '0600', |
1436 | | -# uid => 'example-user', |
1437 | | -# gid => 'example-group', |
1438 | | -# }, |
1439 | | -# deleg_ccache_unique => true, |
1440 | | -# impersonate => true, |
1441 | | -# local_name => true, |
1442 | | -# name_attributes => 'json', |
1443 | | -# negotiate_once => true, |
1444 | | -# publish_errors => true, |
1445 | | -# publish_mech => true, |
1446 | | -# required_name_attributes => 'auth-indicators=high', |
1447 | | -# session_key => 'file:/path/to/example.key', |
1448 | | -# signal_persistent_auth => true, |
1449 | | -# ssl_only => true, |
1450 | | -# use_s4u2_proxy => true, |
1451 | | -# use_sessions => true, |
1452 | | -# } |
1453 | | -# }, |
1454 | | -# ], |
1455 | | -# } |
1456 | | -# ``` |
1457 | | -# |
1458 | 1485 | # @param ssl |
1459 | 1486 | # Enables SSL for the virtual host. SSL virtual hosts only respond to HTTPS queries. |
1460 | 1487 | # |
|
0 commit comments