Include files for multiple cxs.ignore

Post Reply
paulwilliamson
Junior Member
Posts: 8
Joined: 16 Dec 2013, 00:36
Location: Sydney, Australia

Include files for multiple cxs.ignore

Post by paulwilliamson »

This is a feature request to be able to include additional configuration files in the cxs.ignore file.

The reason for this is so that we can manage 'cxs.ignore' with Puppet for example, but then include a file such as 'cxs.ignore.custom' for a per server customisable configuration.

You have this feature in CSF for csf.allow which is very useful there, I think it would add value to cxswatch as well.

Kind regards,
Paul.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Include files for multiple cxs.ignore

Post by ForumAdmin »

We will add this for ignore and xtra files in the next release.
paulwilliamson
Junior Member
Posts: 8
Joined: 16 Dec 2013, 00:36
Location: Sydney, Australia

Re: Include files for multiple cxs.ignore

Post by paulwilliamson »

Fantastic, many thanks and looking forward to it!
Kind regards,
Paul.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Include files for multiple cxs.ignore

Post by ForumAdmin »

It is now available in v5.07:
http://blog.configserver.com/
paulwilliamson
Junior Member
Posts: 8
Joined: 16 Dec 2013, 00:36
Location: Sydney, Australia

Re: Include files for multiple cxs.ignore

Post by paulwilliamson »

That is brilliant! Thank you very much!!! :D
paulwilliamson
Junior Member
Posts: 8
Joined: 16 Dec 2013, 00:36
Location: Sydney, Australia

Re: Include files for multiple cxs.ignore

Post by paulwilliamson »

I noticed in your blog post you mentioned:
If cxswatch is running then it will also watch the included files for changes and reload if necessary
If I edit cxs.ignore, I get this line in the log:
Nov 25 15:20:06 cpanel-dev cxswatch[609106]: Reloading ignore file [/etc/cxs/cxs.ignore]
Inside cxs.ignore, I have added this line at the end of the file:
## Customisable ignore list per server
Include /etc/cxs/cxs.ignore.custom
If I edit that file which is included, there is no line added to the log to say cxswatch has reloaded the ignore file.

cxs is already at the latest version: v5.07
cxs daily fingerprint database up to date

Kind regards,
Paul.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Include files for multiple cxs.ignore

Post by ForumAdmin »

If you add an Include line to an ignore file you will need to restart cxs watch for it to start monitoring that file. cxs watch only logs that the main ignore file is updated whether it is the main file or any Include files that are then modified.
Post Reply