On Mon, May 16, 2016 at 1:09 PM, Harish Kothuri <harishkoth...@gmail.com>
wrote:

>
> exec{ 'cmd /c copy /Y "\\shareloc\folder1\folder2\Mysoftware.msi"
> "${pypredest}"':
>


Your resource title is enclosed in single quotes which means everything
will be taken literally and your variable will not be interpolated....

Something like this would fix that problem...

exec{ "cmd /c copy /Y \"\\shareloc\folder1\folder2\Mysoftware.msi\"
\"${pypredest}\"":

Although I'm not sure why you need an exec to do this (disclaimer: I
haven't used windows in years)

Can you not do this with the file resource?

file { $pypredest:
  ensure => file,
  source => '\\shareloc\folder1\folder2\Mysoftware.msi',
}


Regards
Craig

-- 
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/CACxdKhHmpFBqqbw3KCdynZmFppVCYNSz2TPmfRybcn73Q8aPxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to