Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3749846
D3035.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
D3035.diff
View Options
diff --git a/roles/webserver-core/nginx/files/nginx.rc b/roles/webserver-core/nginx/files/nginx.rc
new file mode 100644
--- /dev/null
+++ b/roles/webserver-core/nginx/files/nginx.rc
@@ -0,0 +1,20 @@
+# -------------------------------------------------------------
+# Nginx
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/webserver-core/nginx/files/nginx.rc
+# -------------------------------------------------------------
+#
+# <auto-generated>
+# This file is managed by our rOPS SaltStack repository.
+#
+# Changes to this file may cause incorrect behavior
+# and will be lost if the state is redeployed.
+# </auto-generated>
+
+nginx_enable=YES
+
+# Buffers incoming connections until a certain
+# complete HTTP/1.0 or HTTP/1.1 requests arrive
+nginx_http_accept_enable="YES"
diff --git a/roles/webserver-core/nginx/software.sls b/roles/webserver-core/nginx/software.sls
--- a/roles/webserver-core/nginx/software.sls
+++ b/roles/webserver-core/nginx/software.sls
@@ -5,5 +5,26 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+{% from "map.jinja" import services with context %}
+
+# -------------------------------------------------------------
+# Software
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
nginx:
pkg.installed
+
+# -------------------------------------------------------------
+# Service
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if services.manager == "rc" %}
+/etc/rc.conf.d/nginx:
+ file.managed:
+ - source: salt://roles/webserver-core/nginx/files/nginx.rc
+{% endif %}
+
+nginx_service:
+ service.running:
+ - name: nginx
+ - enable: true
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 18:18 (19 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2249714
Default Alt Text
D3035.diff (1 KB)
Attached To
Mode
D3035: Enable nginx service
Attached
Detach File
Event Timeline
Log In to Comment