Issue #1967 has been updated by Rahul Gopinath.
A similar requirement is there for solaris 11. Until solaris 10, the package provider used to be the unix pkgadd/pkgrm commands (package/sun provider). However with Solaris 11, a new package manager `pkg` is the recommended way. Thus we need a way to specify that `pkg` is default for solaris 11 and beyond. Currently we can only specify that it is default for solaris 11. i.e `defaultfor :osfamily => :solaris, :kernelrelease => '5.11'`. A better approach that solves both this and the original problem would be to allow a block to be passed to defaultfor, and let the instance check if it should be a default, and set the specificity. This would allow a user to write a new default provider. ---------------------------------------- Feature #1967: defaultfor method for providers should be allowed to be specified multiple times https://projects.puppetlabs.com/issues/1967#change-69726 Author: James Turnbull Status: Accepted Priority: Low Assignee: Category: newfeature Target version: 3.x Affected Puppet version: 0.24.7 Keywords: provider, defaultfor Branch: You should be able to specify multiple defaultfor statements in providers: <pre> defaultfor :operatingsystem => :redhat, :lsbdistrelease => ["2.1", "3", "4"] defaultfor :operatingsystem => :oel, :operatingsystemrelease => ["4", "5"] </pre> -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
