[
https://issues.apache.org/jira/browse/WHIRR-500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198641#comment-13198641
]
Karel Vervaeke edited comment on WHIRR-500 at 2/2/12 9:51 AM:
--------------------------------------------------------------
Attached a quick hack, I'm all for suggestions on how to do it better.
The yaml model doesn't give you much to work with, so I abused the 'tags'
functionality:
{noformat}
**Yaml
nodes:
- id: ubuntu1
hostname: 192.168.54.160
os_arch: x86
os_family: ubuntu
...
tags:
- tag1
- tag2
** recipe:
whirr.templates.role1+role2.hardwareId=tag1,tag2
-> Only nodes which have both 'tag1' and 'tag2' will be used.
{noformat}
If you use .hardwareId, you should use it on all instance-templates, otherwise
the tagged instances can get assigned to the wrong node.
ps: yay, WHIRR-500 ;-)
was (Author: karel1980):
Attached a quick hack, I'm all for suggestions on how to do it better.
The yaml model doesn't give you much to work with, so I abused the 'tags'
functionality:
**Yaml
nodes:
- id: ubuntu1
hostname: 192.168.54.160
os_arch: x86
os_family: ubuntu
...
tags:
- tag1
- tag2
** recipe:
whirr.templates.role1+role2.hardwareId=tag1,tag2
-> Only nodes which have both 'tag1' and 'tag2' will be used.
If you use .hardwareId, you should use it on all instance-templates, otherwise
the tagged instances can get assigned to the wrong node.
ps: yay, WHIRR-500 ;-)
> Let users control which hardware is used for each instance template.
> --------------------------------------------------------------------
>
> Key: WHIRR-500
> URL: https://issues.apache.org/jira/browse/WHIRR-500
> Project: Whirr
> Issue Type: New Feature
> Components: core
> Reporter: Karel Vervaeke
> Assignee: Karel Vervaeke
> Priority: Minor
> Fix For: 0.8.0
>
> Attachments: WHIRR-500.patch
>
>
> For non-byon providers, you can use whirr.templates.role1+role2.hardwareId=foo
> For byon, the way roles are assigned to instances is indeterminate (it
> depends on the order of the keys in doAction(eventMap)).
> It would be great if the user could get control over this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira