Closed zeleznypa closed 10 years ago
Support for PEAR was added already in v1.1.0 (#34). Is it not working for you?
Pear and peck work very well but I miss support for pear behind PROXY
He, I think we have some challenges in our communication. =)
I was trying to tell that vagrant-proxyconf should already support configuring proxy for PEAR. If pear
binary is found after spinning up the box, or even after each provisioner run, vagrant-proxyconf calls sudo pear config-set http_proxy <proxy>
. Of course if PEAR is installed and used right away during the same provisioner run, we have no way to configure it in the middle.
For being able to help I would need more information.
vagrant up --debug
? Please use gist.Firstly, I'm sorry for my english,
I try to install vagrant environment based on http://www.puphpet.com with configuration as is in gist ( https://gist.github.com/zeleznypa/61ca41b85d462cea85f9 )config.yaml. I had to manualy change something like path to keyserver.ubuntu.com to hkp://keyserver.ubuntu.com:80 in every puppet modules but at the end, everything work well except instalation of pecl modules as is shown in the error message in gist.
here is whole vagrant project https://drive.google.com/file/d/0B4DjiD5t477YeEItY0ZFRUVJZHc
Hope that this is enough descriptive and thanks for your kind support
Ps.: At the moment of writing this message I think about, that your plugin is starting at the moment of virtualbox start process and before provisioning part, that install PEAR ;) Maybe it is a problem of puppet provisioning module. Isn't it?
Pps.: After I solwed some other problems and reload my vagrant with --provision extension, everything wor well. So the problem is based on pecl provisioning and not in your great plugin.
Sorry for my mistification and once more, thanks for your kind help
@zeleznypa No prob, good you found a workaround. You could also just try to vagrant provision
after the first vagrant up
.
We could also ask from PuPHPet if they have some way of splitting the PHP installation to a separate provisioner block. /cc @jtreminio
I need to install and run pear during provisioning. In this situation, vagrant-proxyconf won't kick in for pear until provisioning is complete. My workaround is adding the below line to my Vagrant bootstrap script:
sudo pear config-set http_proxy $(printenv http_proxy)
This pulls the http_proxy
environment variable set by vagrant-proxyconf and uses it to immediately configure pear's proxy settings. This command is portable as it throws a non-fatal config-set expects 2 or 3 parameters
error in environments without a proxy server (and therefore no set http_proxy
variable).
Please,
is it possible to add support for automatic proxy settings of PHP pecl and pear? http://stackoverflow.com/questions/2266491/how-to-use-pear-behind-proxy