254 |
rodolico |
1 |
Modules look for library.pm in the modules directory
|
149 |
rodolico |
2 |
|
254 |
rodolico |
3 |
Modules should have a call to checkOS (in library.pm) which verifies the
|
|
|
4 |
module is for the current OS.
|
154 |
rodolico |
5 |
|
254 |
rodolico |
6 |
In Unix, the script will be run only if
|
|
|
7 |
It is owned by root
|
|
|
8 |
It's execution bit is set for root and all others are set to 0, ie 0700
|
|
|
9 |
On all platforms, the file name must begin with an alpha-numeric,
|
|
|
10 |
and contains only alpha-numerics and underscores. Case does not matter.
|
154 |
rodolico |
11 |
|
254 |
rodolico |
12 |
Each module should test to determine if it can be executed. For example,
|
|
|
13 |
a module using ipmitool should test for its existence and simply
|
|
|
14 |
return nothing if it does not. In other words, no STDERR.
|
|
|
15 |
|
|
|
16 |
Modules should return a code
|
|
|
17 |
|
|
|
18 |
1 - Incorrect operating system
|
|
|
19 |
2 - One or more programs needed are not found
|
|
|
20 |
greater than 2 is an arbitrary value which is currently ignored
|
|
|
21 |
|
|
|
22 |
See template.basic for a sample of how to write a module.
|
|
|
23 |
|