Fixing syntax mistake, clarifying why pillar don’t work#3
Conversation
|
Hey @renoirb, Were you using grains in the Either way your solution also works but I was hoping to get this to a grain value at least. For the Once we get this hashed out and merged I will push it down to the official salt-formulas repository. |
|
Thanks for the feedback. I tried many ways but I disagree with using grains to store a secret. I might get convinced if we have no choice at all though. But instead of making a simple test My use-case, for example, is to use a GitHub hook and run a I started a strawman runner in this gist. I’ll keep you updated on the findings and feedback I get. |
|
Actually, you're right we shouldn't use grains. Pillars are the right answer because they are salt's method for storing sensitive data. With grains they are either stored within the state file_roots directory, which is copied to every host or in As far as use cases go I am totally open to add in use cases. The only things I want to make sure is that they are generic enough for anyone to use. The github webhook is an awesome idea and we should probably look at adding additional external pre-defined webhooks as well like TravisCI, Logentries, Paptertrail, Slack and so on. The trick is tieing the authentication logic with the logic to run the actions. We may want to relook at the structure a bit and create reactors.sls files that handle the authentication piece, populate data then include Something like having requests that go to Something like that, let me think about this for a second. |
|
Hey, thanks for the merge. I haven’t spent more time on that, did you work something out? |
|
I haven't had much time to work on it so I merged the description you put On May 23, 2015 11:07 AM, "Renoir Boulanger" notifications@github.com
|
|
Hey, by the way. I'm back working onto something that uses salt-api to run deploys. If you've been searching a way to validate a GitHub hook through salt-api, I just found the ideal solution. I thought you'd enjoy! |
I’ve spent time trying it out, its great! Except I found a small syntax error :)
While thinking how to use it, I thought we’d like to parametrize the
secretkeyand realized too late that reactors can’t get access to it. I adjusted the readme to give a solution path on how to parametrize it.