Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

Copy an array of files

$
0
0
Hello, i think I have a pretty dumb question.. but somehow Im kinda stuck.. I want to copy some files from a server, I created an array of file: $files = [ '/tmp/file1', /tmp/file2', ] The download url is = https://someurl.com So how do I copy multiple files from there. One file is easy, but multiple... I thought something like file { $files: ensure => present, source => $download_url } Somehow this does not work,or do I have to create a for each loop ? Could someone help me please ? kind regards, - Pascal

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>