mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
Readme syntax
This commit is contained in:
parent
bbda78596a
commit
8c0ee17492
@ -14,7 +14,7 @@ to your LDAP server.
|
||||
|
||||
Add something like the following to your master's manifest.
|
||||
|
||||
|
||||
```Puppet
|
||||
$ldap_base = hiera('ldap_base') # dc=example,dc=com
|
||||
$ldap_user = hiera('ldap_user') # cn=ldapuser,dc=puppetlabs,dc=com
|
||||
$ldap_pass = hiera('ldap_pass') # ultrasecure
|
||||
@ -52,7 +52,6 @@ Add something like the following to your master's manifest.
|
||||
value => $ldap_base,
|
||||
}
|
||||
|
||||
|
||||
ini_setting { 'ldapuser':
|
||||
setting => 'ldapuser',
|
||||
value => $ldap_user,
|
||||
@ -67,6 +66,7 @@ Add something like the following to your master's manifest.
|
||||
setting => 'ldaptls',
|
||||
value => true,
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### In manifest
|
||||
@ -77,6 +77,7 @@ attributes of which to return the values may also be passed.
|
||||
|
||||
Consider the following manifest.
|
||||
|
||||
```Puppet
|
||||
$attributes = [
|
||||
'loginshell',
|
||||
'uidnumber',
|
||||
@ -85,5 +86,6 @@ Consider the following manifest.
|
||||
]
|
||||
|
||||
$zach = ldapquery('(uid=zach)', $attributes)
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user