Ask Your Question
0

Notify resource and Foreman

asked 2016-02-02 16:13:40 -0500

amirb gravatar image

updated 2016-02-11 07:02:19 -0500

Does anyone can answer this?

https://stackoverflow.com/questions/3...

I'm trying to find a work-around to the issue described here

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-02-07 04:25:48 -0500

Iakov GAN gravatar image

If you are into a hacky mood, you can change content of your report by modifying foreman.rb file at your puppet master. https://github.com/theforeman/puppet-...

edit flag offensive delete link more

Comments

That's exactly what I'm trying to do, but I can't get the code right. How can I add an exception to treat Notify resource as an unchanged status?

amirb gravatar imageamirb ( 2016-02-08 05:06:02 -0500 )edit
0

answered 2016-02-02 16:39:33 -0500

amirb gravatar image

updated 2016-02-06 00:19:18 -0500

I'll refine the question: Is there a way to use the Notify resource without causing puppet to report that the node has changed? Meaning just print the message to client log (and therefore the message will be visible in report) but without puppet classify the event as an applied configuration?

The reason is that when puppet triggers the Notify resource, Foreman flags the node as being active (changed)

UPDATE No one has a clue? I'm thinking about changing Foreman report file so that the UI will ignore Notify events so that the node's status will remain unchanged but still show the message in the report. Can someone point me to the right direction? Thanks!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-02 16:13:40 -0500

Seen: 120 times

Last updated: Feb 11 '16