Ask Your Question

transfer big files

asked 2016-06-07 06:55:08 -0600

kluntje gravatar image


I want to transfer big files 300MB with puppet. Now my question is, will puppet check the current upload of my file? Will the puppetmaster prevent the deploy to the client, until the file was "successfully" written?

best regards

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-09 06:52:56 -0600

jiada gravatar image

Puppet will compare the version of the file expected to be on the system to the one that is actually on the system and make changes as necessary. This comparison is a part of the puppet configuration run triggered by the puppet apply and puppet agent --test commands or automatically depending on how Puppet has been configured --every 30 min by default. A require attribute on a service resource will cause Puppet to skip that resource if the enforcement of the required resource fails.

file { 'myfile':
   ensure  => present,
   source => puppet:///modules/modulename/myfile,
service {'myservice':
  ensure => running,
  require => File['myfile'],

Hope this helps! All the best to you.

edit flag offensive delete link more


Also of note, if a file gets modified, puppet will have a temp version of the file, calculate it's hash, and if the current file is different than the expected file, it will put the new file in place.

DarylW gravatar imageDarylW ( 2016-06-17 21:44:12 -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


Asked: 2016-06-07 06:55:08 -0600

Seen: 182 times

Last updated: Jun 09 '16