summaryrefslogtreecommitdiff
path: root/templates/admin_api_server/etc/openbook/admin-api-server/admin-api-server.json
blob: 2faa9c805df4bc713661fe6007efdd52d8598599 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

{% set ips = openbook_gcomm_addresses.split(",") %}
{% if ips|length > 1 %}
{% set failover = "failover:" %}
{% else %}
{% set failover = "" %}
{% endif %}


{
    "log.path": "/var/log/openbook/admin-api-server/admin-api-server.log"

{% if "True" == openbook_install_admin_api_server|string() %}
    ,"entityDS.url": "jdbc:mariadb:{{ failover }}//{{ openbook_gcomm_addresses }}/openbook"
    ,"workflowDS.url": "jdbc:mariadb:{{ failover }}//{{ openbook_gcomm_addresses }}/openbook_workflow"
    ,"jobsDS.url": "jdbc:mariadb:{{ failover }}//{{ openbook_gcomm_addresses }}/openbook_jobs"
    ,"application.port": {{ openbook_admin_api_server_port }}
    ,"cluster.interfaces": ["{{ ansible_default_ipv4.address }}"]
{% endif %}

}