On 20 June 2013 14:49, Roman Alekseev <rs.aleks...@gmail.com> wrote:

>
> What about a facter something like this:
>
> # nginx.rb
>
> Facter.add("nginx") do
>   setcode do
>     Facter::Util::Resolution.exec(**'/usr/bin/dpkg -l  | /bin/grep -c
> nginx')
>   end
> end
>
>
A fact for something like that seems a bit over the top.  Is there a
reason you are not managing the package using Puppet? Martin's 2nd solution
is far more Puppet-like and is unlikely to cause any
head-scratching/confusion compared to your fact-based approach.

Regards,

Matt.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to