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:
15
roles/docker-yourls/meta/schema.yml
Normal file
15
roles/docker-yourls/meta/schema.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
credentials:
|
||||
administrator_password:
|
||||
description: "Initial password for the YOURLS administrator account"
|
||||
algorithm: "sha256"
|
||||
validation: "^[a-f0-9]{64}$"
|
||||
|
||||
database_password:
|
||||
description: "Password for the YOURLS database user"
|
||||
algorithm: "bcrypt"
|
||||
validation: "^\\$2[aby]\\$.{56}$"
|
||||
|
||||
oauth2_proxy_cookie_secret:
|
||||
description: "Secret used by OAuth2 Proxy to encrypt browser cookies (16 bytes hex-encoded)"
|
||||
algorithm: "sha256"
|
||||
validation: "^[a-f0-9]{32}$"
|
@@ -4,4 +4,4 @@ YOURLS_DB_PASS: "{{database_password}}"
|
||||
YOURLS_DB_NAME: "{{database_name}}"
|
||||
YOURLS_SITE: "{{ web_protocol }}://{{domains[application_id]}}"
|
||||
YOURLS_USER: "{{applications.yourls.users.administrator.username}}"
|
||||
YOURLS_PASS: "{{yourls_administrator_password}}"
|
||||
YOURLS_PASS: "{{applications[application_id].credentials.administrator_password}}"
|
14
roles/docker-yourls/vars/configuration.yml
Normal file
14
roles/docker-yourls/vars/configuration.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
users:
|
||||
administrator:
|
||||
username: "{{users.administrator.username}}"
|
||||
version: "latest"
|
||||
oauth2_proxy:
|
||||
application: "application"
|
||||
port: "80"
|
||||
location: "/admin/" # Protects the admin area
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
landingpage_iframe: false
|
||||
central_database: true
|
||||
oauth2: true
|
@@ -1,3 +1,3 @@
|
||||
application_id: "yourls"
|
||||
database_type: "mariadb"
|
||||
database_password: "{{yourls_database_password}}"
|
||||
database_password: "{{applications[application_id].credentials.database_password}}"
|
Reference in New Issue
Block a user