Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Paul Durivage
Hi Guy! I'm not an expert on this module because it's my coworker who wrote it and not me, so I'll try to give you as much good advice as I can. So I think the issue here is that the autoscale groups don't return data about the servers they may create or delete. Correct me if I'm wrong in my und

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
:-( I'm on Rackspace :-( ;-) On Thursday, July 24, 2014 1:53:30 PM UTC-4, James Martin wrote: > > Instead of baking the Tower callback script into the AMI, it also can be > baked into the ASG's Launch Config User Data. That may be a bitter easier > to manage. > > - James > > On Thursday, Jul

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread James Martin
Instead of baking the Tower callback script into the AMI, it also can be baked into the ASG's Launch Config User Data. That may be a bitter easier to manage. - James On Thursday, July 24, 2014 11:26:39 AM UTC-4, Michael DeHaan wrote: > > Tower provisioning callbacks embedded into the image are

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Michael DeHaan
Tower provisioning callbacks embedded into the image are a GREAT solution for this. http://www.ansible.com/tower Alternatively schedule a run to configure and apply policy periodically, only adding machines into the LB once configured. Alternatively, ansible-pull The provisioning callbacks are

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
Right, but with an auto-scaling group I don't know of a way to get the new hostnames of the servers the AS group creates . . . the new host are not returned in the output from the call to create the autoscaling group Thanks, Guy On Thursday, July 24, 2014 10:09:02 AM UTC-4, Michael Peters wro

Re: [ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Michael Peters
If I understand correctly, this is what add_hosts is for. After you've dynamically created a host you can add it to a group and then in a subsequent play include a role that would configure that group. Is that what you're looking for? On Thu, Jul 24, 2014 at 9:43 AM, Guy Matz wrote: > Hi! Is th

[ansible-project] autoscaling_group + add_host == not possible?

2014-07-24 Thread Guy Matz
Hi! Is there any way to provision hosts built by a rax_scaling_group? Is it possible to re-read dynamic inventory midway through the run - after the servers have been built - and have them ansibled? Or is the only option to have them pull after they build? Thanks a lot! Guy -- You received