Skip to content

Commit

Permalink
Merge branch 'drybjed-owncloud-ldap-integration'
Browse files Browse the repository at this point in the history
  • Loading branch information
drybjed committed Sep 27, 2019
2 parents d5c1968 + b0ed70f commit 3e06136
Show file tree
Hide file tree
Showing 13 changed files with 483 additions and 141 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -119,6 +119,19 @@ General
manually if you are running 14 or below. Add Nextcloud 16 support. Now manually if you are running 14 or below. Add Nextcloud 16 support. Now
default to Nextcloud 15 for new installations. default to Nextcloud 15 for new installations.


- The LDAP support in Nextcloud has been converted to use the
:ref:`debops.ldap` infrastructure and not configure LDAP objects directly.
LDAP support in Nextcloud will be enabled automatically if it's enabled on
the host. Some of the configuration variables have been changed; see the
:ref:`upgrade_notes` for more details.

- The default LDAP filter configured in the
:envvar:`owncloud__ldap_login_filter` variable has been modified to limit
access to the service to objects with specific attributes. See the
:ref:`Nextcloud LDAP access control <owncloud__ref_ldap_dit_access>`
documentation page for details about the required attributes and their
values.

:ref:`debops.resolvconf` role :ref:`debops.resolvconf` role
''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''


Expand Down
9 changes: 8 additions & 1 deletion ansible/playbooks/service/owncloud-apache.yml
Expand Up @@ -42,22 +42,29 @@
- '{{ apache__ferm__dependent_rules }}' - '{{ apache__ferm__dependent_rules }}'


- role: debops.python - role: debops.python
tags: [ 'role::python', 'skip::python' ] tags: [ 'role::python', 'skip::python', 'role::ldap' ]
python__dependent_packages3: python__dependent_packages3:
- '{{ ldap__python__dependent_packages3 }}'
- '{{ mariadb__python__dependent_packages3 - '{{ mariadb__python__dependent_packages3
if (owncloud__database == "mariadb") if (owncloud__database == "mariadb")
else [] }}' else [] }}'
- '{{ postgresql__python__dependent_packages3 - '{{ postgresql__python__dependent_packages3
if (owncloud__database == "postgresql") if (owncloud__database == "postgresql")
else [] }}' else [] }}'
python__dependent_packages2: python__dependent_packages2:
- '{{ ldap__python__dependent_packages2 }}'
- '{{ mariadb__python__dependent_packages2 - '{{ mariadb__python__dependent_packages2
if (owncloud__database == "mariadb") if (owncloud__database == "mariadb")
else [] }}' else [] }}'
- '{{ postgresql__python__dependent_packages2 - '{{ postgresql__python__dependent_packages2
if (owncloud__database == "postgresql") if (owncloud__database == "postgresql")
else [] }}' else [] }}'


- role: debops.ldap
tags: [ 'role::ldap', 'skip::ldap' ]
ldap__dependent_tasks:
- '{{ owncloud__ldap__dependent_tasks }}'

- role: debops.mariadb - role: debops.mariadb
tags: [ 'role::mariadb', 'skip::mariadb' ] tags: [ 'role::mariadb', 'skip::mariadb' ]
mariadb__dependent_users: '{{ owncloud__mariadb__dependent_users }}' mariadb__dependent_users: '{{ owncloud__mariadb__dependent_users }}'
Expand Down
9 changes: 8 additions & 1 deletion ansible/playbooks/service/owncloud-nginx.yml
Expand Up @@ -42,8 +42,9 @@
- '{{ nginx__ferm__dependent_rules }}' - '{{ nginx__ferm__dependent_rules }}'


- role: debops.python - role: debops.python
tags: [ 'role::python', 'skip::python' ] tags: [ 'role::python', 'skip::python', 'role::ldap' ]
python__dependent_packages3: python__dependent_packages3:
- '{{ ldap__python__dependent_packages3 }}'
- '{{ mariadb__python__dependent_packages3 - '{{ mariadb__python__dependent_packages3
if (owncloud__database == "mariadb") if (owncloud__database == "mariadb")
else [] }}' else [] }}'
Expand All @@ -52,6 +53,7 @@
else [] }}' else [] }}'
- '{{ nginx__python__dependent_packages3 }}' - '{{ nginx__python__dependent_packages3 }}'
python__dependent_packages2: python__dependent_packages2:
- '{{ ldap__python__dependent_packages2 }}'
- '{{ mariadb__python__dependent_packages2 - '{{ mariadb__python__dependent_packages2
if (owncloud__database == "mariadb") if (owncloud__database == "mariadb")
else [] }}' else [] }}'
Expand All @@ -60,6 +62,11 @@
else [] }}' else [] }}'
- '{{ nginx__python__dependent_packages2 }}' - '{{ nginx__python__dependent_packages2 }}'


- role: debops.ldap
tags: [ 'role::ldap', 'skip::ldap' ]
ldap__dependent_tasks:
- '{{ owncloud__ldap__dependent_tasks }}'

- role: debops.mariadb - role: debops.mariadb
tags: [ 'role::mariadb', 'skip::mariadb' ] tags: [ 'role::mariadb', 'skip::mariadb' ]
mariadb__dependent_databases: '{{ owncloud__mariadb__dependent_databases }}' mariadb__dependent_databases: '{{ owncloud__mariadb__dependent_databases }}'
Expand Down

0 comments on commit 3e06136

Please sign in to comment.