Puppet Class: memcached::params

Inherited by:
memcached
Defined in:
manifests/params.pp

Overview

Class: memcached::params

Defines all the variables used in the module.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/params.pp', line 5

class memcached::params {

  $package_name = $::osfamily ? {
    default => 'memcached',
  }

  $service_name = $::osfamily ? {
    default => 'memcached',
  }

  $config_file_path = $::osfamily ? {
    'RedHat' => '/etc/sysconfig/memcached',
    default  => '/etc/memcached.conf',
  }

  $config_file_mode = $::osfamily ? {
    default => '0644',
  }

  $config_file_owner = $::osfamily ? {
    default => 'root',
  }

  $config_file_group = $::osfamily ? {
    default => 'root',
  }

  $config_dir_path = undef

  case $::osfamily {
    'Debian','RedHat','Amazon': { }
    default: {
      fail("${::operatingsystem} not supported. Review params.pp for extending support.")
    }
  }
}