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 empty?

$getpfoleproxyver should be correct, no?



On Wednesday, 28 November 2012 21:09:40 UTC+1, showy wrote:
>
> 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 
> <romain...@gmail.com<javascript:>
> > 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 file in the package package28112012.txt and while 
>> running the manifest check if that package28112012.txt exists on the agent?
>> Can I define a variable reading this filename on the master?
>>
>> Regards and thanks in advance,
>>
>> Romain
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/puppet-users/-/tuum3dQXrYoJ.
>> To post to this group, send email to puppet...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> puppet-users...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/XuJnHGC4BHYJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to