Skip to content

Commit

Permalink
Merge pull request #20 from voxpupuli/docs
Browse files Browse the repository at this point in the history
fix: typos in example docs
  • Loading branch information
bastelfreak authored Sep 27, 2024
2 parents 45e1103 + 4210933 commit 0878da1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
33 changes: 17 additions & 16 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,30 +216,31 @@ The strings will be used "as is", and arrays
will be joined with ', ' which should let you
set things in a number of useful ways.

sssd:config {'LDAP':
stanzas => {
'domain/LDAP' =>
'id_provider' => 'ldap'
}
}

#### Examples

#####

```puppet
sssd::config { 'main conf':
stanzas => {
'sssd' => {
'domains' => [ 'example.com', 'otherdomain.tld']
'services => ['pam', 'nss', 'sudo']
'debug' => 0
'sssd' => {
'domains' => ['example.com', 'otherdomain.tld'],
'services' => ['pam', 'nss', 'sudo'],
'debug' => 0,
},
'example.com' => {
'id_provider' => 'ldap',
},
},
force_this_filename => '/etc/sssd/sssd.conf',
}
sssd::config { 'LDAP':
stanzas => {
'domain/LDAP' => {
'id_provider' => 'ldap',
},
'example.com' => {
'id_provider' => 'ldap'
}
}
force_this_filename => '/etc/sssd/sssd.conf'
},
}
```

Expand Down
31 changes: 16 additions & 15 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,25 @@
# @example
# sssd::config { 'main conf':
# stanzas => {
# 'sssd' => {
# 'domains' => [ 'example.com', 'otherdomain.tld']
# 'services => ['pam', 'nss', 'sudo']
# 'debug' => 0
# 'sssd' => {
# 'domains' => ['example.com', 'otherdomain.tld'],
# 'services' => ['pam', 'nss', 'sudo'],
# 'debug' => 0,
# },
# 'example.com' => {
# 'id_provider' => 'ldap'
# }
# }
# force_this_filename => '/etc/sssd/sssd.conf'
# 'example.com' => {
# 'id_provider' => 'ldap',
# },
# },
# force_this_filename => '/etc/sssd/sssd.conf',
# }
#
# sssd:config {'LDAP':
# stanzas => {
# 'domain/LDAP' =>
# 'id_provider' => 'ldap'
# }
# }
# sssd::config { 'LDAP':
# stanzas => {
# 'domain/LDAP' => {
# 'id_provider' => 'ldap',
# },
# },
# }
define sssd::config (
Hash $stanzas,
String $owner = 'root',
Expand Down

0 comments on commit 0878da1

Please sign in to comment.