Ask Your Question

I want to transfer the packages from puppet master to puppet agent.

asked 2016-06-06 01:49:08 -0500

jobasha gravatar image


I've 3 red hat linux servers. I installed puppet 3.8.1 on those linux servers. I installed puppet like one puppet master and two puppet agents. I would like to transfer the downloaded package like (the required software's which I want to provision. For ex: Jenkins, tomcat) around 200MB and some software's are more than 200MB from puppet master to the puppet agent. Could you please help me how do I transfer the packages.

Thanks, John

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-06-07 15:09:12 -0500

jon6000 gravatar image

You can use the Puppet master as a fileserver.

First define a location you want to serve files from in /etc/puppet/fileserver.conf, and put the files there. Then, as Yevgeny says, use file resources in your manifests to ensure the files exist on your agent nodes. These resources should contain a 'source' attribute pointing to your fileserver location.

edit flag offensive delete link more


I'm not sure why this got downvoted, this is a correct way to solve this problem. You define a directory to serve files from, and you reference that location in your module to pull down the files. Perhaps we need a better description of what you are looking for?

DarylW gravatar imageDarylW ( 2016-06-08 10:23:42 -0500 )edit

answered 2016-06-06 14:43:53 -0500

YevgenyT gravatar image

I'm not completely sure about what are asking, but it looks like you need to write a manifest with file type resources to deliver the files to your agents.

edit flag offensive delete link more


Not sure why this got downvoted, you CAN place files into your modules, and reference them with a puppet:// based source URI which will pull down from the puppet master. You can do this either in your module, or with jon6000's answer with an actual 'file' directory being served by the master

DarylW gravatar imageDarylW ( 2016-06-08 10:25:03 -0500 )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

1 follower


Asked: 2016-06-06 01:49:08 -0500

Seen: 43 times

Last updated: Jun 07 '16