paulbsd-salt/states/acme/pkic.sls
2021-01-30 13:06:11 +01:00

23 lines
599 B
YAML

# vim:syntax=yaml
---
{%- from "acme/map.jinja" import acme with context %}
pkic-install:
file.managed:
- name: /etc/acme/pkic.py
- template: jinja
- source: salt://acme/pkic.py.j2
- mode: 755
pkic-run:
cmd.run:
- name: /etc/acme/pkic.py
- env:
- URL: '{{ acme.provider.pki.url }}'
- DOMAINS: '{{ acme.domains|join(',') }}'
- FULLCERTFILE: '{{ acme.fullcertfile }}'
- KEYFILE: '{{ acme.keyfile }}'
- USERNAME: '{{ acme.provider.pki.username }}'
- PASSWORD: '{{ acme.provider.pki.password }}'
- require:
- file: pkic-install