Readme syntax

This commit is contained in:
Zach Leslie 2015-05-21 14:49:14 -07:00
parent bbda78596a
commit 8c0ee17492

View File

@ -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)
```