Xymon Mailing List Archive search

include directives in hobbitlaunch.cfg, hobbitgraph.cfg

3 messages in this thread

list Buchan Milne · Mon, 23 Jan 2006 18:10:23 +0200 ·
Since we're looking to package some of our (server and client) extension scripts for hobbits in RPMs (to work nicely with the rest of our server deployment setup for Linux boxen), it would be really convenient if we could dump the entry for hobbitlaunch.cfg/clientlaunch.cfg and hobbitgraph.cfg in separate files, and use include directives (with support for globs) in the relevant config files. ie, supporting something like:

include /etc/hobbit/hobbitlaunch.d/*.cfg

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)
list Henrik Størner · Tue, 30 May 2006 11:38:07 +0200 ·
quoted from Buchan Milne
On Mon, Jan 23, 2006 at 06:10:23PM +0200, Buchan Milne wrote:
Since we're looking to package some of our (server and client) extension scripts for hobbits in RPMs (to work nicely with the rest of our server deployment setup for Linux boxen), it would be really convenient if we could dump the entry for hobbitlaunch.cfg/clientlaunch.cfg and hobbitgraph.cfg in separate files, and use include directives (with support for globs) in the relevant config files. ie, supporting something like:

include /etc/hobbit/hobbitlaunch.d/*.cfg
This is in 4.2. In your main hobbitlaunch.cfg, put a line with

directory /etc/hobbit/hobbitlaunch.d/

and it will include all files in this directory as if they were part of
the main file.


Regards,
Henrik
list Buchan Milne · Thu, 27 Jul 2006 12:40:51 +0200 ·
quoted from Henrik Størner
On Tuesday 30 May 2006 11:38, Henrik Stoerner wrote:
On Mon, Jan 23, 2006 at 06:10:23PM +0200, Buchan Milne wrote:
Since we're looking to package some of our (server and client) extension
scripts for hobbits in RPMs (to work nicely with the rest of our server
deployment setup for Linux boxen), it would be really convenient if we
could dump the entry for hobbitlaunch.cfg/clientlaunch.cfg and
hobbitgraph.cfg in separate files, and use include directives (with
support for globs) in the relevant config files. ie, supporting something
like:

include /etc/hobbit/hobbitlaunch.d/*.cfg
This is in 4.2. In your main hobbitlaunch.cfg, put a line with

directory /etc/hobbit/hobbitlaunch.d/

and it will include all files in this directory as if they were part of
the main file.
Argh, I missed this mail. 


Using globbing would prevent tricky problems with backup files, temporary 
files. For example, one of our developers did an include for the contents of 
a directory in a web application. While trying to troubleshoot, another 
member of our team had the file open in vim, and had very weird results do to 
the application trying to interpret the swap file ...

For people packaging extensions (specifically RPMs, maybe other packaging 
systems), .rpmsave/.rpmnew files may also produce weird effects.

But, even if it stays as is it will help, thanks!

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)