Ask Your Question
0

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

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

jobasha gravatar image

Hi,

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
0

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

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

Comments

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 -0600 )edit
0

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

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.

https://docs.puppet.com/puppet/3.8/re...

https://docs.puppet.com/puppet/latest...

edit flag offensive delete link more

Comments

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 -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

1 follower

Stats

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

Seen: 46 times

Last updated: Jun 07 '16