rules 'updated-resources'
rule on run_converge
when
updated_resource_count > 0
then
notify('slack', '
{
"username": "Chef Server",
"icon_emoji": ":chef:",
"attachments": [ {
"text": "{{message.node_name}} updated resources: [ {{#message.resources}}{{resource_type}}[{{resource_name}}] {{/message.resources}} ]",
"color": "warning"
}]
}
')
end
end
Created
November 5, 2015 16:18
-
-
Save smford22/61f03946282f7b85f729 to your computer and use it in GitHub Desktop.
Updated resource - Chef Analytics Rule
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment