chef-rundeck icon indicating copy to clipboard operation
chef-rundeck copied to clipboard

Adding an option to get only envs and nodes.

Open sriramgd opened this issue 12 years ago • 8 comments

Adding a env_node_only (i.e. -e) option. Uses the Chef RESTful API to first get envs, and their nodes. This is faster than getting all node objects and querying them. Allows hundreds of Chef nodes to be available in Rundeck quickly.

Cost:

  • Some information is lost (e.g. machine type etc.).
  • Machine name is set to unix for any machine.

Usage example: sudo ./chef-rundeck -c /home/chef/.chef/knife.rb -u username -w http://servername:4040 -e

PS: I am new to git/ruby

sriramgd avatar Feb 09 '12 19:02 sriramgd

I think this would be best served by using something like partial_search instead

josephholsten avatar Mar 25 '13 23:03 josephholsten

@sriramgd @josephholsten @leftathome Do we still need this PR?

bscott avatar Aug 19 '13 17:08 bscott

Hi, I dont work with Chef /Rundeck in my current job and am not up to date on the latest changes. However have received mails from a couple of people asking how to access the PR (since it was closed). The Rundeck bridge was very slow for more than a couple of hundred nodes. We had this problem for the couple of hundred Windows nodes which were coordinated from Rundeck, and so I had to add this switch*. Cc'ing Etienne, who sent a mail few weeks back, in case he has any input on whether the PR was useful. Thanks, Sriram

  • https://groups.google.com/forum/#!topic/rundeck-discuss/7b0xHnJpfP8

On Mon, Aug 19, 2013 at 1:16 PM, Brian Scott [email protected]:

@sriramgd https://github.com/sriramgd @josephholstenhttps://github.com/josephholsten @leftathome https://github.com/leftathome Do we still need this PR?

— Reply to this email directly or view it on GitHubhttps://github.com/oswaldlabs/chef-rundeck/pull/10#issuecomment-22888207 .

sriramgd avatar Aug 19 '13 18:08 sriramgd

This PR will have to wait till 0.2.2 release.

bscott avatar Aug 29 '13 04:08 bscott

@sriramgd Can you rebase?

bscott avatar Feb 27 '14 07:02 bscott

Anecdotal evidence suggests that supporting partial search has solved this issue for others, and doesn't introduce a significantly different collection / rendering code path in the process. My preference is to stick with that approach. Objections?

leftathome avatar Jul 25 '14 06:07 leftathome

@sriramgd Can you rebase this?

bscott avatar Oct 15 '14 03:10 bscott

@sriramgd ^^

bscott avatar Nov 27 '15 07:11 bscott