I use the environment in the chef and I want to use start lists for each environment. The problem is that I do not want to repeat myself (for example, I'm doing it now). Example:
{
"name": "myapp",
"default_attributes": {
},
"json_class": "Chef::Role",
"env_run_lists": {
"production": [
# Has less packages because services are spread across specialized nodes
"role[base]",
"recipe[mysql::client]",
"recipe[myapp]"
],
"staging": [
# Has less packages because services are spread across specialized nodes
"role[base]",
"recipe[mysql::client]",
"recipe[myapp]"
],
"development": [
"role[base]",
"recipe[mysql::client]",
"recipe[myapp]",
"role[utility]",
"role[cache]"
]
},
"run_list": [
],
"description": "The myapp.com core application role",
"chef_type": "role",
"override_attributes": {
}
}
Is there any way to avoid repeating this?
"role[base]",
"recipe[mysql::client]",
"recipe[myapp]",
I just want the environment start lists not to go out of sync and interrupt the deployment.
Kenny source
share