Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sync json role definitions #4

Closed
billclark91 opened this issue Oct 15, 2014 · 1 comment
Closed

Unable to sync json role definitions #4

billclark91 opened this issue Oct 15, 2014 · 1 comment

Comments

@billclark91
Copy link

grocery-delivery script assumes definition files are ruby (*.rb). We have defined all our roles, nodes and databags using JSON.

Is there a config switch to allow uploading of json files?

@jaymzh
Copy link
Contributor

jaymzh commented Oct 15, 2014

There isn't support for JSON roles: Chef generally considers JSON roles deprecated, so we didn't add support. We can certainly look into adding it.

Databags can only be in JSON format, so that's supported already.

We have no support for writing nodes since we built GD around the idea of ephemeral node-objects. Conceivably it wouldn't be too hard to implement, but uploading nodes regularly will likely land you in a small world of hurt... because the next Chef run from that node will over-write it. And since it reads the node at the beginning of the run and writes it at the end, there's a very very wide hole for race-conditions there. Plus when you did upload it, all the data that's relevant to the run itself (last runlist, ohai time, number of resources updated, etc.) would all be inaccurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants