Page MenuHomeDevCentral

No OneTemporary

diff --git a/roles/paas-docker/nginx/firewall.sls b/roles/paas-docker/nginx/firewall.sls
new file mode 100644
index 0000000..8d74f24
--- /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
index 2f9cbf6..6238843 100644
--- a/roles/paas-docker/nginx/init.sls
+++ b/roles/paas-docker/nginx/init.sls
@@ -1,11 +1,12 @@
# -------------------------------------------------------------
# Salt — Provision Docker engine
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2018-03-16
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
include:
- .config
- .selinux
+ - .firewall

File Metadata

Mime Type
text/x-diff
Expires
Sun, Nov 24, 19:43 (5 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255803
Default Alt Text
(1 KB)

Event Timeline