-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathparams.pp
83 lines (81 loc) · 2.41 KB
/
params.pp
1
2
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
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
# == 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.
#
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 = '-'
$dependencies = []
}
'Debian': {
$openssl_package = ['openssl']
$installer = 'dpkg'
$pkgtype = 'deb'
$development_package = 'libcouchbase-dev'
$repository = 'debian'
$pkgarch = '_amd64'
$pkgverspacer = '_'
$dependencies = ['python-httplib2']
case $::operatingsystem {
'Debian': {
$osname = 'debian7'
}
'Ubuntu': {
case $::operatingsystemrelease {
'18.04': {
$osname = 'ubuntu18.04'
}
'16.04': {
$osname = 'ubuntu16.04'
}
'14.04': {
$osname = 'ubuntu14.04'
}
default: {
$osname = 'ubuntu12.04'
}
}
}
default: { }
}
}
default: {
fail("Class['couchbase::params']: Unsupported OS: ${::osfamily}")
}
}
}