How to use php-pear with vagrant and chef behind a proxy? -


i'm using recipe git://github.com/opscode-cookbooks/php.git install php chef on vagrant box (ubuntu). unfortunatly box behind proxy.

it seems have call that:

pear config-set http_proxy http://domain:3128 

how can call , can call it?

you can call via execute resource, after installing php itself:

include_recipe "php::default"  execute "set proxy pear"   command "pear config-set http_proxy http://domain:3128" end  php_pear "pear_package"   version "x.x.x"   action :install end  ... 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -