Commit 14364c01 authored by Pietsch, Martin's avatar Pietsch, Martin
Browse files

transform backend template to macro

parent dac8b4dd
{% macro backends(ipversion="ipv4") %}
{% if dhcp_backend == "memfile" %}
"lease-database": {
"type": "memfile",
{% if ipversion == "ipv4" %}
"name": "/var/db/kea/kea-leases4"
{% else %}
"name": "/var/db/kea/kea-leases6"
{% endif %}
},
{% elif dhcp_backend == "cassandra" %}
"lease-database": {
......@@ -35,3 +40,4 @@
"password": "{{ dhcp_db_password | default("") }}"
},
{% endif %}
{% endmacro %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment