May have spoken too soon. If I set the env variable, and I'm manually logged, then I run puppet all is good.
I'm still not clear on how I set the env variable when puppet is invoked from Vagrant (this might end up being a question for Vagrant not puppet?). Setting the env variable in a bash script invoked via the puppet manifest proved to be useless, as it doesn't have any scope OUTSIDE the bash script. I've tried a combination of setting the variable in /home/vagrant/.bashrc AND keeping the env via env_keep in sudoers but I'm not sure I'm understanding how Vagrant is invoking Puppet. On Monday, October 1, 2012 12:30:35 PM UTC+10, drew khoury wrote: > > Looks like I was able to get it to work by executing the export command > through a bash script, initiated via puppets exec logic in my puppet > manifest. Not the most elegant solution but good enough to get me working. > > I had originally tried setting this in ~/.bashrc but with no luck. Now > I'm... > - doing a straight export http_proxy=... (in my bash script) > as well as... > - adding to /home/vagrant/.bashrc > > This way puppet gets the proxy at runtime & if I log in as vagrant I get > proxy too. > > Thanks for pointing me in the right direction! > > On Monday, October 1, 2012 12:15:23 PM UTC+10, drew khoury wrote: >> >> Setting the env variable manually does work, however I'm trying to run >> puppet via Vagrant, so I wonder where I have to set the http_proxy variable >> to get it to work when puppet is loaded via Vagrant. >> >> >> On Monday, October 1, 2012 11:03:25 AM UTC+10, Clarence Beeks wrote: >>> >>> On Sun, Sep 30, 2012 at 5:36 PM, drew khoury <[email protected]> wrote: >>> >>>> Also I tried upgrading puppet and got the same results. >>>> >>>> vagrant@vagrant-debian-squeeze:/tmp/vagrant-puppet/manifests$ sudo >>>> apt-show-versions | grep puppet >>>> facter/squeeze uptodate 1.6.12-1puppetlabs2 >>>> puppet/squeeze uptodate 2.7.19-1puppetlabs2 >>>> puppet-common/squeeze uptodate 2.7.19-1puppetlabs2 >>>> puppetlabs-release/squeeze uptodate 1.0-5 >>>> >>>> >>> Try setting it in puppet.conf and with "export http_proxy=...." like in >>> this thread: >>> http://projects.puppetlabs.com/issues/15453 >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/KFY7rL2lVnkJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
