Page MenuHomeDevCentral

D1479.diff
No OneTemporary

D1479.diff

diff --git a/roles/paas-docker/nginx/firewall.sls b/roles/paas-docker/nginx/firewall.sls
new file mode 100644
--- /dev/null
+++ b/roles/paas-docker/nginx/firewall.sls
@@ -0,0 +1,26 @@
+# -------------------------------------------------------------
+# Salt — Provision Docker engine
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# Created: 2018-03-23
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+{% if grains['os_family'] == 'RedHat' %}
+
+nginx_enable_firewall:
+ firewalld.present:
+ - name: public
+ - prune_services: False
+ - services:
+ - http
+ - https
+
+nginx_enable_firewall_reload:
+ service.running:
+ - name: firewalld
+ - reload: True
+ - watch:
+ - firewalld: nginx_enable_firewall
+
+{% endif %}
diff --git a/roles/paas-docker/nginx/init.sls b/roles/paas-docker/nginx/init.sls
--- a/roles/paas-docker/nginx/init.sls
+++ b/roles/paas-docker/nginx/init.sls
@@ -9,3 +9,4 @@
include:
- .config
- .selinux
+ - .firewall

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 13:19 (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258521
Default Alt Text
D1479.diff (1 KB)

Event Timeline