Victor Hooi
2012-Sep-07 04:40 UTC
[Puppet Users] Set http_proxy environment variable for package install?
Hi, I''m attempting to use Puppet with Vagrant to setup some boxes. My desktop is sitting behind a corporate HTTP proxy. This is my current (rather Spartan) manifests file: package { "python-pip":> ensure => "installed" > } > package { "build-essential": > ensure => "installed" > }When I do this, Vagrant appears to hang for a long time: C:\vagrant\vagrant\precise64_vm>..\bin\vagrant reload> [default] Attempting graceful shutdown of VM... > [default] Clearing any previously set forwarded ports... > [default] Forwarding ports... > [default] -- 22 => 2222 (adapter 1) > [default] Creating shared folders metadata... > [default] Clearing any previously set network interfaces... > [default] Booting VM... > [default] Waiting for VM to boot. This can take a few minutes. > [default] VM booted and ready for use! > [default] Mounting shared folders... > [default] -- v-root: /vagrant > [default] -- manifests: /tmp/vagrant-puppet/manifests > [default] Running provisioner: Vagrant::Provisioners::Puppet... > [default] Running Puppet with /tmp/vagrant-puppet/manifests/precise64.pp... > stdin: is not a tty > No LSB modules are available. > [default] Waiting for cleanup before exiting...My hunch is that it''s timing out since it can''t connect to the Ubuntu package repositories without the proxy. How do you configure Puppet to set a environment variable that will be used in the package section? I couldn''t seem to find much online except for this ticket - http://projects.puppetlabs.com/issues/6400 - which seems to say it''s unsupported. Is there another way to do it? Cheers, Victor -- 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/-/DMTb71qbMWwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ryan Coleman
2012-Sep-07 04:53 UTC
Re: [Puppet Users] Set http_proxy environment variable for package install?
On Thu, Sep 6, 2012 at 9:40 PM, Victor Hooi <victorhooi@gmail.com> wrote:> Is there another way to do it?Hi Victor, Try setting http_proxy_host and http_proxy_port in your puppet.conf http://docs.puppetlabs.com/references/latest/configuration.html#httpproxyhost You''ll have to configure your package providers for their own proxy, like yum for example. Puppet is just issuing commands to those software packages. HTH, --Ryan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.