Newer
Older
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
#
# This is for rhel5 oracle11g
#
#
# TODO: should be handled via parameterized class
class oracledb::v11g inherits oracledb {
case $operatingsystem {
'redhat': {
base::sysctl {'fs.aio-max-nr': ensure => 1048576 }
Base::Sysctl['net.core.wmem_max'] { ensure => 1048576 }
Base::Sysctl['net.core.rmem_max'] { ensure => 4194304 }
Base::Sysctl['fs.file-max'] { ensure => 6815744 }
package { [
'openmotif',
'elfutils-libelf-devel',
'libaio-devel',
]:
ensure => installed,
}
case $lsbmajdistrelease {
"6" : {
package { [
# Ntirety required packages
'compat-libstdc++-33.i686',
'glibc-devel.i686',
'ksh',
'libaio.i686',
'libstdc++.i686',
'numactl-devel',
'xorg-x11-utils',
]:
ensure => installed,
}
base::sysctl {'net.ipv4.ip_local_port_range':
ensure => "9000 65500"
}
file {'/etc/security/limits.conf':
source => "puppet:///oracledb/etc/limits.conf.rhel6"
}
}
"5" : {
package { [
'unixODBC',
'unixODBC-devel',
]:
ensure => installed,
}
Base::Sysctl["net.core.rmem_default"] { ensure => "4194304" }
Base::Sysctl['net.ipv4.ip_local_port_range'] { ensure => "9000 65500" }
}
"4": {
package { 'xorg-x11': ensure => present }
Base::Sysctl['net.ipv4.ip_local_port_range'] { ensure => "9000 65500" }
}
}
}
'default': {
fail ("oracle runs only on RHEL")
}
}
}