Add Euro-Office role
This commit is contained in:
@@ -3,7 +3,7 @@ namespace: uumas
|
|||||||
name: podman
|
name: podman
|
||||||
description: Roles for installing services in podman containers
|
description: Roles for installing services in podman containers
|
||||||
readme: README.md
|
readme: README.md
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
repository: "https://git.uumas.fi/uumas/ansible-podman"
|
repository: "https://git.uumas.fi/uumas/ansible-podman"
|
||||||
license_file: LICENSE
|
license_file: LICENSE
|
||||||
authors:
|
authors:
|
||||||
|
|||||||
1
roles/euro_office/README.md
Normal file
1
roles/euro_office/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Sets up a Euro Office podman container.
|
||||||
14
roles/euro_office/meta/argument_specs.yaml
Normal file
14
roles/euro_office/meta/argument_specs.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
description: Sets up a Euro Office podman container.
|
||||||
|
options:
|
||||||
|
euro_office_domains:
|
||||||
|
description: A list of domains the container should listen on.
|
||||||
|
type: list
|
||||||
|
required: true
|
||||||
|
elements: str
|
||||||
|
euro_office_jwt_secret:
|
||||||
|
description: JWT secret, must be at least 32 characters long
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
31
roles/euro_office/tasks/main.yaml
Normal file
31
roles/euro_office/tasks/main.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
- name: Euro-Office service
|
||||||
|
ansible.builtin.import_role:
|
||||||
|
name: service
|
||||||
|
vars:
|
||||||
|
service_name: euro-office
|
||||||
|
service_container_image: ghcr.io/euro-office/documentserver:latest
|
||||||
|
service_container_mounts:
|
||||||
|
- type: volume
|
||||||
|
source: data
|
||||||
|
destination: /var/lib/euro-office/documentserver
|
||||||
|
- type: volume
|
||||||
|
source: private
|
||||||
|
destination: /var/www/euro-office/Data
|
||||||
|
service_container_http_port: 80
|
||||||
|
service_domains: "{{ euro_office_domains }}"
|
||||||
|
service_database_type: postgres
|
||||||
|
service_database_secret_type: env
|
||||||
|
service_database_secret_target: DB_PWD
|
||||||
|
service_redis: true
|
||||||
|
service_container_secrets:
|
||||||
|
- name: jwt
|
||||||
|
type: env
|
||||||
|
target: JWT_SECRET
|
||||||
|
value: "{{ euro_office_jwt_secret }}"
|
||||||
|
service_container_env:
|
||||||
|
DB_HOST: postgres
|
||||||
|
DB_USER: euro_office
|
||||||
|
DB_NAME: euro_office
|
||||||
|
DB_PASSWORD__FILE: /run/secrets/postgres
|
||||||
|
REDIS_SERVER_HOST: redis
|
||||||
Reference in New Issue
Block a user