Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3717058
D1479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1479.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 23:56 (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2232419
Default Alt Text
D1479.diff (1 KB)
Attached To
Mode
D1479: Configure firewall for nginx on RedHat servers
Attached
Detach File
Event Timeline
Log In to Comment