In the recipe..the code I am trying to executeHim,Still kinda stunned that chef will not work..now rather concerned and have to hardcode to get around this till resolved. What am I missing from the docs? How else can I create a role based execution patten in light override_attributes are not working?
Opscode..any comment?here is my role:
[["set_unless_enabled?", false],
["default", {"git_repos"=>[]}],
["env_default", :not_present],
["role_default", :not_present],
["force_default", :not_present],
["normal", :not_present],
["override", :not_present],
["role_override", :not_present],
["env_override", :not_present],
["force_override", :not_present],
["automatic", :not_present]]
Converging 4 resources
Recipe: environment::scm
* package[git-core] action install (up to date)
* file[/root/.ssh/id_rsa] action create (up to date)
* cookbook_file[/root/.ssh/id_rsa] action create (up to date)
* directory[/home/ubuntu/workspace/] action create (up to date)
{
"name": "orderbook_server",
"chef_type": "role",
"description": "orderbook server",
"override_attributes": {"environment":{"git_repos":["logic"]}},
"run_list": [
"recipe[environment::scm]"
]
}
git_repos = node["environment"]["git_repos"]
git_repos.each do |repo|//do stuff
end
Archive powered by MHonArc 2.6.16.