Optional. A list of environments, each specifying a recipe or a role that will be applied to that environment. This setting must specify the _default environment. If the _default environment is set to [] or nil, then the run list will be empty. jamescott: SEE CHEF-2636.
env_run_lists "prod" => ["recipe[apache2]"],
"staging" => ["recipe[apache2::staging]"
env_run_lists "name" => ["recipe[name]"], "environment_name" => ["recipe[name::attribute]"]
"env_run_lists" : {
"production" : [],
"preprod" : [],
"dev": [
"role[base]",
"recipe[apache]",
"recipe[apache::copy_dev_configs]",
],
On Mon, 24 Jun 2013 23:04:22 +0200Yes, maybe you are right. A role example in the environments section
Jeppe Nejsum Madsen < "> > wrote:
> > > the doc needs to fixed ?
> > >
> > http://docs.opscode.com/essentials_environments.html#set-per-environment-run-lists
> > >
> >
> > This json is a role example. NOT an environment example.
> > That is, "webserver" is a role.
> >
> > You cannot specify env_run_list inside an environment because, of
> > course, it is an environment.
> >
> > env_run_list is only for roles.
> >
>
> That makes sense, but the docs clearly needs an overhaul. While the
> JSON example shows a role if you look closely, what has that got to
> with environments?
can be a bit confusing. Perhaps it would be more appropriate to move
this example to the roles section.
Looks like a mistake in the docs. AFAIK, this attribute should not be
> Also note the section "Domain-specific Ruby attributes for
> environments include the following:" and goes on to list env_run_list.
in that section. It will not work. I will try to make a PR to fix it.
--
Xabier de Zuazo Oteiza
IT System Administrator - Onddo Labs S.L.
Camino del Bosque 13
t: (+34) 946.569.935
www.onddo.com
--------------------------------------------------------------------
Public Key = http://www.onddo.com/xabier_zuazo.pub
Key Fingerprint = 8EFA 5B17 7275 5F1F 42B2 26B4 8E18 8B67 9DE1 9468
--------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Please note that any disclosure, copying or distribution of the content of this information is strictly forbidden. If you have received this email message in error, please destroy it immediately and notify its sender.
Archive powered by MHonArc 2.6.16.