Marc Baudoin wrote:
> Eystein Måløy Stenberg <eystein.stenb...@gmail.com> écrit :
>   
>> This message will only be printed in inform mode (-I) like for any
>> other promise.
>>     
> [...]
>   
>> You may choose from a varying number of verbosities (error, inform,
>> verbose, debug).
>> Maybe you have the level set in your policy somewhere.
>>     
>
> You're right:
>
> body agent control
> {
>    [...]
>    inform => "true" ;
>    [...]
> }
>
> The problem is, when I remove that line, I don't get some
> messages I find useful any more, such as:
>
>  -> Updated /var/cfengine/inputs/promises.cf from source 
> /var/cfengine/masterfiles/promises.cf on xx.xx.xx.xx
>
> because I want to know when the configuration files are updated
> from the master (which is an unusual event and, as such, deserves
> to be notified) but I don't want to be reminded that a file
> system is sensible as promised (which is the way it should be
> and, as such, doesn't deserve to be notified).
>   

You could define a class on the repair of copy_from and make a report 
statement. You wouldn't have the list of all the updated files, but at 
least you could know when your promises files have been changed

Regards,
Nicolas Charles
-- 
Nicolas CHARLES
Normation SAS - http://www.normation.com
44 rue Cauchy – 94110 ARCUEIL - France
+33 (0)1 83 62 26 96  - +33 (0)6 14 63 25 18


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to