Skip to content
Permalink
Browse files

[debops.ldap] Reset device attributes on 1st setup

  • Loading branch information...
drybjed committed Oct 6, 2019
1 parent 7a508d6 commit 5c65138d76a641ac526d0dbd433799da8816df20
Showing with 14 additions and 2 deletions.
  1. +9 −0 CHANGELOG.rst
  2. +5 −2 ansible/roles/debops.ldap/defaults/main.yml
@@ -177,6 +177,15 @@ General
precompiled binaries from remote resources. See the role documentation for
more details.

:ref:`debops.ldap` role
'''''''''''''''''''''''

- The role will reset the LDAP host attributes defined in the
:envvar:`ldap__device_attributes` variable on first configuration in case
that the host has been reinstalled and some of their values changed (for
example different IP addresses). This should avoid leaving the outdated
attributes in the host LDAP object.

:ref:`debops.owncloud` role
'''''''''''''''''''''''''''

@@ -685,8 +685,11 @@ ldap__default_tasks:
dn: '{{ ldap__device_dn }}'
attributes: '{{ ldap__device_attributes }}'
state: '{{ "present"
if (ldap__device_enabled|bool)
else "ignore" }}'
if (ldap__fact_configured|bool and
ldap__device_enabled|bool)
else ("exact"
if (ldap__device_enabled|bool)
else "ignore") }}'

# ]]]
# .. envvar:: ldap__tasks [[[

0 comments on commit 5c65138

Please sign in to comment.
You can’t perform that action at this time.