Skip to content
This repository has been archived by the owner on Feb 18, 2020. It is now read-only.

Feature recommendation: Chef Resources for GoCD resources #61

Open
miroswan opened this issue Jan 31, 2016 · 6 comments
Open

Feature recommendation: Chef Resources for GoCD resources #61

miroswan opened this issue Jan 31, 2016 · 6 comments

Comments

@miroswan
Copy link

Since GoCD provides an API to manage some of its resources, it would make sense to have Chef resources that could manage these.

@tomzo
Copy link
Member

tomzo commented Jan 31, 2016

Talking to GoCD API from ruby would basically require developing or using gocd-ruby-api. Something like this.

It is probably worth the effort to support backup/restore. Perhaps some of agent-related operations or user management.

However it is quite a lot of work. Personally I do not have a use case for such.

@tomzo
Copy link
Member

tomzo commented Jan 31, 2016

I also wonder if such functionality should be included in this cookbook. It might be better if it could mature indepenently, without causing issues here.

@miroswan
Copy link
Author

We don't necessarily need a resource for every single object. Could bring them in one by one. One LWRP per resource. the chef_gem resource could bring in the go api client for use within the resources.

@miroswan
Copy link
Author

Once the cookbook gets to 1.0 I might submit a PR for a basic user resource and see what you think.

@willejs
Copy link
Contributor

willejs commented Feb 23, 2016

👍 for this. I think its essential to reproduce anything in code.
Currently we have built some tooling to push a bunch of json into the API to configure pipelines and get chef to run it.
Its something ive just started looking at and could easily be made into a custom resource.

@tomzo
Copy link
Member

tomzo commented Feb 23, 2016

@willejs If you agree that pipelines should be configurable via source code rather than UI, then you might want to have a look at gocd/gocd#1133

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

No branches or pull requests

3 participants