Puppet Class: openldap::server
- Inherits:
- ::openldap::params
- Defined in:
- manifests/server.pp
Overview
Installs and manages the OpenLDAP server.
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 |
# File 'manifests/server.pp', line 491
class openldap::server (
Bodgitlib::LDAP::DN $root_dn,
String $root_password,
Bodgitlib::LDAP::DN $suffix,
Array[OpenLDAP::Access, 1] $access = $::openldap::params::access,
Boolean $accesslog = false,
Optional[Integer[0]] $accesslog_cachesize = undef,
Optional[OpenLDAP::Checkpoint] $accesslog_checkpoint = undef,
Optional[Array[String, 1]] $accesslog_db_config = undef,
Optional[Integer[0]] $accesslog_dn_cachesize = undef,
Optional[Array[String, 1]] $accesslog_envflags = undef,
Optional[Integer[0]] $accesslog_index_cachesize = undef,
Stdlib::Absolutepath $args_file = $::openldap::params::args_file,
Boolean $auditlog = false,
Optional[Stdlib::Absolutepath] $auditlog_file = undef,
Optional[Enum['none', 'from', 'to', 'any', 'all']] $authz_policy = undef,
Array[OpenLDAP::Backend] $backend_modules = $::openldap::params::backend_modules,
Hash[OpenLDAP::Backend, String] $backend_packages = $::openldap::params::backend_packages,
Boolean $chain = false,
Optional[OpenLDAP::LDAP::IDAssertBind] $chain_id_assert_bind = undef,
Optional[Boolean] $chain_rebind_as_user = undef,
Optional[Boolean] $chain_return_error = undef,
Optional[OpenLDAP::LDAP::TLS] $chain_tls = undef,
Optional[Integer[0]] $data_cachesize = undef,
Optional[OpenLDAP::Checkpoint] $data_checkpoint = undef,
Optional[Array[String, 1]] $data_db_config = undef,
Stdlib::Absolutepath $data_directory = $::openldap::params::data_directory,
Optional[Integer[0]] $data_dn_cachesize = undef,
Optional[Array[String, 1]] $data_envflags = undef,
Optional[Integer[0]] $data_index_cachesize = undef,
OpenLDAP::Backend $db_backend = $::openldap::params::db_backend,
String $group = $::openldap::params::group,
Optional[Array[OpenLDAP::Index, 1]] $indices = undef,
Optional[Array[Bodgitlib::LDAP::URI::Simple, 1]] $interfaces = $::openldap::params::interfaces,
Optional[Array[OpenLDAP::Limit, 1]] $limits = undef,
Optional[Integer[0]] $local_ssf = $::openldap::params::local_ssf,
Optional[Array[OpenLDAP::LogLevel, 1]] $log_level = undef,
String $module_extension = $::openldap::params::module_extension,
Boolean $memberof = false,
Array[OpenLDAP::Overlay] $overlay_modules = $::openldap::params::overlay_modules,
Hash[OpenLDAP::Overlay, String] $overlay_packages = $::openldap::params::overlay_packages,
String $package_ensure = $::openldap::params::server_package_ensure,
String $package_name = $::openldap::params::server_package_name,
Optional[String] $password_crypt_salt_format = undef,
Optional[Array[OpenLDAP::PasswordHash, 1]] $password_hash = undef,
Hash[OpenLDAP::PasswordHash, String] $password_modules = $::openldap::params::password_modules,
Hash[String, String] $password_packages = $::openldap::params::password_packages,
Stdlib::Absolutepath $pid_file = $::openldap::params::pid_file,
Boolean $ppolicy = false,
Optional[Bodgitlib::LDAP::DN] $ppolicy_default = undef,
Optional[Boolean] $ppolicy_forward_updates = undef,
Optional[Boolean] $ppolicy_hash_cleartext = undef,
Optional[Boolean] $ppolicy_use_lockout = undef,
Boolean $refint = false,
Optional[Array[String, 1]] $refint_attributes = undef,
Optional[Bodgitlib::LDAP::DN] $refint_nothing = undef,
Optional[Array[Bodgitlib::LDAP::DN, 1]] $replica_dn = undef,
Stdlib::Absolutepath $schema_dir = $::openldap::params::schema_dir,
Optional[OpenLDAP::Security] $security = undef,
Optional[OpenLDAP::Limit::Size] $size_limit = undef,
Boolean $smbk5pwd = false,
Optional[Array[Enum['krb5', 'samba', 'shadow'], 1]] $smbk5pwd_backends = undef,
Optional[Integer[0]] $smbk5pwd_must_change = undef,
Optional[Stdlib::Absolutepath] $ssl_ca = undef,
Optional[Stdlib::Absolutepath] $ssl_cert = undef,
Optional[Stdlib::Absolutepath] $ssl_certs_dir = undef,
Optional[String] $ssl_cipher = undef,
Optional[Stdlib::Absolutepath] $ssl_dhparam = undef,
Optional[Stdlib::Absolutepath] $ssl_key = undef,
Optional[Variant[Integer[0], Float[0]]] $ssl_protocol = undef,
Boolean $syncprov = false,
Optional[OpenLDAP::Checkpoint] $syncprov_checkpoint = $::openldap::params::syncprov_checkpoint,
Optional[Integer[0]] $syncprov_sessionlog = $::openldap::params::syncprov_sessionlog,
Optional[Array[OpenLDAP::Syncrepl, 1]] $syncrepl = undef,
Optional[OpenLDAP::Limit::Time] $time_limit = undef,
Boolean $unique = false,
Optional[Array[OpenLDAP::Unique, 1]] $unique_uri = undef,
Optional[Array[Bodgitlib::LDAP::URI::Simple, 1]] $update_ref = undef,
String $user = $::openldap::params::user,
) inherits ::openldap::params {
if ! (defined(Class['::openldap']) or defined(Class['::openldap::client'])) {
fail('You must include either the openldap or openldap::client class as appropriate before using the openldap::server class')
}
if $auditlog and ! $auditlog_file {
fail('Audit Logging ovelay requires a log file')
}
if $chain and ! $update_ref {
fail('Chain overlay requires an update referral URL')
}
if $refint and ! $refint_attributes {
fail('Referential Integrity overlay requires attributes')
}
if $syncprov and ! $replica_dn {
fail('Sync Provider overlay requires a replica DN')
}
contain ::openldap::server::install
contain ::openldap::server::config
contain ::openldap::server::service
Class['::openldap::server::install'] -> Class['::openldap::server::service']
Class['::openldap::server::install'] -> Class['::openldap::server::config']
}
|