Ask Your Question
0

Need to download RPMs for Puppet 4 for offline install

asked 2016-05-04 00:21:07 -0500

Ivantremble gravatar image

I work on a government site where external internet access is banned for back-end Servers. I need to download the RPMs for Puppet 4 on Redhat 6.5, and to know which packages are required. The http://yum.puppetlabs.com only goes up to Puppet 3.8. I need to know the location of the most recent packages.

INTERNET ACCESS IS NOT AVAILABLE TO THE SERVER! (for those who read the second sentence and not the first.)

Question 18428 asks this question but does not answer it. Please provide up-to-date instructions and locations of newest packages.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2016-05-04 11:17:30 -0500

The RPMs do still come from yum.puppetlabs.com, but now inside the PC1 folder (Puppet Collections 1, google that). Also, since Puppet 4, there has been the AIO (all-in-one) packaging, so you need to download the puppet-agent (latest right now is 1.4.2) and for a Puppet Master, you need the puppetserver package (latest is 2.3.2).

Be aware that puppetserver is pulling in a bunch of dependencies (my test box is CentOS 6.6, I don't have RHEL 6.5 handy):

  • freetype
  • java-1.8.0-openjdk-headless
  • jpackage-utils
  • tzdata-java

YMMV. Good luck

edit flag offensive delete link more

Comments

Thanks for the feedback. will dig into it further this week.

Ivantremble gravatar imageIvantremble ( 2016-05-10 04:35:45 -0500 )edit
1

answered 2016-05-04 20:35:21 -0500

DarylW gravatar image

updated 2016-05-04 22:17:28 -0500

If you have a similar base system (or use a docker container) You can add some arguments to the yum command to either just download the rpms, or have it download them and not clean them up...

https://access.redhat.com/solutions/1...

http://unix.stackexchange.com/a/50671

So, following Alex's advice above... with, for example, a centos6.6 docker image and using the --download-only flag..

Here is a gist of all of the commands I ran and their output..

At the end, I had the following rpm's cached..

/var/cache/yum/x86_64/6/puppetlabs-pc1/packages/puppetserver-2.3.2-1.el6.noarch.rpm
/var/cache/yum/x86_64/6/puppetlabs-pc1/packages/puppet-agent-1.4.2-1.el6.x86_64.rpm 
/var/cache/yum/x86_64/6/updates/packages/tzdata-java-2016d-1.el6.noarch.rpm 
/var/cache/yum/x86_64/6/updates/packages/java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el6_7.x86_64.rpm 
/var/cache/yum/x86_64/6/base/packages/tar-1.23-13.el6.x86_64.rpm 
/var/cache/yum/x86_64/6/base/packages/libjpeg-turbo-1.2.1-3.el6_5.x86_64.rpm 
/var/cache/yum/x86_64/6/base/packages/freetype-2.3.11-15.el6_6.1.x86_64.rpm
/var/cache/yum/x86_64/6/base/packages/jpackage-utils-1.7.5-3.14.el6.noarch.rpm

You could also mount a volume when you run the docker container so they are saved to your local drive.

docker run -v /tmp/rpm:/var/cache/yum/x86_64/6/ -ti centos:6.6 /bin/bash

and following the same commands as I did above puts my rpm cache directory in /tmp/rpm. Note that you need to use an absolute path for your host machine's path in the volume argument, I just spent a half hour wondering where my files went when I did -v rpm:/var/cache/yum/x86_64/6/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-05-04 00:21:07 -0500

Seen: 291 times

Last updated: May 04 '16