File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,50 @@ Puppet Oracle Module
3
3
4
4
This repository aims to ease the configuration of Oracle
5
5
Databases with custom types and providers
6
+
7
+ New facts
8
+ ---------
9
+ (currently none)
10
+
11
+ New functions
12
+ -------------
13
+ (currently none)
14
+
15
+ New custom types
16
+ ----------------
17
+
18
+
19
+ ### oratab
20
+
21
+ The oratab file stores information about the home directory of your databases and whether
22
+ the different instances should be automatically started and stopped by the dbstart and
23
+ dbshut scripts or not.
24
+
25
+ The oratab type now allows you to treat a single entry as a resource:
26
+
27
+ oratab { 'PROD_DB':
28
+ ensure => present,
29
+ home => '/u01/app/oracle/product/10.1.0/db_1',
30
+ atboot => yes,
31
+ }
32
+
33
+ The example above will lead to the following entry in the file ` /etc/oratab ` (or ` /var/opt/oracle/oratab ` on Solaris)
34
+
35
+ PROD_DB:/u01/app/oracle/product/10.1.0/db_1:Y
36
+
37
+ You can also specify an inline comment with the description property. This is however optional.
38
+
39
+ oratab { 'PROD_DB':
40
+ ensure => present,
41
+ home => '/u01/app/oracle/product/10.1.0/db_1',
42
+ atboot => yes,
43
+ description => 'managed by puppet'
44
+ }
45
+
46
+ will lead to
47
+
48
+ PROD_DB:/u01/app/oracle/product/10.1.0/db_1:Y # managed by puppet
49
+
50
+ If you do not specifiy the description property, puppet will not touch the current inline comment.
51
+ This might interest you because newer versions of oracle always update the comment as
52
+ ` line added by agent ` on each instance stop and start.
You can’t perform that action at this time.
0 commit comments