summaryrefslogtreecommitdiffstats
path: root/pillar/macros.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'pillar/macros.jinja')
-rw-r--r--pillar/macros.jinja6
1 files changed, 6 insertions, 0 deletions
diff --git a/pillar/macros.jinja b/pillar/macros.jinja
index 1d3eade..91d149c 100644
--- a/pillar/macros.jinja
+++ b/pillar/macros.jinja
@@ -24,3 +24,9 @@
interfaces: {{ interfaces }}
{%- endif -%}
{%- endmacro -%}
+
+{%- macro nginx_crtkeypair(name, ssldir) -%}
+tls_{{ name }}:
+ - ssl_certificate: {{ sslbase }}/{{ ssldir }}/crt
+ - ssl_certificate_key: {{ sslbase }}/{{ ssldir }}/key
+{%- endmacro -%}