mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Raw refactoring of roles
This commit is contained in:
10
roles/docker-snipe_it/meta/schema.yml
Normal file
10
roles/docker-snipe_it/meta/schema.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
credentials:
|
||||
database_password:
|
||||
description: "Password for the Snipe-IT database user"
|
||||
algorithm: "bcrypt"
|
||||
validation: "^\\$2[aby]\\$.{56}$"
|
||||
|
||||
app_key:
|
||||
description: "Application encryption key for Snipe-IT (.env APP_KEY)"
|
||||
algorithm: "plain"
|
||||
validation: "^base64:[A-Za-z0-9+/=]{40,}$"
|
@@ -4,7 +4,7 @@
|
||||
APP_ENV=production
|
||||
APP_DEBUG={{enable_debug | string | lower }}
|
||||
# Please regenerate the APP_KEY value by calling `docker compose run --rm app php artisan key:generate --show`. Copy paste the value here
|
||||
APP_KEY={{applications.snipe_it.app_key}}
|
||||
APP_KEY={{applications[application_id].credentials.app_key}}
|
||||
APP_URL=https://{{domains[application_id]}}
|
||||
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ identifier
|
||||
APP_TIMEZONE='{{ HOST_TIMEZONE }}'
|
||||
|
6
roles/docker-snipe_it/vars/configuration.yml
Normal file
6
roles/docker-snipe_it/vars/configuration.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: "latest"
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
landingpage_iframe: false
|
||||
central_database: true
|
@@ -1,3 +1,3 @@
|
||||
application_id: "snipe_it"
|
||||
database_password: "{{applications.snipe_it.credentials.database.password}}"
|
||||
database_type: "mariadb"
|
||||
application_id: "snipe_it"
|
||||
database_password: "{{applications.snipe_it.credentials.database_password}}"
|
||||
database_type: "mariadb"
|
Reference in New Issue
Block a user