rax: change meta on existing cloudserver?

32 views
Skip to first unread message

Mark Casey

unread,
Apr 22, 2014, 6:30:03 PM4/22/14
to ansible...@googlegroups.com
Hello all,

Does the rax set of modules have a module parallel to the ec2_tag module in AWS, or is there some way I should just re-call the rax module to change tags or groups of an existing host?

...and if I could sneak in a corollary: Can I list (/add/remove) more than one group within the rax module's group parameter?

Apologies if I missed an existing example of this somewhere; I did take a look at the Detailed Guides, the module's page and examples, and a few odds and ends I'd seen posted from rackers.

Thanks,
Mark

Matt Martz

unread,
Apr 22, 2014, 6:40:16 PM4/22/14
to ansible...@googlegroups.com, Mark Casey
There is not currently a way to change meta on an existing server.  It is on my to-do list to add a rax_meta module, but haven't gotten around to it yet.

You would have to manually manipulate meta via the API outside of Ansible currently.

If you want to support more than 1 group with the rax module, you would utilize the 'groups' meta key such as:

- rax:
    name: foo
    image: bar
    flavor: 2
    group: primary_group
    meta:
        groups: 'group_two,group_three'
    etc...

The newer rax.py inventory script that is in devel right now, can handle the extra 'groups' meta key.  Note that it's value right now has to be a comma separated list, not an actual YAML list (this will likely change in the future, and the rax module will just coerce an actual list to the joined CSV string.

-- 
Matt Martz
ma...@sivel.net
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e1348811-24ed-4ad8-8f8e-a1421cb9cdf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Casey

unread,
Apr 22, 2014, 7:44:13 PM4/22/14
to ansible...@googlegroups.com, Mark Casey
Great. Thanks for the info and efforts on these modules.

Mark
Reply all
Reply to author
Forward
0 new messages