Re: [ansible-project] Bringing cohesion to ec2_facts and EC2 inventory plugin

2014-09-14 Thread Ches Martin
Thanks Michael, that's helpful, especially about giving favor to the inventory plugin. I'll try to drop in IRC when I can start hacking on it (probably a week from now), I'm sure I'll have some questions about internals like what you're saying about module_utils, but a few remarks: On Sunday, S

Re: [ansible-project] Bringing cohesion to ec2_facts and EC2 inventory plugin

2014-09-13 Thread Ches Martin
On Sunday, September 14, 2014 2:39:27 AM UTC+7, Michael Peters wrote: > > But renaming the variables in either one would cause problems for > existing playbooks, so it would need to keep the old names around for > existing uses. This could lead to some confusion as the hostvars will > be pollut

Re: [ansible-project] Setting host vars programmatically with dynamic inventory

2014-09-13 Thread Ches Martin
On Saturday, September 13, 2014 1:20:44 AM UTC+7, Josh Smift wrote: > This seems like the thing that someone else helped me figure out how to > do, e.g. I now have as part of my aws-launch.yml playbook: > > - name: Add new instance to a temporary group > local_action: > module: add

[ansible-project] Bringing cohesion to ec2_facts and EC2 inventory plugin

2014-09-13 Thread Ches Martin
Hi folks, I dug around the list to see if anyone has raised this point before and didn't find it addressed directly, excuse me if I missed something. Michael has stated before that it would be nice if the ec2_facts modu

Re: [ansible-project] Setting host vars programmatically with dynamic inventory

2014-09-12 Thread Ches Martin
On Friday, September 12, 2014 9:30:19 PM UTC+7, Michael DeHaan wrote: > "is that I effectively want to assign/alias zookeeper_myid = > ec2_tag_zookeeper_id andzookeeper_bind_address = ec2_private_ip_address for > each host in the group" > > Are you saying you wish to add them to another group? >

Re: [ansible-project] Setting host vars programmatically with dynamic inventory

2014-09-12 Thread Ches Martin
On Friday, September 12, 2014 6:31:37 AM UTC+7, Michael DeHaan wrote: > > Can you elaborate on what "map values to a particular host var name" would > mean? > > If I may guess at the question, group_vars/ does in fact work > with dynamic groups, if you want everything in ec2_tag_the_key_name_I_w

[ansible-project] Setting host vars programmatically with dynamic inventory

2014-09-11 Thread Ches Martin
Hi folks, I've been trying to come up with a solution to what essentially boils down to this: Say I'm writing, or simply using, a role which depends on a host var being set for all targeted hosts. An example is ZooKeeper, where each member of an ensemble needs a unique ID configured, and needs