On Nov 26, 2009, at 1:37 AM, [email protected] wrote:
> Hi,
>
> in order to restart some of our services installed by openpkg, we
> programmed a small openpkg service provider and deploy it as module.
> As openpkg packages can be installed in differant prefixes, it would
> be really helpfull to provide a prefix property to our service plugin:
>
> service { "openssh":
> provider => "openpkg",
> prefix => "/prefix",
> }
>
> But as all properties seems to be defined in service.rb, i'm not
> really sure how to implement that without actually patching puppet
> itself.
>
> Does anybody have an idea?
The only way is to add an extra parameter to the resource type.
The way some providers have gotten around this (e.g., some of the
package providers) is by embedding things like prefixes in the name,
so you'd have something like:
service { "/prefix/openssh": ... }
Obviously this is a bit hackish, but until the system can be enhanced
to support what you need, it can work.
--
Sometimes I think we're alone. Sometimes I think we're not. In
either case, the thought is staggering. --R. Buckminster Fuller
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.