2021-01-24 20:04:03 +01:00
|
|
|
# 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 }}'
|
2021-01-30 13:06:11 +01:00
|
|
|
- DOMAINS: '{{ acme.domains|join(',') }}'
|
2021-01-24 20:04:03 +01:00
|
|
|
- FULLCERTFILE: '{{ acme.fullcertfile }}'
|
|
|
|
- KEYFILE: '{{ acme.keyfile }}'
|
|
|
|
- USERNAME: '{{ acme.provider.pki.username }}'
|
|
|
|
- PASSWORD: '{{ acme.provider.pki.password }}'
|
|
|
|
- require:
|
2021-01-30 13:06:11 +01:00
|
|
|
- file: pkic-install
|