-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.pp
35 lines (35 loc) · 1.26 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
# This classed is not supposed to be called externally.
# @summary Defines parameters for the different supported Operating Systems
class ratticdb::params {
case $::osfamily {
'debian': {
$managing_class = 'apt'
$python_pip = 'python-pip'
$python_dev = 'python-dev'
$libxml2_dev = 'libxml2-dev'
$libxslt1_dev = 'libxslt1-dev'
$mysql_dev = 'libmysqlclient-dev'
$ssl_dev = 'libssl-dev'
$libldap2_dev = 'libldap2-dev'
$libsasl2_dev = 'libsasl2-dev'
$ssl_cert_path = '/etc/ssl/certs/ssl-cert-snakeoil.pem'
$ssl_cert_key_path = '/etc/ssl/private/ssl-cert-snakeoil.key'
}
'redhat': {
$managing_class = 'epel'
$python_pip = 'python2-pip'
$python_dev = 'python-devel'
$libxml2_dev = 'libxml2-devel'
$libxslt1_dev = 'libxslt-devel'
$mysql_dev = 'mariadb-devel'
$ssl_dev = 'openssl-devel'
$libldap2_dev = 'openldap-devel'
$libsasl2_dev = 'cyrus-sasl-devel'
$ssl_cert_path = '/etc/ssl/certs/localhost.crt'
$ssl_cert_key_path = '/etc/pki/tls/private/localhost.key'
}
default: {
fail('Operating system not supported')
}
}
}