Resource without reporting of change

14 views
Skip to first unread message

Georg Brunmayr

unread,
Jul 21, 2014, 10:20:59 AM7/21/14
to puppet...@googlegroups.com
Hi folks,

i work with puppet for some time now and usually find what i need to know but here my google skills fail...

What i'm doing is roughly this:
I have a pre and post stage where a node gets disabled in our build system. This is done via a custom type that sets the attribute (some xml handling) in the local file that is uploaded via another type that is just there to do the upload on the client via ruby.
That works perfect now but as a result of that mechanism every run reports at least 4 changes -> the dis-/enabling of the node via the attribute and the upload of the file. 
These reports are correct as i really changed something in there but as i do these 4 changes on every run my dashboard view no longer shows just real changes but these as well which makes it a lot harder to see when a change was rolled out to the node. 

Does anybody have an idea how i can get rid of these reports?  I want to suppress just the changes for 1 attribute and the upload as all other attribute changes should show up as changes.
Any ideas anyone?

Thx in advance
George

jcbollinger

unread,
Jul 22, 2014, 9:09:15 AM7/22/14
to puppet...@googlegroups.com


Create a script wrapping a "puppet agent --onetime --no-daemonize" run, and perform the node disablement/re-enablement in that script.  Instead of running the agent in daemon mode, use an external scheduler (e.g. cron) to run the wrapper script on whatever schedule you like.


John

Reply all
Reply to author
Forward
0 new messages