Chef-solo and apache basic auth


#1

Hi,

Is it possible to pass chef-solo the URL for a chef tarball that is behind
http basic auth website?

If I try basic auth I am receiving the following error.

It looks like it hasn’t been implemented in the -r switch, but it does work
getting the role and solo config file.

Thanks for any help,

Tom

chef-solo -c http://user:pass@server/solo.rb -j

http://user:pass@server/roles/role.json
-r http://user:pass@server/chef.tgz
/opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:254:in open_http': userinfo not supported. [RFC3986] (ArgumentError) from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:775:inbuffer_open’
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:203:in block in open_loop' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:201:incatch’
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:201:in
open_loop' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri’
from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:677:in open' from /opt/chef/embedded/lib/ruby/1.9.1/open-uri.rb:33:inopen’
from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:201:in
block in reconfigure' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:200:inopen’
from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application/solo.rb:200:in
reconfigure' from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/lib/chef/application.rb:68:inrun’
from
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.14.4/bin/chef-solo:25:in
<top (required)>' from /usr/bin/chef-solo:23:inload’
from /usr/bin/chef-solo:23:in `’