Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3766744
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
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 24, 19:43 (2 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255803
Default Alt Text
(1 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment