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 ENV['USER'] to freeform tags #19

Closed
slippman opened this issue Sep 17, 2019 · 2 comments
Closed

add ENV['USER'] to freeform tags #19

slippman opened this issue Sep 17, 2019 · 2 comments

Comments

@slippman
Copy link
Collaborator

@stephenpearson , what do you think of adding a freeform tag that identifies the user who created the instance? This may make it easier to search for instances that a specific user created. I am currently handling it like this:

hostname_prefix: gta-<%= ENV['USER'] %>

but in the case where someone decides to change that, it might be hard for them to find their node.
Maybe we can add a freeform tag like owner, or created_by, or something like that?

@stephenpearson
Copy link
Owner

Hi @slippman. Sorry for the delay in getting back to you. I'm a little reluctant to add a myriad of tag options unless we can be sure that most users would want that by default. Does something like this not work for you instead?

platforms:
  - name: foo
    driver:
      freeform_tags:
        username: "<%= ENV['USER'] %>"

@slippman
Copy link
Collaborator Author

Yes, that ended up working great. Thanks! Closing issue..

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

No branches or pull requests

2 participants