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 inventory hostname label support #464

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

Yonas-Dresen
Copy link
Contributor

SUMMARY

Fixes #463 Add labels option to the hostname section of the gcp inventory

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

gcp_compute

ADDITIONAL INFORMATION

If the supplied label exists the inventory_hostname will be the label value. This feature is already available in the AWS and Azure inventory. This would lift the need to rename virtual machines. You can now rename the inventory name by changing a tag. The real VM name can be an ID while the user can interact with something more human-friendly.

hostnames:
  - labels.vm_name
  - public_ip
  - private_ip
  - name

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.

gcp_compute inventory labels as hostname
2 participants