80 lines
2.3 KiB
Markdown
80 lines
2.3 KiB
Markdown
Role Name
|
|
=========
|
|
|
|
A role that installs ePASMed, a mediator between ePAS and SistemaInformativo ISTI.
|
|
|
|
Role Variables
|
|
--------------
|
|
|
|
The most important variables are listed below:
|
|
|
|
``` yaml
|
|
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'
|
|
```
|
|
<!-- ## LDAP
|
|
epasmed_ldap_login: 'false'
|
|
epasmed_ldap_url: 'ldap://ldap.example.org:389'
|
|
epasmed_ldap_timeout: 1000
|
|
epasmed_ldap_base_dn: 'ou=People,dc=example,dc=org'
|
|
epasmed_ldap_login_return_uri: '/.'
|
|
epasmed_ldap_eppn_attribute_name: 'eduPersonPrincipalName'
|
|
-->
|
|
|
|
|
|
Dependencies
|
|
------------
|
|
|
|
A docker swarm cluster is required
|
|
|
|
License
|
|
-------
|
|
|
|
EUPL-1.2
|
|
|
|
Author Information
|
|
------------------
|
|
|
|
Giancarlo Panichi, <giancarlo.panichi@isti.cnr.it>
|
|
Andrea Dell'Amico, <andrea.dellamico@isti.cnr.it>
|