Hello there

I want (erm ... need) to write some facts to verify certain packages
are installed. I don't think the packages type does the trick because
i don't want to force the installation so much as lock down some
things. But i don't see how to do this platform independent between
solaris and rhel OR how to prevent a RHEL fact from runnning on a
Solaris box.

For instance, httpd ... i don't want it installed everywhere, but i do
need it in some places.
If i have it installed i want to make sure that
* the application admins don't wreck the master conf, but instead only
can access /etc/httpd/conf.d/
* can read the logs
* log cycling creates the new files with access permissions.

So all of this is working BUT the fact i don't like:

# httpd_installed.rb

Facter.add("httpd_installed") do
        setcode do
                %x{/bin/rpm -q httpd | /bin/grep "not installed" > /
dev/null && /bin/echo "no" || /bin/echo "yes"}.chomp
        end
end

very RHEL dependent. SO, how would i do this so it either works also
on solaris OR alternatively solaris hosts use a different fact... I
would prefer though to have a single fact...

if it must be two (and i'm just thinking) could i set the $factsource
differently on the client and split them that way?
--~--~---------~--~----~------------~-------~--~----~
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