Skip to content

Instantly share code, notes, and snippets.

@mdkent
Forked from anonymous/ldap.conf.rb
Created June 17, 2010 23:07
Show Gist options
  • Save mdkent/442931 to your computer and use it in GitHub Desktop.
Save mdkent/442931 to your computer and use it in GitHub Desktop.
# The end result when the recipe is run is:
node[:openldap][:ldap_conf][:servers] = [ "ldap://ldap1.internal.com", "ldap://ldap2.internal.com", "ldap://server.office.com" ]
# but what I *expected* was this:
node[:openldap][:ldap_conf][:servers] = [ "ldap://server.office.com" ]
set[:openldap][:ldap_conf][:servers] = [
"ldap://ldap1.internal.com",
"ldap://ldap2.internal.com"
]
override_attributes(
"openldap" => {
"ldap_conf" => {
"servers" => [
"!merge:",
"ldap://server.office.com"
]
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment