Page 1 of 1

Include files for multiple cxs.ignore

Posted: 17 Nov 2014, 04:08
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.

Re: Include files for multiple cxs.ignore

Posted: 18 Nov 2014, 21:12
by ForumAdmin
We will add this for ignore and xtra files in the next release.

Re: Include files for multiple cxs.ignore

Posted: 21 Nov 2014, 06:45
by paulwilliamson
Fantastic, many thanks and looking forward to it!
Kind regards,
Paul.

Re: Include files for multiple cxs.ignore

Posted: 21 Nov 2014, 08:12
by ForumAdmin
It is now available in v5.07:
http://blog.configserver.com/

Re: Include files for multiple cxs.ignore

Posted: 24 Nov 2014, 00:21
by paulwilliamson
That is brilliant! Thank you very much!!! :D

Re: Include files for multiple cxs.ignore

Posted: 25 Nov 2014, 04:24
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.

Re: Include files for multiple cxs.ignore

Posted: 25 Nov 2014, 08:42
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.