Role that installs ePASMed as a docker swarm stack
Go to file
Giancarlo Panichi 408d2ba44d Updated template 2021-12-17 17:41:02 +01:00
defaults Aggiunte variabili per flussi e attestati. 2021-04-07 19:24:10 +02:00
handlers Initial commit 2020-10-23 16:00:26 +02:00
meta Role that installs the epas server. 2020-10-26 15:48:35 +01:00
tasks Remove the 'run_once' condition 2020-10-26 17:14:41 +01:00
templates Updated template 2021-12-17 17:41:02 +01:00
tests Initial commit 2020-10-23 16:00:26 +02:00
vars Updated template 2021-12-17 17:41:02 +01:00
.gitignore Initial commit 2020-10-23 16:00:26 +02:00
LICENSE Initial commit 2020-10-23 16:00:26 +02:00
README.md Updated template 2021-12-17 17:41:02 +01:00

README.md

Role Name

A role that installs ePASMed, a mediator between ePAS and SistemaInformativo ISTI.

Role Variables

The most important variables are listed below:

epasmedmed_docker_stack_name: 'epasmed_prod'
epasmed_docker_service_server_name: 'epasmed'
epasmed_docker_registry: ''
epasmed_docker_server_image: 'giancarlopanichi/epasmed:latest'
epasmed_docker_registry_user: 'epasmed.user'
epasmed_docker_registry_pwd: 'use a vault file'
epasmed_docker_network: 'epasmed_net'
epasmed_attachments_node: 'localhost'
epasmed_attachments_volume: 'epasmed_attachments_data'
epasmed_node_constraints: 'node.labels.epasmed_storage == attachments'
epasmed_behind_haproxy: True
epasmed_haproxy_public_net: 'haproxy-public'
# DB
# Set to true if postgresql must be a container too
epasmed_dockerized_db: False
# IMPORTANT. Set it to True for the server that is going to host the DB
epasmed_docker_db_node: False
epasmed_pg_version: '12'
epasmed_db_image: 'postgres:{{ epasmed_pg_version }}-alpine'
# The default hostname is the name of the container service
epasmed_db_host: 'postgres'
epasmed_db_name: 'epasmed_prod_db'
epasmed_db_allowed_hosts:
  - '127.0.0.1'
#epasmed_db_pwd: 'set it in a vault file'
epasmed_db_user: 'epasmed_prod_user'
epasmed_db_volume: 'epasmed_prod_pg_data'
epasmed_db_constraints: '[node.labels.pg_data==epasmed_db]'
epasmed_pg_data_volume: 'epasmed_db_data'
epasmed_pg_backups_volume: 'epasmed_db_data'
psql_db_data: '{{ epasmed_psql_pg_data }}'
# Environment
epasmed_server_hostname: 'epasmed.example.com'
## SMTP
epasmed_smtp_server: 'localhost'
epasmed_smtp_port: 587
epasmed_smtp_channel: 'starttls'
epasmed_smtp_from: 'epasmed@cnr.it'
epasmed_smtp_protocol: 'smtp'
epasmed_smtp_authentication: True
epasmed_smtp_user: ''
epasmed_smtp_password: 'use a vault file'

Dependencies

A docker swarm cluster is required

License

EUPL-1.2

Author Information

Giancarlo Panichi, giancarlo.panichi@isti.cnr.it Andrea DellAmico, andrea.dellamico@isti.cnr.it