Hi, instead of using exec’s you might want to dig into existing modules and their defines, types and providers:
https://github.com/camptocamp/puppet-archive https://github.com/maestrodev/puppet-wget When using exec resources you have to ensure by yourself that the exec runs only in case of changes needed. An exec should not get executed on every puppet agent run. hth, Martin On 26 Dec 2014, at 20:42, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > support for HTTP is a long standing feature request. > > https://tickets.puppetlabs.com/browse/PUP-1072 > > It's currently work in progress, you can expect it in version 4.1, > perhaps even 4.0. As for FTP, I'm a little doubtful that support will go > mainline any time soon, or at all. > > In the meantime, a common workaround can be implemented using `exec`, > roughly: > > $file = '/home/user1/conf/tempconf1.xml' > $url = 'ftp://192.168.209.23/temp' > exec { > "get-$file": > command => "/path/to/ftpclient $url -o $file", > creates => $file, > } > > Please note that the URL should use but two slashes after the colon, > seeing as it includes a host address. > > HTH, > Felix > > On 12/26/2014 12:32 PM, Илья Захаров wrote: >> Hi there! I want to get files which are missing on the nodes on FTP >> >> So for test i write something like this: >> >> file { '/home/user1/conf/tempconf1.xml' : >> ensure => present, >> source => 'ftp:///192.168.209.23/temp', >> } >> >> and i have a error "Cannot use URLs of type 'ftp' as source for >> fileserving" >> >> So what does i need to do that i can use "http" or "ftp" source for >> files ?? >> >> Thanks! > > -- > 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 puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/549DBA29.1090105%40Alumni.TU-Berlin.de. > For more options, visit https://groups.google.com/d/optout. -- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/C4180D16-1C7D-45AC-94F9-8C2ABE74C30B%40gmail.com. For more options, visit https://groups.google.com/d/optout.