Skip to content

Instantly share code, notes, and snippets.

@seanhandley
Created May 20, 2014 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanhandley/f74eb6baeccef898064f to your computer and use it in GitHub Desktop.
Save seanhandley/f74eb6baeccef898064f to your computer and use it in GitHub Desktop.
$defaults = {
ensure => present,
host => '127.0.0.1',
port => 636,
base => hiera(ldap::server::suffix),
username => hiera(ldap::server::rootdn),
password => hiera(ldap::server::rootpw),
}
create_resources(ldap_entry, hiera(ldap_schema), $defaults)
create_resources(ldap_entry, hiera(admins), $defaults)
# Ensure entries are created in the correct order
Ldap_entry <| tag == 'root' |> ->
Ldap_entry <| tag == 'organizational_unit' |> ->
Ldap_entry <| tag == 'user' |>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment