Closed jfineberg closed 5 years ago
@jfineberg you can use the additional
hash to add arbitrary keys, see: https://github.com/sensu/sensu-chef#define-a-check or https://gist.github.com/majormoses/6b670730551bf59c60165b19a3afdefe for examples
Gosh, I don't know how I forgot about "additional" attributes. Thanks, this is working well now. Feel free to close the issue.
Expected Behavior
I should be able to provide a contact name that has been defined in the "contacts" definition (Sensu Enterprise feature)
Current Behavior
The
sensu_check
resource will throw an error with this unknown 'contact' attribute.Possible Solution
Allow a "contact" attribute in
sensu_check
. Ideally, also provide asensu_contact
resource that puts JSON files innode["sensu"]["directory"]/conf.d/contacts/
Context
My organization is using this Chef cookbook with Sensu Enterprise, and we have the need to add special Contact Routing for certain checks. We can use
sensu_snippet
to generate the contacts JSON, but without thesensu_check
resource supporting a contact name, it's quite troublesome to take full advantage of Sensu Enterprise and Contact Routing.Your Environment