Hi all! I need to install a local gem on all my Pu...
# puppet-enterprise
d
Hi all! I need to install a local gem on all my Puppet nodes. Is there an easy way to do that? Problem is that the gem (ipaddress) needs to download it from rubygems.org and our corporate firewall is currently blocking this. Instead of asking our networking team to open the firewall on all subnets I wanted to know if there is an easier way to distribute this. I have already installed it locally on the puppetserver, but how can I make sure that this is also on all nodes? This worked on our Puppet server, this has a bit less restrictions for downloading, but on all other nodes this does not work:
$ puppetserver gem install ipaddress --no-document
Fetching ipaddress-0.8.3.gem
Successfully installed ipaddress-0.8.3
1 gem installed
On all other nodes:
Error: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)
Error: /Stage[main]/Network2023/Package[ipaddress]/ensure: change from 'absent' to 'present' failed: Execution of '/opt/puppetlabs/puppet/bin/gem install --no-document ipaddress' returned 2: ERROR:  Could not find a valid gem 'ipaddress' (>= 0), here is why:
Unable to download data from <https://rubygems.org/> - Errno::ECONNRESET: Connection reset by peer - SSL_connect (<https://rubygems.org/specs.4.8.gz>)