Update keycloak and variables

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-20 19:50:17 +01:00
parent 0d77245b46
commit c5d4956635
13 changed files with 34 additions and 23 deletions

View File

@ -230,6 +230,7 @@ joomla_version: "latest"
#### Keycloak #### Keycloak
keycloak_version: "latest" keycloak_version: "latest"
keycloak_administrator_username: "{{administrator_username}}"
#### Listmonk #### Listmonk
listmonk_admin_username: "admin" listmonk_admin_username: "admin"
@ -247,7 +248,7 @@ mastodon_version: "latest"
mastodon_single_user_mode: false mastodon_single_user_mode: false
#### Matrix #### Matrix
matrix_admin_name: "{{administrator_username}}" # Accountname of the matrix admin matrix_administrator_username: "{{administrator_username}}" # Accountname of the matrix admin
matrix_playbook_tags: "setup-all,start" # For the initial update use: install-all,ensure-matrix-users-created,start matrix_playbook_tags: "setup-all,start" # For the initial update use: install-all,ensure-matrix-users-created,start
matrix_role: "compose" # Role to setup Matrix. Valid values: ansible, compose matrix_role: "compose" # Role to setup Matrix. Valid values: ansible, compose
matrix_server_name: "{{top_domain}}" # Adress for the account names etc. matrix_server_name: "{{top_domain}}" # Adress for the account names etc.
@ -286,5 +287,5 @@ postgres_database_version: "latest"
taiga_version: "latest" taiga_version: "latest"
#### YOURLS #### YOURLS
yourls_administrator_name: "{{administrator_username}}" yourls_administrator_username: "{{administrator_username}}"
yourls_version: "latest" yourls_version: "latest"

View File

@ -45,7 +45,7 @@ pixelfed_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
pixelfed_app_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" pixelfed_app_key: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
wordpress_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" wordpress_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
yourls_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" yourls_database_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
yourls_administrator_name_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD" yourls_administrator_username_password: "I_NEED_TO_CHANGE_THIS_UNSECURE_PASSWORD"
path_mass_storage: "/mnt/hdd/" path_mass_storage: "/mnt/hdd/"
path_rapid_storage: "/mnt/ssd/" path_rapid_storage: "/mnt/ssd/"

View File

@ -0,0 +1,10 @@
---
- name: "include docker/compose/database.yml"
include_tasks: docker/compose/database.yml
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
notify: docker compose project setup

View File

@ -131,7 +131,7 @@
- name: create admin account - name: create admin account
command: command:
cmd: docker compose exec -it synapse register_new_matrix_user -u {{matrix_admin_name}} -p {{matrix_admin_password}} -a -c /data/homeserver.yaml http://localhost:8008 cmd: docker compose exec -it synapse register_new_matrix_user -u {{matrix_administrator_username}} -p {{matrix_admin_password}} -a -c /data/homeserver.yaml http://localhost:8008
chdir: "{{ docker_compose_instance_directory }}" chdir: "{{ docker_compose_instance_directory }}"
ignore_errors: true ignore_errors: true
when: mode_setup | bool when: mode_setup | bool

View File

@ -33,7 +33,7 @@ services:
{% include 'templates/docker/container/networks.yml.j2' %} {% include 'templates/docker/container/networks.yml.j2' %}
element: element:
image: vectorim/element-web:{{matrix_synapse_element}} image: vectorim/element-web:{{matrix_element_version}}
container_name: matrix-element container_name: matrix-element
restart: {{docker_restart_policy}} restart: {{docker_restart_policy}}
volumes: volumes:

View File

@ -381,7 +381,7 @@ bridge:
permissions: permissions:
"*": relay "*": relay
"{{matrix_server_name}}": user "{{matrix_server_name}}": user
"@{{matrix_admin_name}}:{{matrix_server_name}}": admin "@{{matrix_administrator_username}}:{{matrix_server_name}}": admin
relay: relay:
# Whether relay mode should be allowed. If allowed, `!fb set-relay` can be used to turn any # Whether relay mode should be allowed. If allowed, `!fb set-relay` can be used to turn any

View File

@ -360,7 +360,7 @@ bridge:
permissions: permissions:
"*": relay "*": relay
"{{matrix_server_name}}": user "{{matrix_server_name}}": user
"@{{matrix_admin_name}}:{{matrix_server_name}}": admin "@{{matrix_administrator_username}}:{{matrix_server_name}}": admin
relay: relay:
# Whether relay mode should be allowed. If allowed, `!ig set-relay` can be used to turn any # Whether relay mode should be allowed. If allowed, `!ig set-relay` can be used to turn any

View File

@ -275,7 +275,7 @@ bridge:
permissions: permissions:
"*": relay "*": relay
"{{matrix_server_name}}": user "{{matrix_server_name}}": user
"@{{matrix_admin_name}}:{{matrix_server_name}}": admin "@{{matrix_administrator_username}}:{{matrix_server_name}}": admin
# Settings for relay mode # Settings for relay mode
relay: relay:

View File

@ -279,7 +279,7 @@ bridge:
permissions: permissions:
"*": relay "*": relay
"{{matrix_server_name}}": user "{{matrix_server_name}}": user
"@{{matrix_admin_name}}:{{matrix_server_name}}": admin "@{{matrix_administrator_username}}:{{matrix_server_name}}": admin
# Logging config. See https://github.com/tulir/zeroconfig for details. # Logging config. See https://github.com/tulir/zeroconfig for details.
logging: logging:

View File

@ -532,7 +532,7 @@ bridge:
"*": "relaybot" "*": "relaybot"
"public.{{matrix_server_name}}": "user" "public.{{matrix_server_name}}": "user"
"{{matrix_server_name}}": "full" "{{matrix_server_name}}": "full"
"@{{matrix_admin_name}}:{{matrix_server_name}}": "admin" "@{{matrix_administrator_username}}:{{matrix_server_name}}": "admin"
# Options related to the message relay Telegram bot. # Options related to the message relay Telegram bot.
relaybot: relaybot:

View File

@ -435,7 +435,7 @@ bridge:
permissions: permissions:
"*": relay "*": relay
"{{matrix_server_name}}": user "{{matrix_server_name}}": user
"@{{matrix_admin_name}}:{{matrix_server_name}}": admin "@{{matrix_administrator_username}}:{{matrix_server_name}}": admin
# Settings for relay mode # Settings for relay mode
relay: relay:

View File

@ -15,8 +15,8 @@ services:
YOURLS_DB_PASS: "{{database_password}}" YOURLS_DB_PASS: "{{database_password}}"
YOURLS_DB_NAME: "{{database_name}}" YOURLS_DB_NAME: "{{database_name}}"
YOURLS_SITE: "https://{{domain}}" YOURLS_SITE: "https://{{domain}}"
yourls_administrator_name: "{{yourls_administrator_name}}" yourls_administrator_username: "{{yourls_administrator_username}}"
YOURLS_PASS: "{{yourls_administrator_name_password}}" YOURLS_PASS: "{{yourls_administrator_username_password}}"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/admin/"] test: ["CMD", "curl", "-f", "http://127.0.0.1/admin/"]
interval: 1m interval: 1m