I am looking for advice on writing a bash script to put new server that we spin-up in AWS and get them added to our Stingrays.
We are creating a new environment in AWS that will be muilt-AZ in AWS autoscaling groups as we are building it with failure in mind. As we will be using the Stringrays in front of these systems for Load Balancing, WAF, URL re-writing etc as we spin up a new machine I want to be able to add the IP address on the Stingray. We are using Cloudforamtion and Puppet as part of this new system and the idea would be to get Puppet to execute a bash script to add them in.
If anyone has done this before and point me in the right direction that would be most helpful.
Thanks.