- From: Xabier de Zuazo <
>
- To:
- Subject: [chef] Re: SNS Handler
- Date: Thu, 24 Sep 2015 23:40:35 +0200
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
Attachment:
signature.asc
Description: Digital signature
Archive powered by MHonArc 2.6.16.