From 3b4410c250e890708d744f7f7e0b72a13d4dfcba Mon Sep 17 00:00:00 2001 From: Steffen Zieger Date: Wed, 5 Feb 2014 22:09:24 +0100 Subject: [PATCH] add support for Amazon Linux --- manifests/params.pp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index c1f4b8cb6..92c734ff8 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -21,7 +21,20 @@ $user = 'memcached' } default: { - fail("Unsupported platform: ${::osfamily}") + case $::operatingsystem { + 'Amazon': { + $package_name = 'memcached' + $service_name = 'memcached' + $service_hasstatus = true + $dev_package_name = 'libmemcached-devel' + $config_file = '/etc/sysconfig/memcached' + $config_tmpl = "${module_name}/memcached_sysconfig.erb" + $user = 'memcached' + } + default: { + fail("Unsupported platform: ${::osfamily}/${::operatingsystem}") + } + } } } }