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.
Any idea’s would be greatly appreciated.