Puppet Class: aixldap
- Defined in:
- manifests/init.pp
Summary
Setup AD LDAP Authentication on AIXOverview
aixldap
A description of what this class does
Params
NOTE: defaults are provided with module level hieradata
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'manifests/init.pp', line 69
class aixldap (
String $base_dn,
String $bind_dn,
String $bind_password,
String $bind_password_crypted,
String $ldapservers,
String $pkg_src_path,
Boolean $enable_ldap, # hiera
Enum['running','stopped'] $service_ensure, # hiera
Boolean $service_enable, #hiera
String $ssl_ca_cert_label, # hiera
String $ssl_ca_cert_file, # hiera
Optional[String] $ssl_ca_cert_content,
Optional[String] $ssl_ca_cert_source,
String $user_map_file, # hiera
Optional[String] $user_map_content,
Optional[String] $user_map_source,
String $group_map_file, # hiera
Optional[String] $group_map_content,
Optional[String] $group_map_source,
String $ldap_cfg_file, #hiera
Optional[Hash] $ldap_cfg_options, # hiera
Enum['unix_auth','ldap_auth'] $auth_type, # hiera
String $default_loc, # hiera
String $domain, # hiera
String $kdb_file, # hiera
Optional[String] $kdb_password, # hiera
Optional[String] $kdb_password_crypted, #hiera
Optional[String] $kerb_realm, # hiera
Enum['yes','SSL','TLS','NONE','no'] $use_ssl, # hiera
Optional[String] $netsvc_hosts, # hiera
) {
# Ensure Kerberos Realm is uppercase, default to "domain"
$kerb_realm_real = upcase(pick($kerb_realm, $facts['networking']['domain']))
# Ensure Local users authenticate locally
# NOTE: root and virtuser will be handled elsewhere
$local_users = split($facts['aix_local_users'], ' ')
$local_users.each |$user| {
if !defined(User[$user]) {
user { $user:
ensure => 'present',
ia_load_module => 'files',
attributes => [
'SYSTEM=compat',
'registry=files',
],
}
}
}
# Basic safety check - Ensure we are on AIX
if $facts['osfamily'] != 'AIX' {
fail('This module is only supported on AIX!')
}
# Default Path
Exec {
path => '/usr/bin:/usr/sbin',
}
# Install Packages
include aixldap::install
# Configire
include aixldap::configure
# Service
include aixldap::service
Class['aixldap::install'] -> Class['aixldap::configure']
}
|