install memcachced
authorMartin Zobel-Helas <zobel@debian.org>
Thu, 2 Jul 2015 09:35:55 +0000 (09:35 +0000)
committerMartin Zobel-Helas <zobel@debian.org>
Thu, 2 Jul 2015 09:35:55 +0000 (09:35 +0000)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
hieradata/common.yaml
modules/roles/manifests/init.pp
modules/roles/manifests/memcached.pp [new file with mode: 0644]

index b6ece7c..554966b 100644 (file)
@@ -44,6 +44,8 @@ roles:
     - kaufmann.debian.org
   keystone:
     - oyens.debian.org
+  memcached:
+    - oyens.debian.org
   lists:
     - bendel.debian.org
   list_search:
index 2746d54..e6176ea 100644 (file)
@@ -206,6 +206,10 @@ class roles {
                include roles::keystone
        }
 
+       if has_role('memcached') {
+               include roles::memcached
+       }
+
        if has_role('postgres_backup_server') {
                include postgres::backup_server
        }
diff --git a/modules/roles/manifests/memcached.pp b/modules/roles/manifests/memcached.pp
new file mode 100644 (file)
index 0000000..974f7e5
--- /dev/null
@@ -0,0 +1,7 @@
+class roles::memcached {
+
+       class { 'memcached':
+               max_memory => 2048,
+               listen_ip  => '127.0.0.1',
+       }
+}