mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Semi bsr for applications[] to prevent heavy to debug bugs in j2 - part 1
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
docker-compose exec -T \
|
||||
-u www-data \
|
||||
-e XDG_CONFIG_HOME=/tmp \
|
||||
-e APP_KEY='{{ applications[application_id].credentials.app_key }}' \
|
||||
-e APP_KEY='{{ applications | get_app_conf(application_id, 'credentials.app_key', True) }}' \
|
||||
application \
|
||||
sh -c 'echo "SHELL sees APP_KEY=$APP_KEY"'
|
||||
args:
|
||||
@@ -27,7 +27,7 @@
|
||||
shell: |
|
||||
docker-compose exec -T -u www-data \
|
||||
-e XDG_CONFIG_HOME=/tmp \
|
||||
-e APP_KEY="{{ applications[application_id].credentials.app_key }}" \
|
||||
-e APP_KEY="{{ applications | get_app_conf(application_id, 'credentials.app_key', True) }}" \
|
||||
application \
|
||||
php artisan tinker --execute="echo 'CONFIG app.key: ' . config('app.key') . PHP_EOL;"
|
||||
args:
|
||||
@@ -36,7 +36,7 @@
|
||||
- name: "Set all LDAP settings via Laravel Setting model (inside container as www-data)"
|
||||
shell: |
|
||||
docker-compose exec -T \
|
||||
-e APP_KEY='{{ applications[application_id].credentials.app_key }}' \
|
||||
-e APP_KEY='{{ applications | get_app_conf(application_id, 'credentials.app_key', True) }}' \
|
||||
-e XDG_CONFIG_HOME=/tmp \
|
||||
-u www-data application \
|
||||
sh -c 'php artisan tinker << "EOF"
|
||||
@@ -75,7 +75,7 @@
|
||||
shell: |
|
||||
docker-compose exec -T \
|
||||
-u www-data \
|
||||
-e APP_KEY="{{ applications[application_id].credentials.app_key }}" \
|
||||
-e APP_KEY="{{ applications | get_app_conf(application_id, 'credentials.app_key', True) }}" \
|
||||
-e XDG_CONFIG_HOME=/tmp \
|
||||
application \
|
||||
php artisan tinker --execute="
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
application:
|
||||
{% set container_port = 80 %}
|
||||
image: grokability/snipe-it:{{applications[application_id].version}}
|
||||
image: grokability/snipe-it:{{applications | get_app_conf(application_id, 'version', True)}}
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
volumes:
|
||||
- data:/var/lib/snipeit
|
||||
|
@@ -3,7 +3,7 @@
|
||||
# --------------------------------------------
|
||||
APP_ENV={{ CYMAIS_ENVIRONMENT | lower }}
|
||||
APP_DEBUG={{enable_debug | string | lower }}
|
||||
APP_KEY={{ applications[application_id].credentials.app_key}}
|
||||
APP_KEY={{ applications | get_app_conf(application_id, 'credentials.app_key', True)}}
|
||||
APP_URL={{ snipe_it_url }}
|
||||
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ identifier
|
||||
APP_TIMEZONE='{{ HOST_TIMEZONE }}'
|
||||
|
@@ -1,4 +1,4 @@
|
||||
application_id: "snipe-it"
|
||||
database_password: "{{ applications[application_id].credentials.database_password }}"
|
||||
database_password: "{{ applications | get_app_conf(application_id, 'credentials.database_password', True) }}"
|
||||
database_type: "mariadb"
|
||||
snipe_it_url: "{{ domains | get_url(application_id, web_protocol) }}"
|
Reference in New Issue
Block a user