[chef] Re: Re: SNS Handler


Chronological Thread 
  • From: Charles Johnson < >
  • To:
  • Subject: [chef] Re: Re: SNS Handler
  • Date: Fri, 25 Sep 2015 14:57:45 +0000

Are the typos in the README or in the chef docs? Let's get them fixed.
On Thu, Sep 24, 2015 at 2:41 PM Xabier de Zuazo < "> > wrote:
On 2015-09-24 12:41, Doug Garstang wrote:
> I've been trying to implement chef reporting to SNS with this:
> http://onddo.github.io/chef-handler-sns/
> [...]
>
> However, if I add this to client.rb like the doc says:
> sns_handler.subject: "Chef-run: <%= node.name %> - <%= run_status.success?
> ? "ok" : "error" %>"
>
> Then, I guess this isn't valid ruby or something because the chef client
> run fails with an error pointing here. :(

There are some typos in the documentation. Try the following:

sns_handler.subject "Chef-run: <%= node.name %> - <%= run_status.success? ? 'ok' : 'error' %>"

--
Xabier de Zuazo



Archive powered by MHonArc 2.6.16.

§