diff options
author | Georg Pfuetzenreuter | 2023-02-05 10:04:09 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-02-05 10:04:09 +0100 |
commit | 4581bd4a6a800e6dae21ebdbbb89f496de83ccf9 (patch) | |
tree | 2813583ea15fa21f0da0beff029c44e9d027d8a4 /pillar/macros.jinja | |
parent | 3f2b8d2ee79ba53027b60c932c0dc41a1a5cd3f5 (diff) | |
download | salt-4581bd4a6a800e6dae21ebdbbb89f496de83ccf9.tar.gz salt-4581bd4a6a800e6dae21ebdbbb89f496de83ccf9.tar.bz2 salt-4581bd4a6a800e6dae21ebdbbb89f496de83ccf9.zip |
Add nginx crtkeypair macro
For use in nginx pillars.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'pillar/macros.jinja')
-rw-r--r-- | pillar/macros.jinja | 6 |
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 -%} |