Puppet Class: couchbase::params
- Defined in:
- manifests/params.pp
Overview
Class: couchbase::params
Container for module specific parameters
Authors
Justice London <jlondon@syrussystems.com> Portions of code by Lars van de Kerkhof <contact@permanentmarkers.nl>
Copyright
Copyright 2013 Justice London, unless otherwise noted.
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 |
# File 'manifests/params.pp', line 14
class couchbase::params {
$node_init_script = '/usr/local/bin/couchbase-node-init.sh'
$cluster_init_script = '/usr/local/bin/couchbase-cluster-init.sh'
$cluster_script = '/usr/local/bin/couchbase-cluster-setup.sh'
$node_init_lock = '/opt/couchbase/var/.node_init'
$version = '3.0.1'
$edition = 'community'
$client_package = 'libcouchbase2-libevent'
$download_url_base = 'http://packages.couchbase.com/releases'
$ensure = 'present'
$autofailover = true
$data_dir = '/opt/couchbase/var/lib/couchbase/data'
$moxi_port = '11311'
$moxi_version = '2.5.0'
case $::osfamily {
/(?i:centos|redhat|scientific)/: {
if versioncmp($::operatingsystemmajrelease, '7') >= 0 {
$openssl_package = ['openssl-libs']
$osname = "centos7"
} else {
$openssl_package = ['openssl098e']
$osname = "centos6"
}
$installer = 'rpm'
$pkgtype = 'rpm'
$development_package = 'libcouchbase-devel'
$repository = 'redhat'
$pkgarch = '.x86_64'
$pkgverspacer = '-'
}
'Debian': {
$openssl_package = ['openssl']
$installer = 'dpkg'
$pkgtype = 'deb'
$development_package = 'libcouchbase-dev'
$repository = 'debian'
$pkgarch = '_amd64'
$pkgverspacer = '_'
case $::operatingsystem {
'Debian': {
$osname = 'debian7'
}
'Ubuntu': {
case $::operatingsystemrelease {
'14.04': {
$osname = 'ubuntu14.04'
}
default: {
$osname = 'ubuntu12.04'
}
}
}
default: { }
}
}
default: {
fail("Class['couchbase::params']: Unsupported OS: ${::osfamily}")
}
}
}
|