Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are we creating a route53 in an ansible playbook? #8

Open
mahmoudimus opened this issue Oct 31, 2014 · 3 comments
Open

Why are we creating a route53 in an ansible playbook? #8

mahmoudimus opened this issue Oct 31, 2014 · 3 comments
Labels

Comments

@mahmoudimus
Copy link
Contributor

This is going around cloudformation, which reduces the value and entire point of using cloudformation. When I delete a stack, this route should be cleaned up.

https://github.com/balanced-ops/ansible-base/blob/master/tasks/dns.yml#L22-L29

@mahmoudimus
Copy link
Contributor Author

Related to #7

@mjallday
Copy link

http://serverfault.com/questions/599721/how-do-i-create-dns-entries-for-ec2-instances-created-by-auto-scaling

This is not something you can do with CloudFormation, as its involvement stops at defining the auto-scaling groups - it doesn't got to see the instances started by the ASG. Auto-scaling groups don't give you any way to do this either.
Instead, you could ensure your instances run something on startup to register themselves in Route 53. This post talks about using Chef to do it, but you could do the same thing in a standalone script.

That's assuming no new functionality has been added since then.

The question could be, what's the point of DNS entries? Can we just change the local hostname and be done with it?

@bninja
Copy link
Contributor

bninja commented Oct 31, 2014

agree w/ this. ansible roles ideally know nothing about aws and so should not be creating aws resources (*-infra does that using cfn and ansible plugins). there may be ways to do this (scaling event to r53 or something) but imo are not worth it (ansible host matching is simple).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants