On 20.06.2013 17:46, Martin Alfke wrote:
  this case the file resource will only be managed if the package resource has 
been defined.
This does not mean, that the package has been installed successfully!
For this option you have to add
require => Package['nginx'],
to your file resource.

Thank you your solutions is great!
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

Thanks

--
Kind regards,

R. Alekseev

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