I have a simple task of placing a file in a particular folder.  

file { 'W6Login.Service.Global':
    ensure             => present,
    source             => 
'puppet:///modules/copyglobalmodule/W6Login.Service.Global',
    *path               => "C:\\Program Files (x86)\\Cware\\Service 
Optimization\\Bin\\W6Login.Service.Global",*
    source_permissions => ignore,
  }
}

I receive this error:
*Error: /Stage[main]/Copyglobalmodule/File[W6Login.Service.Global]: Could 
not evaluate: Could not retrieve information from environment production 
source(s) puppet:///modules/copyglobalm*
*odule/W6Login.Service.Global*

The file I need is positively in the files directory.  I understand Puppet 
has issues with the C:\program files (x86) directory for several reasons.

I have tries several formats, but get the same error:
"C:\\Program Files (x86)\\Cware\\Service 
Optimization\\Bin\\W6Login.Service.Global"
‘C:\\Program Files (x86)\\Cware\\Service 
Optimization\\Bin\\W6Login.Service.Global’
“C:\Program Files (x86)\Cware\Service 
Optimization\Bin\W6Login.Service.Global"
‘C:\Program Files (x86)\Cware\Service 
Optimization\Bin\W6Login.Service.Global’
‘C:/Program Files (x86)/Cware/Service 
Optimization/Bin/W6Login.Service.Global’

I found a this in the puppet Documentation.  I did install the 64-bit 
Puppet agent and this is obviously a 32-bit folder I am working in.  It 
discusses system32 folder quite a bit and how to execute commands from 
there.   
https://puppet.com/docs/puppet/6.0/lang_windows_file_paths.html. Not much 
on C:\Program Files (X86)

Any idea’s would be greatly appreciated.  

-- 
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/a447f21b-f564-486d-85f9-de5b072561ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to