Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F56331313
certificates.sls
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
certificates.sls
View Options
# -------------------------------------------------------------
# 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
salt
[
'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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 7, 03:07 (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3918893
Default Alt Text
certificates.sls (822 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment