Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/70212


Change subject: Add initial role for redis server for tool labs
......................................................................

Add initial role for redis server for tool labs

Change-Id: I016fc22752980224d083bc8aec5fc9d6f8f9dca5
---
A modules/toollabs/manifests/redis.pp
1 file changed, 36 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/12/70212/1

diff --git a/modules/toollabs/manifests/redis.pp 
b/modules/toollabs/manifests/redis.pp
new file mode 100644
index 0000000..3757962
--- /dev/null
+++ b/modules/toollabs/manifests/redis.pp
@@ -0,0 +1,36 @@
+# Class: toollabs::execnode
+#
+# This role sets up a redis node for use by tool-labs
+# Restricts usage of certain commands, to prevent
+# people from trampling on others' keys
+# Uses default amount of RAM (1G) specified by redis class
+#
+# Parameters:
+#
+# Actions:
+#
+# Requires:
+#
+# Sample Usage:
+#
+class toollabs::redis inherits toollabs {
+       include toollabs::infrastructure
+
+       class { '::redis': 
+               $persist => "aof",
+               $dir     => "/var/lib/redis",
+               # Disable the following commands, to try to limit people from
+               # Trampling on each others' keys
+               $rename_commands => {
+                       "CONFIG"     => "",
+                       "FLUSHALL"   => "",
+                       "FLUSHDB"    => "",
+                       "KEYS"       => "",
+                       "SHUTDOWN"   => "",
+                       "SLAVEOF"    => "",
+                       "CLIENT"     => "",
+                       "RANDOMKEY"  => "",
+                       "DEBUG"      => ""
+               }
+       }
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/70212
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I016fc22752980224d083bc8aec5fc9d6f8f9dca5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to