mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-29 04:23:34 +01:00
Solved nextcloud plugin bugs in context ldap
This commit is contained in:
parent
c51f935eff
commit
0928245853
@ -70,4 +70,4 @@ css_enabled_default: true # Enables\Disables Global CSS o
|
|||||||
## iframe for primary domain
|
## iframe for primary domain
|
||||||
# Enables\Disables the possibility to be embedded via iframe by default.
|
# Enables\Disables the possibility to be embedded via iframe by default.
|
||||||
# Enable conciously on every app in which it makes sense, due to that this a potential security risk
|
# Enable conciously on every app in which it makes sense, due to that this a potential security risk
|
||||||
landingpage_iframe_enabled_default: false
|
landingpage_iframe_enabled_default: false
|
@ -13,8 +13,8 @@ defaults_service_provider:
|
|||||||
platform:
|
platform:
|
||||||
titel: "CyMaIS Plattform Demo"
|
titel: "CyMaIS Plattform Demo"
|
||||||
subtitel: "Demo of the Cyber Master Infrastructur Solution Plattform"
|
subtitel: "Demo of the Cyber Master Infrastructur Solution Plattform"
|
||||||
logo: "{{applications.assets_server.url}}/logo.png"
|
logo: "{{applications.assets_server.url}}/img/logo.png"
|
||||||
favicon: "{{applications.assets_server.url}}/favicon.ico"
|
favicon: "{{applications.assets_server.url}}/img/favicon.ico"
|
||||||
contact:
|
contact:
|
||||||
bluesky: "{{ '@' ~ users.administrator.username ~ '.' ~ domains.bluesky_api if 'bluesky' in group_names else '' }}"
|
bluesky: "{{ '@' ~ users.administrator.username ~ '.' ~ domains.bluesky_api if 'bluesky' in group_names else '' }}"
|
||||||
email: "contact@{{ primary_domain }}"
|
email: "contact@{{ primary_domain }}"
|
||||||
|
@ -28,20 +28,33 @@
|
|||||||
changed_when: enable_result.rc == 0 and ("already enabled" not in enable_result.stdout)
|
changed_when: enable_result.rc == 0 and ("already enabled" not in enable_result.stdout)
|
||||||
when: plugin_value.enabled | bool
|
when: plugin_value.enabled | bool
|
||||||
|
|
||||||
- name: Check if {{nextcloud_localhost_plugin_configuration_directory}}{{ plugin_key }}.yml exists
|
- name: Check if {{nextcloud_control_node_plugin_vars_directory}}{{ plugin_key }}.yml exists
|
||||||
stat:
|
stat:
|
||||||
path: "{{nextcloud_localhost_plugin_configuration_directory}}{{ plugin_key }}.yml"
|
path: "{{nextcloud_control_node_plugin_vars_directory}}{{ plugin_key }}.yml"
|
||||||
register: plugin_config_file
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: plugin_vars_file
|
||||||
|
|
||||||
- name: Apply configuration to {{ plugin_key }}
|
- name: Apply configuration to {{ plugin_key }}
|
||||||
block:
|
block:
|
||||||
- name: Load {{ plugin_key }} configuration variables
|
- name: Load {{ plugin_key }} configuration variables
|
||||||
include_vars:
|
include_vars:
|
||||||
file: "{{nextcloud_localhost_plugin_configuration_directory}}{{ plugin_key }}.yml"
|
file: "{{nextcloud_control_node_plugin_vars_directory}}{{ plugin_key }}.yml"
|
||||||
|
|
||||||
- name: "Set {{ item.configkey }} for {{ item.appid }}"
|
- name: "Set {{ item.configkey }} for {{ item.appid }}"
|
||||||
loop: "{{ plugin_configuration }}"
|
loop: "{{ plugin_configuration }}"
|
||||||
command: >
|
command: >
|
||||||
{{ nextcloud_docker_exec_occ }} config:app:set {{ item.appid }} {{ item.configkey }} --value '{{ item.configvalue | to_json if item.configvalue is mapping else item.configvalue }}'
|
{{ nextcloud_docker_exec_occ }} config:app:set {{ item.appid }} {{ item.configkey }} --value '{{ item.configvalue | to_json if item.configvalue is mapping else item.configvalue }}'
|
||||||
|
|
||||||
when: plugin_config_file.stat.exists
|
when: plugin_vars_file.stat.exists
|
||||||
|
|
||||||
|
- name: Check if {{nextcloud_control_node_plugin_tasks_directory}}{{ plugin_key }}.yml exists
|
||||||
|
stat:
|
||||||
|
path: "{{nextcloud_control_node_plugin_tasks_directory}}{{ plugin_key }}.yml"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: plugin_tasks_file
|
||||||
|
|
||||||
|
- name: "include {{nextcloud_control_node_plugin_tasks_directory}}{{ plugin_key }}.yml"
|
||||||
|
include_tasks: "{{nextcloud_control_node_plugin_tasks_directory}}{{ plugin_key }}.yml"
|
||||||
|
when: plugin_tasks_file.stat.exists
|
||||||
|
@ -10,8 +10,9 @@ database_type: "mariadb"
|
|||||||
domain: "{{domains[application_id]}}" # Public domain at which Nextcloud will be accessable
|
domain: "{{domains[application_id]}}" # Public domain at which Nextcloud will be accessable
|
||||||
http_port: "{{ ports.localhost.http[application_id] }}" # Port at which nextcloud is reachable in the local network
|
http_port: "{{ ports.localhost.http[application_id] }}" # Port at which nextcloud is reachable in the local network
|
||||||
|
|
||||||
# Localhost
|
# Control Node
|
||||||
nextcloud_localhost_plugin_configuration_directory: "{{role_path}}/vars/plugins/" # Folder in which the files for the plugin configuration are stored
|
nextcloud_control_node_plugin_vars_directory: "{{role_path}}/vars/plugins/" # Folder in which the files for the plugin configuration are stored
|
||||||
|
nextcloud_control_node_plugin_tasks_directory: "{{role_path}}/tasks/plugins/" # Folder which contains the files for extra plugin configuration tasks
|
||||||
|
|
||||||
# Host
|
# Host
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user