mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Different optimations and mig integration. test will fail due to strickter validation checks. need to be cleaned up tomorrow
This commit is contained in:
@@ -5,16 +5,16 @@ docker:
|
||||
enabled: false # Enable Redis
|
||||
database:
|
||||
enabled: false # Enable the database
|
||||
{{ application_id }}:
|
||||
{{ application_id | get_entity_name }}:
|
||||
backup:
|
||||
no_stop_required: true # The images that don't need to stop
|
||||
disabled: true # Disables the image
|
||||
database_routine: true # Instead of copying a database routine will be triggered for this container
|
||||
image: ""
|
||||
version: "latest"
|
||||
name: "web-app-{{ application_id }}"
|
||||
image: "" # The docker image of the software you want to use
|
||||
version: "latest" # The docker version of the software you want to use
|
||||
container: "{{ application_id | get_entity_name }}" # The container name
|
||||
volumes:
|
||||
data: "web-app-{{ application_id }}_data"
|
||||
data: "{{ application_id | get_entity_name }}_data"
|
||||
features:
|
||||
matomo: true # Enable Matomo Tracking
|
||||
css: true # Enable Global CSS Styling
|
||||
@@ -23,10 +23,22 @@ features:
|
||||
central_database: false # Enable Central Database Network
|
||||
recaptcha: false # Enable ReCaptcha
|
||||
oauth2: false # Enable the OAuth2-Proy
|
||||
javascript: false # Enables the custom JS in the javascript.js.j2 file
|
||||
csp:
|
||||
whitelist: {} # URL's which should be whitelisted
|
||||
flags: {} # Flags which should be set
|
||||
javascript: false # Enables the custom JS in the javascript.js.j2 file
|
||||
csp:
|
||||
whitelist: # URL's which should be whitelisted
|
||||
script-src-elem: []
|
||||
style-src: []
|
||||
font-src: []
|
||||
connect-src: []
|
||||
frame-src: []
|
||||
flags: # Flags which should be set
|
||||
style-src:
|
||||
unsafe-inline: false
|
||||
script-src:
|
||||
unsafe-inline: false
|
||||
script-src-elem:
|
||||
unsafe-inline: false
|
||||
domains:
|
||||
domains:
|
||||
canonical: {} # Urls under which the domain should be directly accessible
|
||||
aliases: [] # Alias redirections to the first element of the canonical domains
|
||||
|
@@ -5,19 +5,19 @@
|
||||
- name: "load docker, db and proxy for '{{application_id}}'"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
|
||||
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
|
||||
{% endraw %}
|
||||
{% else %}
|
||||
{% raw %}
|
||||
- name: "load docker, proxy for '{{application_id}}'"
|
||||
include_role:
|
||||
name: cmp-db-docker-proxy
|
||||
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
|
||||
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
|
||||
{% endraw %}
|
||||
{% endif %}
|
||||
{% raw %}
|
||||
- name: run the {% endraw %}{{ application_id }}{% raw %} tasks once
|
||||
- name: run the {% endraw %}{{ application_id | replace("_", "-") }}{% raw %} tasks once
|
||||
set_fact:
|
||||
run_once_docker_{% endraw %}{{ application_id }}{% raw %}: true
|
||||
when: run_once_docker_{% endraw %}{{ application_id }}{% raw %} is not defined
|
||||
run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %}: true
|
||||
when: run_once_docker_{% endraw %}{{ application_id | replace("_", "-") }}{% raw %} is not defined
|
||||
{% endraw %}
|
@@ -2,19 +2,25 @@
|
||||
# All configuration possibilities are available in the config/main.yml file.
|
||||
|
||||
# General
|
||||
application_id: {{ application_id }} # ID of the application, should be the name of the role folder
|
||||
application_id: {{ application_id }} # ID of the application, should be the name of the role folder
|
||||
|
||||
# Database
|
||||
database_type: 0 # Database type [postgres, mariadb]
|
||||
database_type: 0 # Database type [postgres, mariadb]
|
||||
|
||||
# Docker
|
||||
docker_compose_flush_handlers: true # When this is set to true an auto-flush after the docker-compose.yml, and env deploy is triggered, otherwise you have todo it manual.
|
||||
docker_compose_skipp_file_creation: false # Skipp creation of docker-compose.yml file
|
||||
# Checkout roles/docker-compose/defaults/main.yml for all configuration options
|
||||
|
||||
docker_compose_flush_handlers: true # When this is set to true an auto-flush after the docker-compose.yml, and env deploy is triggered, otherwise you have todo it manual.
|
||||
docker_compose_skipp_file_creation: false # Skipp creation of docker-compose.yml file
|
||||
|
||||
# The following variable mapping is optional, but imt makes it easier to read the code.
|
||||
# I recommend, to use this mappings, but you can skipp it and access the config entries direct via get_app_conf
|
||||
{{ application_id | get_cymais_dir }}_version: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_cymais_dir }}{% raw %}.version', True) }}"{% endraw %}
|
||||
{{ application_id | get_cymais_dir }}_image: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_cymais_dir }}{% raw %}.image', True) }}"{% endraw %}
|
||||
{{ application_id | get_cymais_dir }}_name: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_cymais_dir }}{% raw %}.name', True) }}"{% endraw %}
|
||||
{{ application_id | get_cymais_dir }}_volume: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.volumes.data', True) }}"{% endraw %}
|
||||
docker_pull_git_repository: true # This will automaticly pull a repository from the 'docker_repository_address'
|
||||
docker_repository_address: "" # The address of a repository which should be pulled
|
||||
|
||||
{# The following variable mapping is optional, but it makes it easier to read the code.#}
|
||||
{# I recommend, to use this mappings, but you can skipp it and access the config entries direct via 'get_app_conf' #}
|
||||
|
||||
# This variables had been autocreated. For a detailled explanation checkout the config/main.yml file
|
||||
{{ application_id | get_entity_name }}_version: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_entity_name }}{% raw %}.version') }}"{% endraw %}
|
||||
{{ application_id | get_entity_name }}_image: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_entity_name }}{% raw %}.image') }}"{% endraw %}
|
||||
{{ application_id | get_entity_name }}_container: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.services.{% endraw %}{{ application_id | get_entity_name }}{% raw %}.name') }}"{% endraw %}
|
||||
{{ application_id | get_entity_name }}_volume: "{% raw %}{{ applications | get_app_conf(application_id, 'docker.volumes.data') }}"{% endraw %}
|
Reference in New Issue
Block a user