ansible-role-atos-hsm/templates/proteccio.rc.j2
Douglas Mendizábal 5069751256 Add HA (load balancing) support
This patch add support for configuring proteccio to use
more than one HSM.  When more than one HSM is provided
the proteccio client is configured for High Availability (HA).

This patch changes the format of the variables and should
be released as a new major version. (e.g. 1.0.0).

Change-Id: Ib9989ee72a67f71275e31b966bff7673072fb3f8
2020-02-04 09:48:42 -06:00

18 lines
312 B
Django/Jinja

{% for item in atos_hsms %}
[PROTECCIO]
IPaddr={{ item.ip }}
SSL=1
SrvCert={{ item.ip | replace('.', '_') }}.CRT
{% endfor %}
[CLIENT]
{% if atos_hsms|length > 1 %}
Mode=2
{% else %}
Mode=0
{% endif %}
LoggingLevel=7
LogFile=/var/log/barbican/atos.log
ClntKey=proteccio_client.key
ClntCert=proteccio_client.crt