UNIX Password, Roles & Node Management: Inventory CGI
The Inventory CGI componant of Password Management provides a graphical inteface to your active and inactive inventory via web-based CGIs. It allows for easy navigation and association of data across all your nodes.
The entire CGI system is based on top of R: all inventory information, as well as ancillary data, is provided to the CGI via R handlers. Data from R is passed back to the user pretty much as-is.
First, ensure that R is working correctly, and that the proper URI_PREFIX is set in the pwman.inv.r.url property.
Next, you'll need to configure your webserver. (Note: the only webserver configuration listed here is Apache's httpd, simply because it's the one R was written in mind for. Because R is pure CGI, there's nothing preventing it from being used by other webservers; they're not listed because Apache is pretty ubiquitous, and the author didn't have access to N webservers to test on.)
The following is the barebones of what you need to get your Inventory CGI instance working underneath Apache's httpd. Insert this into the appropriate <VirtualHost> directive, after changing the pathing to be whereever you installed your Password Management instance into.
ScriptAlias /cgi-bin/ "/opt/password_management/cgi-bin/" <Directory "/opt/password_management/cgi-bin/"> DirectoryIndex index.cgi AllowOverride None Options ExecCGI Order allow,deny Allow from all ## here-ish you'd want to put in some Auth directives. </Directory>
You can, of course, add in Auth
directives inside the <Directory> block.
All information about a node is obtained via R's node handler. If you want, you can have the Inventory CGI query additional R handlers for more information about a node. For example, you can enable the node/revisions handler to show the last 5 or 6 revisions of the node's NCF, or enable the dns handler to query A, PTR and TXT records. Or whatever R handlers are available.
To get a list of available, advertised R handlers, load up the capability
handler
into a browser:
URI_PREFIX/capability
...where URI_PREFIX
is the R URL found in the pwman.r.url property.
To configure the Inventory CGI to use the R handlers you want, you need to modify the pwman.inv.r.handler_list property. It's syntax is thus:
pwman.inv.r.handler_list = handler_name[/color] [, handler_name[/color]]...
...where handler_name
is the name of the R handler you want to use, and
color
is the color scheme you want it displayed in. If color
is omitted,
it will default to blue
.
The following configuration options are available to the Inventory CGIs.
UNIX Node Inventory
.
/
. There is no default for this property. It is preset
to http://fear.corp.covad.com
, which is where the Inventory CGIs were
written.
/
.
Defaults to pwman.inv.url/cgi-bin
.
$Bin/../plugins
.
It is preset to %%pwman.base_dir%%/cgi-bin/plugins
.
4
.
10
.
|
.
text/csv
.
ERR_NO_%s
, where %s
is the name of the tag.
R, the Covad::Pwman::Properties manpage, the Covad::Pwman::R_Client manpage, the Parallel::ForkManager manpage, the LWP::UserAgent manpage
Jon Gilbert <jong@jong.org>
$Id: pwman_docs_cgi.pod,v 1.1 2005/10/20 07:48:31 jgilbertsjc Exp $