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.