Skip to content

Commit aaa2501

Browse files
committed
Describe the oratab type in the readme file
1 parent f649de4 commit aaa2501

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,50 @@ Puppet Oracle Module
33

44
This repository aims to ease the configuration of Oracle
55
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.

0 commit comments

Comments
 (0)