Ron Gallagher created JCLOUDS-1072:
--------------------------------------

             Summary: Add support for environment-specific run lists to Role 
and Role.Builder
                 Key: JCLOUDS-1072
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1072
             Project: jclouds
          Issue Type: Improvement
          Components: jclouds-chef
    Affects Versions: 1.9.2
            Reporter: Ron Gallagher


The Role and Role.Builder classes in the org.jclouds.chef.domain package don't 
provide methods for manipulating environment-specific run list entries.

The JSON representation of a Role that includes environment-specific run lists 
looks like this:

{code}
{
  "name": "jclouds-role",
  "description": "",
  "json_class": "Chef::Role",
  "default_attributes": {

  },
  "override_attributes": {

  },
  "chef_type": "role",
  "run_list": [

  ],
  "env_run_lists": {
    "env1": [
      "recipe[env1.alpha]",
      "recipe[env1.bravo]"
    ],
    "env2": [
      "recipe[env2.alpha]",
      "recipe[env2.bravo]"
    ]
  }
}
{code}

To address this gap, I suggest the following changes:

# The constructor for org.jclouds.chef.domain.Role needs to include a parameter 
that contains the environment run list.
# The org.jclouds.chef.domain.Role should include a getter for the environment 
run list.
# The org.jclouds.chef.domain.Role.Builder class should include a method for 
adding an entry to the environment run list.

I plan to prepare a pull request that will include these changes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to