components/ruby/puppet/patches/puppet-14-smf-refreshable.patch
author Shawn Ferry <shawn.ferry@oracle.com>
Tue, 26 Apr 2016 23:36:26 -0400
changeset 5864 06703eb0e31f
permissions -rw-r--r--
23099224 The SMF provider needs to add the '-s' flag to the restartcmd method 23099209 The SMF provider should set has_feature :refreshable

smf understands the concept of refreshable
PUP-6238 Serivce SMF should declare has_feature :refreshable

diff --git a/lib/puppet/provider/service/smf.rb b/lib/puppet/provider/service/smf.rb
--- a/lib/puppet/provider/service/smf.rb
+++ b/lib/puppet/provider/service/smf.rb
@@ -23,6 +23,8 @@ Puppet::Type.type(:service).provide :smf, :parent => :base do
   commands :adm => "/usr/sbin/svcadm", :svcs => "/usr/bin/svcs"
   commands :svccfg => "/usr/sbin/svccfg"

+  has_feature :refreshable
+
   def setupservice
       if resource[:manifest]
         [command(:svcs), "-l", @resource[:name]]