Ask Your Question
0

File Resource Copy Timeout

asked 2013-04-24 10:42:22 -0500

louis gravatar image

I am trying to use the file resource type to get the SQL Express from a shared drive but the size of the package is different than the original size.

Should Puppet File Resource Type have a timeout attribute?

 file { 'sqlexpress2008R2':
    ensure => present,
    name   => 'C:\Temp\SQLEXPRWT_x64_ENU.exe',
    source => 'puppet:///puppetfs/SQLEXPRWT_x64_ENU.exe',
    mode   => '0755'
  }

The original size is 348MB but after the execution only copies 256MB of the file.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-24 23:44:15 -0500

Ancillas gravatar image

The File resource gets a bit flaky on large files. I'd recommend using something like an rsync daemon and an Exec statement to start the file transfer.

As for the actual problem, can you run puppet with verbose/trace enabled, and then share the logs?

edit flag offensive delete link more

Comments

You could also use a curl.

Ancillas gravatar imageAncillas ( 2013-04-24 23:44:36 -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

Stats

Asked: 2013-04-24 10:42:22 -0500

Seen: 352 times

Last updated: Apr 24 '13