Build / build (pull_request) Successful in 21s
Lint / renovate-config (pull_request) Successful in 4s
Molecule / select (pull_request) Successful in 3s
Lint / lint (pull_request) Successful in 5m20s
Molecule / scenarios (pull_request) Successful in 37m31s
Molecule / Result (pull_request) Successful in 1s
Go opens a :: listener dual-stack, so it already serves 127.0.0.1 and a second loopback listener failed to bind with "address already in use". :: again gets no loopback listener. The TLS file checks did not follow symlinks, so a certbot-style live/ path was refused as not a regular file; the stat now follows them, and the scenario reaches its certificate and key through symlinks. Also: - an owner or group with no name gives the readability message, not a templating error - openbao_port and openbao_cluster_port must be 1024 or higher: the unit grants no capability to bind a lower port - SystemCallErrorNumber=EPERM, so a filtered syscall fails instead of killing the server with SIGSYS - a warning when the installed binary differs from openbao_version, since main does not change an installed binary - the TLS file inputs are type path in the argument spec Refs: #536 Assisted-by: Claude Code
36 lines
1.2 KiB
Django/Jinja
36 lines
1.2 KiB
Django/Jinja
{{ ansible_managed | comment }}
|
|
{% macro hostport(address, port) %}{{ ('[' ~ address ~ ']') if ':' in address else address }}:{{ port }}{% endmacro %}
|
|
{% macro tls() %}
|
|
{% if openbao_tls_disable | bool %}
|
|
tls_disable = true
|
|
{% else %}
|
|
tls_cert_file = {{ openbao_tls_cert_file | to_json }}
|
|
tls_key_file = {{ openbao_tls_key_file | to_json }}
|
|
tls_min_version = {{ openbao_tls_min_version | to_json }}
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
ui = {{ openbao_ui | bool | lower }}
|
|
api_addr = {{ openbao_api_addr | to_json }}
|
|
cluster_addr = {{ openbao_cluster_addr | to_json }}
|
|
|
|
storage "raft" {
|
|
path = {{ openbao_data_dir | to_json }}
|
|
node_id = {{ openbao_node_id | to_json }}
|
|
}
|
|
|
|
listener "tcp" {
|
|
address = {{ hostport(openbao_listen_address, openbao_port) | to_json }}
|
|
cluster_address = {{ hostport(openbao_listen_address, openbao_cluster_port) | to_json }}
|
|
{{ tls() -}}
|
|
}
|
|
{# Go opens a :: listener dual-stack, so it already serves 127.0.0.1; a second one would not bind. #}
|
|
{% if openbao_listen_address not in ['0.0.0.0', '::', '127.0.0.1'] %}
|
|
|
|
# The role reads its own API on loopback.
|
|
listener "tcp" {
|
|
address = {{ hostport('127.0.0.1', openbao_port) | to_json }}
|
|
{{ tls() -}}
|
|
}
|
|
{% endif %}
|