On Tuesday, February 4, 2014 9:18:47 AM UTC-6, rstirella wrote:
>
> I am trying to copy a file to a desktop from a network drive with puppet
> but I keep getting errors.
>
> Does anyone know the script to copy a file from one location to another
> with puppet?
>
Puppet does not have "scripts". Supposing, however, that you want Puppet
to ensure that a given file on the target node is a copy of another file
directly accessible by that node, you can explain that to Puppet with a
File resource:
file { '/path/to/target/file':
ensure => 'file',
source => '/path/to/source/file'
}
Any of the File type's many other attributes may be added to that as needed.
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/8e5e040e-4566-44b2-9225-8efbf0bc57e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.