C:\Program Files (X86) question

15 views
Skip to first unread message

Deo Breathnu

unread,
May 9, 2019, 12:16:23 PM5/9/19
to Puppet Users
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.  

Martin Alfke

unread,
May 9, 2019, 12:46:36 PM5/9/19
to puppet...@googlegroups.com, Puppet Users
Hi Deo,

On May 9 2019, at 6:16 pm, Deo Breathnu <deo.br...@gmail.com> wrote:
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
This error message indicates that Puppet Master is unable to find the file provided at source attribute.
Please check that the sourcefile is available on your puppet master at  <modulepath>/copyglobalmodule/files/W6Login.Service.Global.

At the path attribute you can use forward slashes:
source => 'C:/Program Files (x86)/Cware/ServiceOptimizatoin/Bin/W6Login.Service.Global',

Deo Breathnu

unread,
May 9, 2019, 1:05:43 PM5/9/19
to Puppet Users
The file is there:
-rw-rw-r-- 1 pe-puppet pe-puppet 1552 Apr 16 21:01 W6Logon.Service.Global
[root@puppetmaster files]# pwd
/etc/puppetlabs/code/environments/production/modules/copyglobalmodule/files




On Thursday, May 9, 2019 at 12:46:36 PM UTC-4, Martin Alfke wrote:
Hi Deo,

Tim Sharpe

unread,
May 9, 2019, 3:00:19 PM5/9/19
to puppet...@googlegroups.com
Hi Deo,

You have a typo in the file name. On disk it starts with W6Logon but in the manifest it starts with W6Login.

Cheers,
Tim


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0b349831-abf5-4edd-a54b-9893557105b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages