Ask Your Question

setup a local puppet yum repository (EL5)

asked 2014-06-20 02:38:38 -0600

scar4ace gravatar image

updated 2014-06-20 02:42:34 -0600

Hi, wish to start playing with Puppet by installing the master and client on 2 separate EL5 (Oracle Linux) servers.

The only issue we have is these EL5 servers are not internet facing

I have setup a localised Oracle YUM repository in my environment, and manually moved required Oracle YUM packages (basic things like kernel packages, firefox, samba etc). All my servers look up this YUM server to install packages.

I would like to extend my YUM repo to also include puppet packages, so that I can start installing via my YUM server. Can you advise how to do this? I do not mind manually download the packages or if you think something like rsync I can trigger rsync from an internet enabled server then once I obtain the files I can SCP to the YUM server.

Once I obtain files, I will host them via Apache on YUM, and run commands such as createrepo etc. Just need the easiest way to get files (or even if its possible?)

Any help/advise appreciated

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-20 03:42:10 -0600

3h4x gravatar image

updated 2014-06-20 03:42:59 -0600

If you need all the packages required by puppet and have no internet on localhost then just use ssh hack to proxy your traffic through other host/squid.

Then you can download yum-downloadonly and use yum to download all packages that you need.

edit flag offensive delete link more


Hi, thanks mate for your response. Its given me a line to explore. :) I do have a host that is Internet facing, so I could download all packages there and SCP to the target host (not internet facing). This bypasses the SSH/Proxy hack - I would struggle to set that up :) So from my internet facing host, I need to get the downloadonly yum package like this: yum install yum-downloadonly Then, use this to get the packages from puppet repo (after configuring puppet repo and enable EL5 channel only) using this: yum install --downloadonly --downloaddir=<directory> <package> The question here is its asking for package, can I download all the puppet packages. Also I should disable the EL5 YUM repo before running this command right, else it would download packages from Puppet repo AND EL5 yum repo? Appreciate your help :)

scar4ace gravatar imagescar4ace ( 2014-06-24 02:51:15 -0600 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2014-06-20 02:38:38 -0600

Seen: 623 times

Last updated: Jun 24 '14