Skip to content

Instantly share code, notes, and snippets.

@dominikzorgnotti
Last active July 1, 2022 07:25
Show Gist options
  • Save dominikzorgnotti/cf2264945c9316eaa25f196d41eda308 to your computer and use it in GitHub Desktop.
Save dominikzorgnotti/cf2264945c9316eaa25f196d41eda308 to your computer and use it in GitHub Desktop.
Create a custom role for the Tanzu Community Edition service user using GOVC
# Creating TCE role for vSphere per https://tanzucommunityedition.io/docs/v0.12/ref-vsphere/
# This assumes you have setup your GOVC environment per https://github.com/vmware/govmomi/tree/master/govc
govc role.create role_TCE \
Cns.Searchable \
Datastore.AllocateSpace \
Datastore.Browse \
Datastore.FileManagement \
Global.DisableMethods \
Global.EnableMethods \
Global.Licenses \
Network.Assign \
StorageProfile.View \
Resource.AssignVMToPool \
Sessions.GlobalMessage \
Sessions.ValidateSession \
VApp.Import \
VirtualMachine.Config.AddExistingDisk \
VirtualMachine.Config.AddNewDisk \
VirtualMachine.Config.AddRemoveDevice \
VirtualMachine.Config.AdvancedConfig \
VirtualMachine.Config.CPUCount \
VirtualMachine.Config.Memory \
VirtualMachine.Config.Settings \
VirtualMachine.Config.RawDevice \
VirtualMachine.Config.DiskExtend \
VirtualMachine.Config.EditDevice \
VirtualMachine.Config.RemoveDisk \
VirtualMachine.Config.ChangeTracking \
VirtualMachine.Inventory.CreateFromExisting \
VirtualMachine.Inventory.Delete \
VirtualMachine.Interact.PowerOff \
VirtualMachine.Interact.PowerOn \
VirtualMachine.Provisioning.GetVmFiles \
VirtualMachine.Provisioning.DeployTemplate \
VirtualMachine.Provisioning.DiskRandomRead \
VirtualMachine.State.CreateSnapshot \
VirtualMachine.State.RemoveSnapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment