class memcached::params { case $::osfamily { 'Debian': { $package_name = 'memcached' $service_name = 'memcached' $config_file = '/etc/memcached.conf' $config_tmpl = "${module_name}/memcached.conf.erb" $user = 'nobody' } 'RedHat': { $package_name = 'memcached' $service_name = 'memcached' $config_file = '/etc/sysconfig/memcached' $config_tmpl = "${module_name}/memcached_sysconfig.erb" $user = 'memcached' } default: { fail("Unsupported platform: ${::osfamily}") } } }