Hi puppet users
I'm trying to get around the following issue. I want to make sure if
a service is stopped. I'm trying to do this is solaris but I don't
think this is OS specific.
If the software that provides the service (sendmail in my cause) is
installed the smf provider can make sure that the service is not
running.
However, when the software is not installed it can not check:
info: Service[sendmail](provider=smf): Could not get status on service
sendmail
How can I get around this? I could get around it with onlyif, but the
service type doesn't support that.
Below is a snippet of my code. Thank you in advance,
Rudy
class postfix {
if $operatingsystem == 'Solaris' {
Service["sendmail"] -> Package["SUNWsndmu"] ->
Package["SUNWsndmr"] -> Package["postfix"]
service { "sendmail":
ensure => stopped,
}
package {
["SUNWsndmu","SUNWsndmr"]:
ensure => absent,
provider => sun,
adminfile => "/var/sadm/install/admin/puppet";
["postfix","mailx"]:
ensure => present,
provider => pkgutil
}
...
}
...
}
--
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.