[chef] chef-solo and apache basic auth


Chronological Thread 
  • From: Tom < >
  • To:
  • Subject: [chef] chef-solo and apache basic auth
  • Date: Fri, 2 Nov 2012 14:27:22 +0000

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: /solo.rb -j http://user: /roles/role.json -r http://user: /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:in `buffer_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:in `catch'
        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:in `open_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:in `open'
        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:in `open'
        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:in `run'
        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:in `load'
        from /usr/bin/chef-solo:23:in `<main>'



  • [chef] chef-solo and apache basic auth, Tom, 11/02/2012

Archive powered by MHonArc 2.6.16.

§