Hello Martin,

my problem was how to implement this in a plan.  In the meantime, a 
colleague told me to use 
<module_name>/downloads/<download_folder>/<source_servername>/<filename>  . 
This is fine for me. 

Anyway: Thanks a lot for your answer!!!

Kind regards
Helmut

Martin Alfke schrieb am Mittwoch, 27. April 2022 um 15:30:14 UTC+2:

> Hi,
>
> You can reference the actual path by using pwd:
>
> bolt file upload $(pwd)/inventory.yaml /root/ -t login
>
> Hth,
> Martin
>
>
> On 27. Apr 2022, at 14:24, Helmut Rickel <[email protected]> wrote:
>
> Hello,
> this surely is a beginners question: 
> Using bolt, I want to download a file from one server and upload it to a 
> another server. Problem: The function download_file uses a destination path 
> relative to the project directory, but upload_file needs an absolute source 
> path. How do I get this absolute source path?
>
> Thanks for your help!
>
> Kind regards 
> Helmut
>
> -- 
> 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/de6003ab-cb05-46fb-b22c-c57ce5a07a05n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/puppet-users/de6003ab-cb05-46fb-b22c-c57ce5a07a05n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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/1ab11490-2ae2-4187-b9a3-56f1ce1e82f2n%40googlegroups.com.

Reply via email to