22 lines
550 B
YAML
22 lines
550 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 }}'
|
|
- FULLCERTFILE: '{{ acme.fullcertfile }}'
|
|
- KEYFILE: '{{ acme.keyfile }}'
|
|
- USERNAME: '{{ acme.provider.pki.username }}'
|
|
- PASSWORD: '{{ acme.provider.pki.password }}'
|
|
- require:
|
|
- cmd: pkic-install
|