Hi Stefan, On Nov 19, 9:49 pm, Stefan Schulte <stefan.schu...@taunusstein.net> wrote:
> So you want to remove a package and make sure that the service is > stopped before that. I can think of a few options: > > - remove the service resource: When you remove a package there should be > a pre_exec or something that stops your service. But I dont know if > Solaris has any support for that If the package has the preremove script it does that. However the packages I want to remove don't have that those scripts. > - onlyif is only supported by the exec resource. You can define > something like > /etc/init.d/package stop ... onlyif => 'pkginfo | grep PACKAGE' > - Request a feature that all service providers should return stopped > if the state could not be determined. But that might raise other > problems > - Build a custom fact that will show you if your package is installed. > Then you can build an if statement around your ressource. Not really > great if you want to manage more than one package > > I prefer number one but that might not be possible. I'm curious what > others think about your problem. Number two seems to be a goot alternative if I just send the order correct! Rudy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.