Page MenuHomeDevCentral

D3035.diff
No OneTemporary

D3035.diff

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

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)

Event Timeline