I''m running puppet in a local VM to do some testing, and all of our systems are behind a proxy. I''ve got the http_proxy environment variable set properly, but when I try to use puppet module install <foo> it doesn''t seem to honor it and can''t connect. I used wget to download it, but even when I use modulepath it still tries to connect to the forge and fails. I''ve tried: sudo puppet module install --modulepath . puppetlabs-stdlib-2.3.3.tar.gz sudo puppet module install --modulepath . puppetlabs/stdlib sudo puppet module install --modulepath . puppetlabs-stdlib I consistently get: Preparing to install into . ... Downloading from http://forge.puppetlabs.com ... Error: Network is unreachable - connect(2) Error: Try ''puppet help module install'' for usage According to the documentaion, --modulepath MODULEPATH - Which directories to look for modules in --target-dir DIR | -i DIR - The directory into which modules are installed. but it seems to be trying to install FROM the web into the current directory. I''m using puppet 2.7.16 on Ubuntu 12.04 LTS. What do I need to do to either install it from the local source, or install it manually? Thank you. -- 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/-/-6W9W9b-WUsJ. 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.
Please disregard, I dug deeper into the online docs and discovered that I had to set this in a config file and not just rely on the env variables. On Friday, June 15, 2012 12:47:14 PM UTC-5, llo...@oreillyauto.com wrote:> > I''m running puppet in a local VM to do some testing, and all of our > systems are behind a proxy. I''ve got the http_proxy environment variable > set properly, but when I try to use puppet module install <foo> it doesn''t > seem to honor it and can''t connect. > > I used wget to download it, but even when I use modulepath it still tries > to connect to the forge and fails. > > I''ve tried: > > sudo puppet module install --modulepath . puppetlabs-stdlib-2.3.3.tar.gz > sudo puppet module install --modulepath . puppetlabs/stdlib > sudo puppet module install --modulepath . puppetlabs-stdlib > > I consistently get: > > Preparing to install into . ... > Downloading from http://forge.puppetlabs.com ... > Error: Network is unreachable - connect(2) > Error: Try ''puppet help module install'' for usage > > According to the documentaion, > > --modulepath MODULEPATH - Which directories to look for modules in > --target-dir DIR | -i DIR - The directory into which modules are > installed. > > but it seems to be trying to install FROM the web into the current > directory. > > I''m using puppet 2.7.16 on Ubuntu 12.04 LTS. > > What do I need to do to either install it from the local source, or > install it manually? > > Thank you. > >-- 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/-/52H6Z3xJiaMJ. 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.
Please disregard, I dug deeper into the online docs and discovered that I> had to set this in a config file and not just rely on the env variables. > >My apologies.. I spoke too soon. In my puppet.conf, I have: http_proxy_host=http://user:password@proxy-address.tld http_proxy_port=3128 The proxy info is correct, as I can use wget and apt etc. Thank you for the assistance.> > I''m running puppet in a local VM to do some testing, and all of our >> systems are behind a proxy. I''ve got the http_proxy environment variable >> set properly, but when I try to use puppet module install <foo> it doesn''t >> seem to honor it and can''t connect. >> >> I used wget to download it, but even when I use modulepath it still tries >> to connect to the forge and fails. >> >> I''ve tried: >> >> sudo puppet module install --modulepath . puppetlabs-stdlib-2.3.3.tar.gz >> sudo puppet module install --modulepath . puppetlabs/stdlib >> sudo puppet module install --modulepath . puppetlabs-stdlib >> >> I consistently get: >> >> Preparing to install into . ... >> Downloading from http://forge.puppetlabs.com ... >> Error: Network is unreachable - connect(2) >> Error: Try ''puppet help module install'' for usage >> >> According to the documentaion, >> >> --modulepath MODULEPATH - Which directories to look for modules >> in >> --target-dir DIR | -i DIR - The directory into which modules are >> installed. >> >> but it seems to be trying to install FROM the web into the current >> directory. >> >> I''m using puppet 2.7.16 on Ubuntu 12.04 LTS. >> >> What do I need to do to either install it from the local source, or >> install it manually? >> >> Thank you. >> >>-- 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/-/PpGEktt5sMMJ. 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.
Hello, Unfortunately, there looks to be a couple of bugs impacting this. One is http://projects.puppetlabs.com/issues/14939 affecting --modulepath . and the other is related to but not exactly http://projects.puppetlabs.com/issues/show/14528. These are both bugs on our queue to address. I apologize for the inconvenience these bugs are causing, your use case is certainly valid. Are you able to curl or wget against the forge.puppetlabs.com? At this point, the module tool wants to examine the Forge for dependencies though you can try the --ignore-dependencies flag to skip that step. I''m looking into this more closely, will attempt to mimic your setup and get back to you when I have more information. --Ryan On Fri, Jun 15, 2012 at 10:47 AM, llowder@oreillyauto.com <llowder@oreillyauto.com> wrote:> I''m running puppet in a local VM to do some testing, and all of our systems > are behind a proxy. I''ve got the http_proxy environment variable set > properly, but when I try to use puppet module install <foo> it doesn''t seem > to honor it and can''t connect. > > I used wget to download it, but even when I use modulepath it still tries to > connect to the forge and fails. > > I''ve tried: > > sudo puppet module install --modulepath . puppetlabs-stdlib-2.3.3.tar.gz > sudo puppet module install --modulepath . puppetlabs/stdlib > sudo puppet module install --modulepath . puppetlabs-stdlib > > I consistently get: > > Preparing to install into . ... > Downloading from http://forge.puppetlabs.com ... > Error: Network is unreachable - connect(2) > Error: Try ''puppet help module install'' for usage > > According to the documentaion, > > --modulepath MODULEPATH - Which directories to look for modules in > --target-dir DIR | -i DIR - The directory into which modules are > installed. > > but it seems to be trying to install FROM the web into the current > directory. > > I''m using puppet 2.7.16 on Ubuntu 12.04 LTS. > > What do I need to do to either install it from the local source, or install > it manually? > > Thank you. > > -- > 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/-/-6W9W9b-WUsJ. > 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.-- 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.
Comments inline On Friday, June 15, 2012 1:21:44 PM UTC-5, Ryan Coleman wrote:> > Hello, > > Unfortunately, there looks to be a couple of bugs impacting this. > > One is http://projects.puppetlabs.com/issues/14939 affecting > --modulepath . and the other is related to but not exactly > http://projects.puppetlabs.com/issues/show/14528. > >I''m glad to know it wasn''t just something stupid on my part.> These are both bugs on our queue to address. I apologize for the > inconvenience these bugs are causing, your use case is certainly > valid. Are you able to curl or wget against the forge.puppetlabs.com? > At this point, the module tool wants to examine the Forge for > dependencies though you can try the --ignore-dependencies flag to skip > that step. > > Yes, I am able to wget to the forge, and have already downloaded a copy ofthe module I was trying to install. I tried using the --ignore dependencies flag, as well as changing my ''.'' to `pwd`, but still got the network error. sudo puppet module install --ignore-dependencies --modulepath `pwd` puppetlabs-stdlib Preparing to install into /etc/puppet ... Downloading from http://forge.puppetlabs.com ... Error: Error: Could not connect to http://forge.puppetlabs.com There was a network communications problem Check your network connection and try again> I''m looking into this more closely, will attempt to mimic your setup > and get back to you when I have more information. > > --Ryan > > > Since I have the tarball, is there a way I can a) get a list of deps andb) manually install them? Do I just unpack into /usr/share/puppet/modules ? -- 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/-/JyIAGc9-TV0J. 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.
I won''t get a chance to replicate your situation and test further until this weekend. Apologies. On Fri, Jun 15, 2012 at 12:01 PM, llowder@oreillyauto.com <llowder@oreillyauto.com> wrote:> Since I have the tarball, is there a way I can a) get a list of deps and b) > manually install them? Do I just unpack into /usr/share/puppet/modules ?Yes. In the meantime, you can just untar the file and move it into your module path. You''ll need to rename the unpacked folder to match the actual module name (ex. puppetlabs-stdlib becomes just stdlib). There should be a Modulefile inside the stdlib folder which describes the other module dependancies (if any). puppetlabs-stdlib does not have dependancies on other modules. Thanks for providing your proxy information from puppet.conf. Is your system otherwise configured for using a proxy? --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.
Comments in line again On Friday, June 15, 2012 2:13:08 PM UTC-5, Ryan Coleman wrote:> > I won''t get a chance to replicate your situation and test further > until this weekend. Apologies. > > On Fri, Jun 15, 2012 at 12:01 PM, llowder > > Since I have the tarball, is there a way I can a) get a list of deps and > b) > > manually install them? Do I just unpack into /usr/share/puppet/modules ? > > Yes. In the meantime, you can just untar the file and move it into > your module path. You''ll need to rename the unpacked folder to match > the actual module name (ex. puppetlabs-stdlib becomes just stdlib). > There should be a Modulefile inside the stdlib folder which describes > the other module dependancies (if any). puppetlabs-stdlib does not > have dependancies on other modules. > >Good to know, so I can at least move forward.> Thanks for providing your proxy information from puppet.conf. Is your > system otherwise configured for using a proxy? >Yes, I have http_proxy, https_proxy and ftp_proxy environment variables set, and also the needed config changes for apt-get, and I am able to wget or curl to wherever ( I had actually already used wget to fetch the tarball from the forge). Please let me know if there is anything else I can do to help with this. -- 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/-/vRRutVuAyNwJ. 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.
On Friday, June 15, 2012 2:19:21 PM UTC-5, llo...@oreillyauto.com wrote:> > Comments in line again > > On Friday, June 15, 2012 2:13:08 PM UTC-5, Ryan Coleman wrote: >> >> I won''t get a chance to replicate your situation and test further >> until this weekend. Apologies. >> >> On Fri, Jun 15, 2012 at 12:01 PM, llowder >> > Since I have the tarball, is there a way I can a) get a list of deps >> and b) >> > manually install them? Do I just unpack into /usr/share/puppet/modules >> ? >> >> Yes. In the meantime, you can just untar the file and move it into >> your module path. You''ll need to rename the unpacked folder to match >> the actual module name (ex. puppetlabs-stdlib becomes just stdlib). >> There should be a Modulefile inside the stdlib folder which describes >> the other module dependancies (if any). puppetlabs-stdlib does not >> have dependancies on other modules. >> >>I have the files unpacked in /etc/puppet/modules/stdlib as was indicated. The documentation mentions I can do a puppet doc -r function. When I try ''puppet doc -r validate_string'' I get ''Could not run: Could not find reference validate_string'' Am I missing something, or doing something wrong? -- 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/-/73sf_7tHUHIJ. 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.
On Tue, Jun 26, 2012 at 9:05 AM, llowder@oreillyauto.com <llowder@oreillyauto.com> wrote:> I have the files unpacked in /etc/puppet/modules/stdlib as was indicated. > The documentation mentions I can do a puppet doc -r function. > > When I try ''puppet doc -r validate_string'' I get ''Could not run: Could not > find reference validate_string''"function" is meant literally, not as a substitution for the function you''re looking for. I usually do something like: `puppet doc -r function | less` then search for the function I''m looking for. -Jeff -- 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.
Maybe Matching Threads
- How can I list classes available on the puppet master?
- Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82
- ANNOUNCE: Puppet Module Tool version 0.3.4
- Puppet Modules from Forge
- rspec-puppet and puppet doc conflicts