oswaldlabs/chef-rundeck

ChefRundeck.username being passed to ChefREST

Closed this issue · 2 comments

Not sure why -u option is being passed into Chef::Rest

https://github.com/oswaldlabs/chef-rundeck/blob/master/lib/chef-rundeck.rb#L51

that's supposed to be a Chef::Config[:node_name] equivalent: https://github.com/opscode/chef/blob/master/lib/chef/rest.rb#L57

Seems like this needs to have its own command-line flag. chef-client uses -N and --node-name for this purpose. It should also default to the Chef::Config value like api_url and client_key.

Looks like this is fixed now.