Puppet Class: aerospike::params
- Defined in:
- manifests/params.pp
Overview
Class aerospike::params
This class is used for determining distribution-specific configurations. All values can be manually overridden in main module’s class ‘init.pp` by passing appropriate parameter.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'manifests/params.pp', line 7
class aerospike::params {
# Select appropriate package for supported distribution.
# See http://www.aerospike.com/download/
case $::osfamily {
'Debian': {
case $::operatingsystem {
'Debian': {
case $::operatingsystemmajrelease {
'8': {
$target_os_tag = 'debian8'
$logging_target = '/var/log/aerospike/aerospike.log'
}
'9': {
$target_os_tag = 'debian9'
$logging_target = 'console'
}
'10': {
$target_os_tag = 'debian10'
$logging_target = 'console'
}
default: {
$target_os_tag = 'debian10'
$logging_target = 'console'
}
}
}
'Ubuntu': {
case $::operatingsystemmajrelease {
'18.04': {
$target_os_tag = 'ubuntu18.04'
$logging_target = '/var/log/aerospike/aerospike.log'
}
'20.04': {
$target_os_tag = 'ubuntu18.04'
$logging_target = 'console'
}
default: {
$target_os_tag = 'ubuntu18.04'
$logging_target = 'console'
}
}
}
default: {
$target_os_tag = undef
$logging_target = $logging_target = 'console'
}
}
}
'Redhat': {
case $::operatingsystemmajrelease {
'7': {
$target_os_tag = 'el7'
$logging_target = '/var/log/aerospike/aerospike.log'
}
'8': {
$target_os_tag = 'el8'
$logging_target = 'console'
}
default: {
$target_os_tag = 'el8'
$logging_target = 'console'
}
}
}
default: {
$target_os_tag = undef
$logging_target = 'console'
}
}
$config_logging = {
$logging_target => [ 'any info', ],
}
}
|