mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Raw refactoring of roles
This commit is contained in:
10
roles/docker-moodle/meta/schema.yml
Normal file
10
roles/docker-moodle/meta/schema.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
credentials:
|
||||
database_password:
|
||||
description: "Password for the Moodle database user"
|
||||
algorithm: "bcrypt"
|
||||
validation: "^\\$2[aby]\\$.{56}$"
|
||||
|
||||
user_password:
|
||||
description: "Initial password for the Moodle admin user"
|
||||
algorithm: "sha256"
|
||||
validation: "^[a-f0-9]{64}$"
|
@@ -2,12 +2,12 @@ MOODLE_DATABASE_HOST={{database_host}}
|
||||
MOODLE_DATABASE_PORT_NUMBER={{database_port}}
|
||||
MOODLE_DATABASE_USER={{database_username}}
|
||||
MOODLE_DATABASE_NAME={{database_name}}
|
||||
MOODLE_DATABASE_PASSWORD={{database_password}}
|
||||
applications[application_id].credentials.database_password={{database_password}}
|
||||
ALLOW_EMPTY_PASSWORD=no
|
||||
MOODLE_SITE_NAME="{{applications.moodle.site_titel}}"
|
||||
MOODLE_SSLPROXY=yes
|
||||
MOODLE_REVERSE_PROXY=yes
|
||||
MOODLE_USERNAME={{applications.moodle.administrator_name}}
|
||||
MOODLE_PASSWORD={{moodle_user_password}}
|
||||
MOODLE_PASSWORD={{applications[application_id].credentials.user_password}}
|
||||
MOODLE_EMAIL={{applications.moodle.users.administrator.email}}
|
||||
BITNAMI_DEBUG={% if enable_debug | bool %}true{% else %}false{% endif %}
|
11
roles/docker-moodle/vars/configuration.yml
Normal file
11
roles/docker-moodle/vars/configuration.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
site_titel: "Global Learning Academy on {{primary_domain}}"
|
||||
users:
|
||||
administrator:
|
||||
username: "{{users.administrator.username}}"
|
||||
email: "{{users.administrator.email}}"
|
||||
version: "latest"
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
landingpage_iframe: false
|
||||
central_database: true
|
@@ -1,4 +1,4 @@
|
||||
---
|
||||
application_id: "moodle"
|
||||
database_password: "{{moodle_database_password}}"
|
||||
database_password: "{{applications[application_id].credentials.database_password}}"
|
||||
database_type: "mariadb"
|
Reference in New Issue
Block a user