If this is not possible to achieve, then can the following be done with
puppet:

Make sure that the rsyslog service is NOT running, regardless of the package
is installed or not. Using the service resource type to stop/disable a
service gives an error if the init script doesn't exists. And I don't wish
to run "ensure => absent" on the rsyslog package.

Please point me to the right documentation, or let me know if this is not a
case for puppet.

Btw, I see that the package resource type has some read-only parameters
(such as status). How can these be utilized in a puppet recipe? I can't seem
to find any documentation on this.

On 2/4/09, Kenneth Holter <[email protected]> wrote:
>
> Hello list.
>
>
> Can I use puppet conditionals to check if a package is installed/available
> for install, and act depending on the result?
> More precisely, this is what I'd like to do:
>
>    1. If package rsyslog is installed or available for install, then
>    include class that configures rsyslog
>    2. Else, configure the stock sysklogd
>
> I'm running puppet v0.24.4.
>
>
> Regards,
> Kenneth Holter
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to