On Jun 14, 2014, at 8:49 AM, Philip Brown <[email protected]> wrote: > I'm kinda surprised that an SMF module for Solaris wasnt made before. > > (that is to say, yes there is support for enabling a pre-existing SMF > service... but there isnt one for creating one from scratch) > > So here's an announcement of a new puppet forge module: > > https://forge.puppetlabs.com/ppbrown/smf > > It lets you take any existing demon binary, and use puppet to make an SMF > wrapper for it. > > All you have to do is: > > > smf::service { "yourservicename": > service_command => "/usr/sbin/somename -optional args" > } > > and the module takes care of creating svc:/site/yourservicename for you > > You can use either the autogenerated SMF config, or provide your own custom > one.
Not actually having looked at this module, I already love it. > Ideally, someone should extend the puppet 'service' handler to take arguments > for this stuff, when the provider is solaris. Does it actually do that for any other OS though? I don't think so. One could argue that maybe it should, but one could also argue that your package manager should drop a proper init script (or SMF svc, in this case) in place for you. *shrug* -Jeremy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8291BCA8-CF81-47A7-B928-3CF0E2794958%40scriptkitchen.com. For more options, visit https://groups.google.com/d/optout.
