Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3768766
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/roles/webserver-core/nginx/files/nginx.rc b/roles/webserver-core/nginx/files/nginx.rc
new file mode 100644
index 0000000..69be490
--- /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
index 700bb88..b7a52cf 100644
--- a/roles/webserver-core/nginx/software.sls
+++ b/roles/webserver-core/nginx/software.sls
@@ -1,9 +1,30 @@
# -------------------------------------------------------------
# Salt — Webserver core units for all webservers roles
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# 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/x-diff
Expires
Mon, Nov 25, 10:20 (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259991
Default Alt Text
(2 KB)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment