Puppet Class: cassandra::params

Overview

This class is meant to be called from the locp-cassandra module. It sets variables according to platform.



3
4
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
41
42
43
44
45
46
47
48
49
50
51
# File 'manifests/params.pp', line 3

class cassandra::params {
  case $::osfamily {
    'Debian': {
      case $::operatingsystemmajrelease {
        12.04: {
          $net_ipv4_tcp_rmem = '4096 87380 16777216'
          $net_ipv4_tcp_wmem = '4096 65536 16777216'
        }
        default: {
          $net_ipv4_tcp_rmem = '4096, 87380, 16777216'
          $net_ipv4_tcp_wmem = '4096, 65536, 16777216'
        }
      }

      $cassandra_pkg = 'cassandra'
      $config_path = '/etc/cassandra'
      $java_package = 'openjdk-7-jre-headless'
      $jna_package_name = 'libjna-java'
      $optutils_package_name = 'cassandra-tools'
      $sysctl_file = '/etc/sysctl.d/10-cassandra.conf'
      $systemctl = '/bin/systemctl'
    }
    'RedHat': {
      case $::operatingsystemmajrelease {
        6: {
          $net_ipv4_tcp_rmem = '4096 87380 16777216'
          $net_ipv4_tcp_wmem = '4096 65536 16777216'
          $sysctl_file = '/etc/sysctl.conf'
        }
        7: {
          $net_ipv4_tcp_rmem = '4096, 87380, 16777216'
          $net_ipv4_tcp_wmem = '4096, 65536, 16777216'
          $sysctl_file = '/etc/sysctl.d/10-cassandra.conf'
        }
        default: {}
      }

      $cassandra_pkg = 'cassandra22'
      $config_path = '/etc/cassandra/default.conf'
      $java_package = 'java-1.8.0-openjdk-headless'
      $jna_package_name = 'jna'
      $optutils_package_name = 'cassandra22-tools'
      $systemctl = '/usr/bin/systemctl'
    }
    default: {
      $config_path_parents = []
    }
  }
}