You would normally use agent auto registration ( https://docs.go.cd/current/advanced_usage/agent_auto_register.html) with the right environment and resources to ensure that the agent when it registers, sets itself up to accept the right jobs.
In the context of the cloud, it's up to you how to setup the file. I don't know enough about your situation but userdata, and chef/puppet/ansible are options to do this. On Wed, Jun 29, 2016, 6:56 AM Rafael Gomes <[email protected]> wrote: > Hi Badri, > > My team already did this in AWS and we used Userdata to provide that > specific information when we launch this ec2 instance. > > Thanks, > > On Tue, Jun 28, 2016 at 9:16 PM, Badri Janakiraman < > [email protected]> wrote: > >> Hello folks >> >> I would like to orchestrate my deployments with Go. >> >> I assume in order to do this, I would have the machines in an environment >> be go-agents. If I wanted to do this on AWS for example, I could have a >> base AMI that comes up with the go-agent pre-installed. This agent would be >> configured to contact the go-server, then get work handed to it to it. >> >> The thing is - if I have multiple environments and my machines in that >> environment get torn down and recreated with every deployment, that would >> result in the agents periodically disappearing and coming back to register >> with the server. In this scenario, can I auto-register the agent in a >> secure way with the server? Can I also auto-assign tags and resources to >> the agent so that it comes up with those pre-configured, ready to accept >> the right kind of work from the server? >> >> Am I thinking about this correctly? Should I think about doing this >> another way? >> >> Thank you! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "go-cd" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Rafael Gomes > Consultant > Email [email protected] > Telephone + <+1+234+567+8910>55 71 982003000 > [image: ThoughtWorks] > <http://www.thoughtworks.com/?utm_campaign=rafael-gomes-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator> > > -- > You received this message because you are subscribed to the Google Groups > "go-cd" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
