External Check command token substitution?


#1

We are using Ansible and working on full automation on new client setup and one of the steps is creating new checks, metrics and monitoring using Sensu.
I know I can add data into the client.json but Ansible isn’t amazing with adding in JSON data, so I would like to know if there is a way to pull cred information from an external source?

We are using Hashicorp’s Vault as a method to store database information, Ansible does a great job pulling that information from the API. But would like to know if there is a way to get Sensu to do the same?


#2

Sensu is probably not the best layer to interact with vault at "check
definition" time.
Have you considered using consul-template to write down secrets in
plain old config files, that way any tool can use them? (sensu or
otherwise)

···

On Mon, Sep 21, 2015 at 9:07 AM, Adam Stracener <adamstracener@gmail.com> wrote:

We are using Ansible and working on full automation on new client setup and
one of the steps is creating new checks, metrics and monitoring using Sensu.
I know I can add data into the client.json but Ansible isn't amazing with
adding in JSON data, so I would like to know if there is a way to pull cred
information from an external source?
We are using Hashicorp's Vault as a method to store database information,
Ansible does a great job pulling that information from the API. But would
like to know if there is a way to get Sensu to do the same?