Forum: Cfengine Help Subject: Tweaking the module protocol Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21220,21220#msg-21220
As we've gone over in a couple of other threads, I'm trying to get a zillion files into Cfengine somehow. One of the routes I've tried was updating to a newer Cfengine and using the fancy new list syntax in the module protocol. However, my hopes were dashed when I found that there's an upper limit to the line length returned by a module. This chops off the end of my list, screwing up all sorts of things. So, while I've worked around this by having my module make a bunch of short lists and then making another list containing the names of the temporary lists, I'd like to know if that time was wasted. :) Is there a way to run-time configure the maximum line length suported by the module protocol? Or at least a way to dynamically discover the maximum supported line length? I think it's line length, since I still get other variables 'n classes which are defined after that truncated line. That would indicate that STDIN isn't being truncated, just lines fed on STDIN. On a related note, is there a way to suppress all of the cf3[1234] M "/path/to/module args": results lines which get dumped into syslog / the log file? I'd prefer a way to suppress those at a global level, and then unsuppress per-module - but just being able to suppress per-module would be dandy. Not only are the lines too long for syslog to record, there's also around 25 of them generated by my module which is returning all of those zillion-or-so files. That clogs up syslog pretty quickly. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine