- From: Dorian Jaminais <
>
- To:
- Subject: [chef] Re: Re: Re: run_context.include_recipe in a recipe within a role
- Date: Wed, 29 May 2013 18:39:30 +0200
Okay
I am using a LWRP instead of a recipe because I want to deploy about 15 applications that are very similar.
All those applications have a dedicated cookbook but as the installation process is always the same work flow, I have factorized it into a LWRP.
The work flow is pretty simple : assert that installation dependencies are met, clone the repo, bundle install the needed gems.
I have attached my provider to this mail (which by the way is included in a cookbook named gios).
In each application's cookbook I use :
gios_installer NAME do
name NAME
repository GIT_URI
command "./bin/truc"
version "master"
action :install
end
As stated in my previous emails, using the LWRP that way will include the recipes ruby, git, base::certificate, pm-openssh::rsa and pm-openssh::known_hosts only if the LWRP is called exactly once in the run_list.
Thanks for your help
Attachment:
installer.rb
Description: Binary data
- [chef] run_context.include_recipe in a recipe within a role, Dorian Jaminais, 05/29/2013
- [chef] Re: run_context.include_recipe in a recipe within a role, Dorian Jaminais, 05/29/2013
- [chef] Re: Re: run_context.include_recipe in a recipe within a role, Daniel DeLeo, 05/29/2013
- [chef] Re: Re: Re: run_context.include_recipe in a recipe within a role, Dorian Jaminais, 05/29/2013
- [chef] Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, John E. Vincent (lusis), 05/29/2013
- [chef] Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Dorian Jaminais, 05/29/2013
- [chef] Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, John E. Vincent (lusis), 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Ranjib Dey, 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Sean Escriva, 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Ranjib Dey, 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Cassiano Leal, 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Ranjib Dey, 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, John E. Vincent (lusis), 05/29/2013
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: run_context.include_recipe in a recipe within a role, Daniel DeLeo, 05/29/2013
Archive powered by MHonArc 2.6.16.