- From: Daniel DeLeo <
>
- To: Chef Dev <
>
- Subject: [[chef-dev]] Default Actions for LWRP Resources [CHEF-1789]
- Date: Tue, 24 May 2011 11:24:32 -0700
Hello Chefs,
As many of you know, setting the default action on LWRP resources is pretty
tricky right now since it is not exposed by the DSL. Avishai Ish-Shalom has
kindly provided a patch for this issue[1][2]. Avishai's patch allows you to
specify the default action by adding `:default => _DEFAULT_` to the list of
actions on the resource, like so:
actions :pass_buck, :prepare_thumbs, :twiddle_thumbs, :default => :pass_buck
An alternative implementation that has been proposed is to simply use the
first action in the list as the default. Please chime in if you have a strong
preference for one or the other.
--
Dan DeLeo
1.
http://tickets.opscode.com/browse/CHEF-1789
2.
https://github.com/avishai-ish-shalom/chef/tree/CHEF-1789
- [[chef-dev]] Default Actions for LWRP Resources [CHEF-1789], Daniel DeLeo, 05/24/2011
Archive powered by MHonArc 2.6.16.