Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Add tags to servers #133

Open
domcleal opened this issue Feb 16, 2015 · 1 comment
Open

Add tags to servers #133

domcleal opened this issue Feb 16, 2015 · 1 comment

Comments

@domcleal
Copy link
Contributor

Servers can have tags associated with them, which helps to track roles and ownership. It would be great to be able to specify rs.tags = ['web'] or similar in the Vagrantfile.

@maxlinc
Copy link
Contributor

maxlinc commented Feb 18, 2015

Hi @domcleal,

It sounds pretty reasonable, but unfortunately servers cannot be tagged via the Rackspace or OpenStack API right now. The feature to associate tags with servers only exists in the Cloud Control Panel right now, but there is already feedback under review to expose Cloud Server tags through the API. If you were hoping for integration with the tags in the Cloud Control Panel it will need to wait until that is resolved.

You may be in luck if you want something similar to tags and don't care about Cloud Control Panel integration. There is already support for metadata so you can associate key/value pairs with servers. You could track "tags" via metadata using either:

A "tags" key with a comma-separated list of tags:

  rs.metadata = { "tags" => %w(web website_team).join(',') }

Or you can use different keys for different types of tags:

  rs.metadata = {
    "role"  => "web",
    "owner" => "website_team"
  }

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

No branches or pull requests

2 participants