paulbsd-salt/states/acme/common.sls

15 lines
350 B
Plaintext
Raw Normal View History

2021-01-24 20:04:03 +01:00
# vim:syntax=yaml
{%- from "acme/map.jinja" import acme with context %}
2021-07-11 17:37:42 +02:00
---
2021-01-24 20:04:03 +01:00
{%- for dir in acme.directories %}
acme-directories-{{ dir }}:
file.directory:
- name: {{ dir }}
- makedirs: true
{%- endfor %}
acme-dh-params:
cmd.run:
- name: openssl dhparam -out {{ acme.dh.path }} {{ acme.dh.keysize }}
- creates: {{ acme.dh.path }}