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

parent tag synching #146

Closed
ShmoeTheHo opened this issue Feb 15, 2022 · 4 comments
Closed

parent tag synching #146

ShmoeTheHo opened this issue Feb 15, 2022 · 4 comments
Labels
awaiting reply Awaiting reply from issue owner
Milestone

Comments

@ShmoeTheHo
Copy link

is it not possible to tag a cluster and have the vms underneath it inherit that tag in vmware? trying to automate tagging of machines in particular clusters but it doesn't seem to be coming through unless it's a vm folder or a vm itself.

Thanks!

@bb-Ricardo
Copy link
Owner

Hi, this is correct, only the folder tag of a VM will be read if parent tag sync is enabled.

I could add a sync_vm_cluster_tag option to enable this behavior.

But I would like to not end up with even more and more config options.

Or would there even be a better way to configure the tag syncing? Any suggestions?

@ShmoeTheHo
Copy link
Author

The language on the existing setting is a bit ambiguous and could already imply this happens, not really sure how to proceed there. We've worked around this (crappily) in the mean though.

@bb-Ricardo
Copy link
Owner

I guess I should rephrase the config setting then.

@bb-Ricardo bb-Ricardo added this to the 1.3.0 milestone May 11, 2022
@bb-Ricardo
Copy link
Owner

Hi,

I just changed the whole setting to tag syncing. Would you mind test the latest "development" branch?

# sync tags assigned to clusters, hosts and VMs in vCenter to NetBox
# INFO: this requires the installation of the 'vsphere-automation-sdk', ses docs about installation
# possible values:
# * object : the host or VM itself
# * parent_folder_1 : the direct folder this object is organized in (1 level up)
# * parent_folder_2 : the indirect folder this object is organized in (2 levels up)
# * cluster : the cluster this object is organized in
# * datacenter : the datacenter this object is organized in
# this is a comma separated list of options. example: vm_tag_source = object, cluster
#cluster_tag_source =
#host_tag_source =
#vm_tag_source =

Thank you

@bb-Ricardo bb-Ricardo added the awaiting reply Awaiting reply from issue owner label Aug 24, 2022
andreiKuznets0v pushed a commit to andreiKuznets0v/netbox-sync_try_vcloud that referenced this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply Awaiting reply from issue owner
Projects
None yet
Development

No branches or pull requests

2 participants