- From: Warren Bain <
>
- To: "
" <
>
- Subject: [chef] After compile - before convergence hooks
- Date: Thu, 10 Jan 2013 09:37:46 +1100
- Accept-language: en-US, en-AU
- Acceptlanguage: en-US, en-AU
I am trying to use the information here [1] to have a recipe run before any
resource convergence. We are using this to modify any gem package resources
to use a http_proxy (to eliminate or at least reduce the FetchErrors that we
often experience with rubygems.org. We also want to ensure that only one
'apt-get update' occurs in the Chef run as these are relatively expensive and
we need as rapid a convergence as possible. These are peppered amongst a
variety of community cookbooks that we are using (use case: deploying Rails
apps on MySQL or PostgreSQL).
When my code runs, some resources have already converged. I put the recipe
as the last item in the runlist which obviously doesn't work.
The key words in [1] are "This can be done today by simply making the recipes
that include your 'after' hooks run at the end of the compilation". Any
advice from folks on how to "simply" make this happen?
Regards,
Wazza
[1]
http://wiki.opscode.com/display/chef/After+hooks
Archive powered by MHonArc 2.6.16.