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.

Reply via email to