Re: [Puppet Users] check if if file exists on client an master

2012-12-13 Thread Romain Gales
Hi, I malformed my question. This is a hint in the right direction. Romain On Thursday, 13 December 2012 11:26:20 UTC+1, Luke Bigum wrote: > > Romain, I am confused. > > In your first post you said you need to check if a package exists on the > "Agent", the Puppet client. > > Now below you sa

Re: [Puppet Users] check if if file exists on client an master

2012-12-13 Thread Luke Bigum
Romain, I am confused. In your first post you said you need to check if a package exists on the "Agent", the Puppet client. Now below you say you need the check executed on the Master. Facts are executed on the Agents and only ever on Agents. If you want to check for something on a client/agen

Re: [Puppet Users] check if if file exists on client an master

2012-12-12 Thread Romain Gales
The facter should be executed on the server instead on the client. On Thursday, December 13, 2012 1:29:23 AM UTC+1, Jakov Sosic wrote: > > On 11/28/2012 09:46 PM, Romain Gales wrote: > > there is what i tried: > > > > # getpfoleproxyver.rb > > # > > Facter.add(:getpfoleproxyver) do > >

Re: [Puppet Users] check if if file exists on client an master

2012-12-12 Thread Jakov Sosic
On 11/28/2012 09:46 PM, Romain Gales wrote: > there is what i tried: > > # getpfoleproxyver.rb > # > Facter.add(:getpfoleproxyver) do > setcode do > Facter::Util::Resolution.exec('basename `ls > /softw4pc/Misc/pfoleproxy/pfoleproxy*.txt`') > end > end > > the fact is working fine, but h

Re: [Puppet Users] check if if file exists on client an master

2012-11-28 Thread Romain Gales
there is what i tried: # getpfoleproxyver.rb # Facter.add(:getpfoleproxyver) do setcode do Facter::Util::Resolution.exec('basename `ls /softw4pc/Misc/pfoleproxy/pfoleproxy*.txt`') end end the fact is working fine, but how to use this in my manifest? i tried a lot but it was always empt

Re: [Puppet Users] check if if file exists on client an master

2012-11-28 Thread Eduardo A Muñoz
I think you would want to create a fact that publish that state to the master. On Wed, Nov 28, 2012 at 3:26 PM, Romain Gales wrote: > Hi pupper community, > > I am working with puppet on Windows and have an issue. > I want to check what version of a package is installed. > My idea was to add a fi