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

add the tagname flag to allow arbitrary ec2 tags be the dns name #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

timball
Copy link

@timball timball commented Apr 28, 2015

this deals w/ #8

share and enjoy!

--timball

@ConradIrwin
Copy link
Owner

This looks ok code-wise, but I'm curious as to what could be more useful than the Name tag?

if *tagname == "" {
// stupid strings ...
x := "Name"
tagname = &x
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@timball I think you can just pass "Name" as the default parameter to flag.String.

@timball
Copy link
Author

timball commented Apr 28, 2015

okay i made the change for the string default, as far as "why did i do this?" it's because we used the ec2 "Name" a bit more freeform and have an ec2 tag "DNS" that represents the dns name i want servers to respond too . i was using some crazy powerdns + ec2tools nonsense . aws-name-server is more sane . took me exactly 20m to get it to do what i needed . 👍

--timball

@timball
Copy link
Author

timball commented Apr 28, 2015

though right now i can't set an instances "Name" or "DNS" to anything w/ a dot ... so "server.group.domain" would be sweet . maybe i'll give it another 20m look

--timball

@ConradIrwin
Copy link
Owner

We could allow --tagname to take a dot-separated list of tagnames. If we then allow for multiple tagname arguments that would allow for very cool, easy flexibility.

--tagname "DNS.Group"

@timball
Copy link
Author

timball commented Jun 23, 2015

pull code ? or do you want me to give the --tagname a go ?

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

Successfully merging this pull request may close these issues.

2 participants