Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F2454733
roles/core/certificates/letsencrypt-certificates.sls
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Dec 16 2023, 00:48
2023-12-16 00:48:15 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
roles/core/certificates/letsencrypt-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
pillar.get
(
"certificates_letsencrypt"
,
[])
%}
certificate_
{{
domain
}}
:
cmd.run
:
-
name
:
certbot certonly -d
{{
domain
}}
-
creates
:
{{
dirs.etc
}}
/letsencrypt/live/
{{
domain
}}
/fullchain.pem
{%
endfor
%}
{%
for
key
,
domains
in
pillar.get
(
"certificates_letsencrypt_multiple"
,
{})
.items
()
%}
certificate_
{{
key
}}
:
cmd.run
:
-
name
:
certbot certonly
{%
for
domain
domains
%}
-d
{{
domain
}}{%
endfor
%}
-
creates
:
{{
dirs.etc
}}
/letsencrypt/live/
{{
domains
[
0
]
}}
/fullchain.pem
{%
endfor
%}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1559394
Default Alt Text
roles/core/certificates/letsencrypt-certificates.sls (1 KB)
Attached To
Mode
P345 roles/core/certificates/letsencrypt-certificates.sls
Attached
Detach File
Event Timeline
Log In to Comment