storage "raft" {
    path    = "{{ env['VAULT_DATA_DIR'] }}"
    node_id = "node1"
}

listener "tcp" {
    address     = "{{ env['VAULT_SERVER_HOST'] }}:{{ env['VAULT_SERVER_PORT'] }}"
    {% if env['VAULT_SERVER_TLS'] == "yes" %}
    tls_cert_file = "{{ env['VAULT_SERVER_TLS_CERT_FILE'] }}"
    tls_key_file  = "{{ env['VAULT_SERVER_TLS_KEY_FILE'] }}"
    {% else %}
    tls_disable = "true"
    {% endif %}
}

api_addr = "{{ env['VAULT_ADDR'] }}"
cluster_addr = "https://127.0.0.1:{{ env['VAULT_CLUSTER_PORT'] }}"
ui = true
pid_file = "{{ env['VAULT_SERVER_PID_FILE'] }}"
disable_mlock = {{ env['VAULT_DISABLE_MLOCK'] }}