Thanks! That did it, I added 'contain => mod_output' in the bundle, plus this:
body contain mod_output {
no_output => "true";
}
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-9362
From: Mark [mailto:[email protected]]
Sent: Thursday, August 05, 2010 4:24 PM
To: Anderson, Ryan C (US SSA)
Cc: [email protected]
Subject: Re: Odd output from cf3 module
Looks like your module generates some output. Select no output when running the
script? See contain options
Mark
On 5 Aug 2010, at 22:58, "Anderson, Ryan C (US SSA)"
<[email protected]<mailto:[email protected]>> wrote:
My cf3 module on 3.0.4 finds what type of video card is present and is executed
thusly:
bundle agent my_modules {
commands:
redhat::
"/var/cfengine/modules/rhvideo"
module => "true";
}
It works, as you can see from the log:
cf3 -> Executing '/var/cfengine/modules/rhvideo'
...(timeout=-678,owner=-1,group=-1)
cf3 -> (Setting umask to 77)
cf3 Activated classes: rhvideo_nVidia
cf3 M "es/rhvideo":
cf3 -> Finished script - succeeded /var/cfengine/modules/rhvideo
The problem is that when executed from cf-execd, it sends an email with just
this in it:
M "es/rhvideo":
What is that? How do I suppress these emails?
RCA
--
UNIX Administrator, BAE Systems EIT
desk 763-572-6684 mobile 612-419-9362
_______________________________________________
Help-cfengine mailing list
[email protected]<mailto:[email protected]>
https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine