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
#
# Subclass of the oracle class to handle systems with no SAN disk. This also
# requires moving users around a bit.
# TODO: look into using a parameterized class here instead of override
class oracledb::local::oracleuser inherits user::oracle {
File["/u01"] { ensure => "/opt/u01" }
file {
"/opt/u01":
ensure => directory,
owner => "oracle",
group => "dba";
"/opt/u01/app":
ensure => directory,
owner => "oracle",
group => "dba";
"/opt/u01/app/oracle":
ensure => directory,
owner => "oracle",
group => "dba",
}
}
# TODO combine with oracledb::local
class oracledb::local::directories inherits oracledb::directories {
File["/u02"] { ensure => "/opt/u02" }
File["/u03"] { ensure => "/opt/u03" }
file {
"/opt/u01/app/rman":
ensure => directory,
owner => "oracle",
group => "dba",
mode => 770;
"/opt/u02":
ensure => directory,
owner => "oracle",
group => "dba",
mode => 770;
"/opt/u03":
ensure => directory,
owner => "oracle",
group => "dba",
mode => 770,
}
}
class oracledb::local inherits oracledb {
include oracledb::local::oracleuser,
oracledb::local::directories
}