Page MenuHomeDevCentral

certificates.sls
No OneTemporary

certificates.sls

# -------------------------------------------------------------
# Salt — Let's encrypt certificates
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-04-27
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
{% from "map.jinja" import dirs with context %}
# -------------------------------------------------------------
# Certificates
# -------------------------------------------------------------
{% for domain in pillar.get('certificates_letsencrypt')[grains['id']] %}
certificate_{{ domain }}:
cmd.run:
- name: certbot certonly -d {{ domain }}
- unless: test -f {{ dirs.etc }}/letsencrypt/live/{{ domain }}/fullchain.pem
{% endfor %}

File Metadata

Mime Type
text/plain
Expires
Fri, May 15, 11:55 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3696811
Default Alt Text
certificates.sls (808 B)

Event Timeline