Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3752045
D3501.id9147.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
929 B
Referenced Files
None
Subscribers
None
D3501.id9147.diff
View Options
diff --git a/roles/core/certificates/letsencrypt.sls b/roles/core/certificates/letsencrypt.sls
--- a/roles/core/certificates/letsencrypt.sls
+++ b/roles/core/certificates/letsencrypt.sls
@@ -8,6 +8,7 @@
{% from "map.jinja" import dirs, packages with context %}
{% set has_nginx = salt['node']['has_nginx']() %}
+{% set has_selinux = salt["grains.get"]("selinux:enabled", False) %}
# -------------------------------------------------------------
# Software
@@ -26,6 +27,17 @@
- user: root
- dir_mode: 711
+{% if has_selinux %}
+selinux_context_certbot_www:
+ selinux.fcontext_policy_present:
+ - name: /var/letsencrypt-auto
+ - sel_type: httpd_sys_content_t
+
+selinux_context_certbot_www_applied:
+ selinux.fcontext_policy_applied:
+ - name: /var/letsencrypt-auto
+{% endif %}
+
{{ dirs.etc }}/letsencrypt/cli.ini:
file.managed:
- source: salt://roles/core/certificates/files/cli.ini
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 14:44 (18 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250772
Default Alt Text
D3501.id9147.diff (929 B)
Attached To
Mode
D3501: Allow nginx to read /.well-known/acme-challenge
Attached
Detach File
Event Timeline
Log In to Comment