Facter plugin is one way. An easier way is to install the package with 
puppet and have the file require the package.

-Eric

On Tue, 4 Aug 2009, Alexey Wasilyev wrote:

> 
> How can I check if some package installed in manifest?
> Only by writing facter plugin?
> 
> For example:
> 
> if ssh_installed {
>       file{"/etc/ssh/sshd_config":
>               source =>.........
>       }
> }
> 
> Alexey Wasilyev
> Systems Administrator
> Grid Dynamics
> 
> 
> 
> 
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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