Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764549
D3359.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D3359.diff
View Options
diff --git a/roles/redis/init.sls b/roles/redis/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/redis/init.sls
@@ -0,0 +1,9 @@
+# -------------------------------------------------------------
+# Salt — Provision Redis
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .server
diff --git a/roles/redis/server/files/redis.rc b/roles/redis/server/files/redis.rc
new file mode 100644
--- /dev/null
+++ b/roles/redis/server/files/redis.rc
@@ -0,0 +1,16 @@
+# -------------------------------------------------------------
+# Redis — rc configuration
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# Source file: roles/redis/server/files/redis.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>
+
+redis_enable="YES"
diff --git a/roles/redis/server/init.sls b/roles/redis/server/init.sls
new file mode 100644
--- /dev/null
+++ b/roles/redis/server/init.sls
@@ -0,0 +1,10 @@
+# -------------------------------------------------------------
+# Salt — Provision Redis
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+include:
+ - .software
+ - .service
diff --git a/roles/redis/server/service.sls b/roles/redis/server/service.sls
new file mode 100644
--- /dev/null
+++ b/roles/redis/server/service.sls
@@ -0,0 +1,22 @@
+# -------------------------------------------------------------
+# Salt — Provision Redis
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+# -------------------------------------------------------------
+# Redis service
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+{% if grains['os'] == 'FreeBSD' %}
+
+/etc/rc.conf.d/redis:
+ file.managed:
+ - source: salt://roles/redis/server/files/redis.rc
+
+redis_running:
+ service.running:
+ - name: redis
+
+{% endif %}
diff --git a/roles/redis/server/software.sls b/roles/redis/server/software.sls
new file mode 100644
--- /dev/null
+++ b/roles/redis/server/software.sls
@@ -0,0 +1,11 @@
+# -------------------------------------------------------------
+# Salt — Provision Redis
+# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+# Project: Nasqueron
+# License: Trivial work, not eligible to copyright
+# -------------------------------------------------------------
+
+redis_software:
+ pkg.installed:
+ - pkgs:
+ - redis
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -25,6 +25,7 @@
- roles/dbserver-mysql
- roles/dbserver-pgsql
- roles/devserver
+ - roles/redis
- roles/saas-nextcloud
- roles/webserver-alkane
- roles/webserver-core
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 06:37 (17 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2257420
Default Alt Text
D3359.diff (3 KB)
Attached To
Mode
D3359: Deploy Redis
Attached
Detach File
Event Timeline
Log In to Comment