mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-05-10 07:15:43 +02:00
Compare commits
No commits in common. "fb96c5b7fb24e34eb25a479c03c14fff527d6195" and "7ae3c6cc513ea18d2b062a4945974af346b3fcd9" have entirely different histories.
fb96c5b7fb
...
7ae3c6cc51
@ -13,7 +13,7 @@ def get_oidc_enabled(applications, application_id):
|
|||||||
return bool(enabled)
|
return bool(enabled)
|
||||||
|
|
||||||
def get_features_iframe(applications, application_id):
|
def get_features_iframe(applications, application_id):
|
||||||
app = applications.get(application_id, {})
|
app = applications.get(application_id)
|
||||||
enabled = app.get('features', {}).get('iframe', False)
|
enabled = app.get('features', {}).get('iframe', False)
|
||||||
return bool(enabled)
|
return bool(enabled)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ services:
|
|||||||
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: espocrm/espocrm:{{ applications[application_id].version }}
|
image: espocrm/espocrm:{{ applications.espocrm.version }}
|
||||||
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost/"]
|
test: ["CMD", "curl", "-f", "http://localhost/"]
|
||||||
@ -15,7 +15,7 @@ services:
|
|||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
|
|
||||||
daemon:
|
daemon:
|
||||||
image: espocrm/espocrm:{{ applications[application_id].version }}
|
image: espocrm/espocrm:{{ applications.espocrm.version }}
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
@ -25,7 +25,7 @@ services:
|
|||||||
- data:/var/www/html
|
- data:/var/www/html
|
||||||
|
|
||||||
websocket:
|
websocket:
|
||||||
image: espocrm/espocrm:{{ applications[application_id].version }}
|
image: espocrm/espocrm:{{ applications.espocrm.version }}
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
logging:
|
logging:
|
||||||
driver: journald
|
driver: journald
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
- name: "pkgmgr install"
|
|
||||||
include_role:
|
|
||||||
name: pkgmgr-install
|
|
||||||
vars:
|
|
||||||
package_name: ldapsm
|
|
||||||
|
|
||||||
- name: Ensure custom LDAP schema snippet via ldapsm
|
|
||||||
vars:
|
|
||||||
schema_name: "nextcloud"
|
|
||||||
attribute_defs:
|
|
||||||
- "( 1.3.6.1.4.1.99999.1 NAME 'nextcloudQuota' DESC 'Quota for Nextcloud' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )"
|
|
||||||
objectclass_defs:
|
|
||||||
- "( 1.3.6.1.4.1.99999.2 NAME 'nextcloudUser' DESC 'Auxiliary class for Nextcloud attributes' AUXILIARY MAY ( nextcloudQuota ) )"
|
|
||||||
command: >
|
|
||||||
ldapsm
|
|
||||||
-s {{ ldap_server_uri }}
|
|
||||||
-D '{{ ldap_bind_dn }}'
|
|
||||||
-W '{{ ldap_bind_pw }}'
|
|
||||||
-n {{ schema_name }}
|
|
||||||
{% for at in attribute_defs %}
|
|
||||||
-a "{{ at }}"
|
|
||||||
{% endfor %}
|
|
||||||
{% for oc in objectclass_defs %}
|
|
||||||
-c "{{ oc }}"
|
|
||||||
{% endfor %}
|
|
||||||
register: ldapsm_result
|
|
||||||
changed_when: "'Created schema entry' in ldapsm_result.stdout"
|
|
||||||
check_mode: no
|
|
||||||
|
|
||||||
- name: Show ldapsm output
|
|
||||||
debug:
|
|
||||||
var: ldapsm_result.stdout_lines
|
|
@ -49,12 +49,36 @@
|
|||||||
- python-ldap
|
- python-ldap
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "Include Nextcloud Schema"
|
- name: Create Nextcloud Schema
|
||||||
include_tasks: create_nextcloud_schema.yml
|
ldap_entry:
|
||||||
vars:
|
dn: "cn=nextcloud,cn=schema,cn=config"
|
||||||
ldap_server_uri: "ldap://127.0.0.1:{{ ports.localhost.ldap.ldap }}"
|
objectClass:
|
||||||
ldap_bind_dn: "cn={{ applications.ldap.users.administrator.username }},cn=config"
|
- top
|
||||||
ldap_bind_pw: "{{ applications.ldap.administrator_password }}"
|
- olcSchemaConfig
|
||||||
|
attributes:
|
||||||
|
cn: nextcloud
|
||||||
|
olcAttributeTypes:
|
||||||
|
- >-
|
||||||
|
( 1.3.6.1.4.1.99999.1
|
||||||
|
NAME 'nextcloudQuota'
|
||||||
|
DESC 'Quota for Nextcloud'
|
||||||
|
EQUALITY integerMatch
|
||||||
|
ORDERING integerOrderingMatch
|
||||||
|
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
|
||||||
|
SINGLE-VALUE
|
||||||
|
)
|
||||||
|
olcObjectClasses:
|
||||||
|
- >-
|
||||||
|
( 1.3.6.1.4.1.99999.2
|
||||||
|
NAME 'nextcloudUser'
|
||||||
|
DESC 'Auxiliary class for Nextcloud attributes'
|
||||||
|
AUXILIARY
|
||||||
|
MAY ( nextcloudQuota )
|
||||||
|
)
|
||||||
|
server_uri: "ldap://127.0.0.1:{{ ports.localhost.ldap.ldap }}"
|
||||||
|
bind_dn: "cn={{ applications.ldap.users.administrator.username }},cn=config"
|
||||||
|
bind_pw: "{{ applications.ldap.administrator_password }}"
|
||||||
|
state: present
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# 1) Create the LDAP entry if it does not yet exist
|
# 1) Create the LDAP entry if it does not yet exist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user