-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
36 lines (31 loc) · 1 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# BE CAREFUL: vsphere_entity_permissions will RMOVE ALL UNMANAGED PERMISSIONS FROM THE TARGET!!!
# variable "seed_group" {
# default = "joshy-test-seed"
# }
# variable "user_cluster_group" {
# default = "joshy-test-user-cluster"
# }
# data vsphere_datastore datastore {
# name = var.datastore_name
# datacenter_id = data.vsphere_datacenter.dc.id
# }
# resource vsphere_entity_permissions seed_vm_folder {
# entity_id = vsphere_folder.parent.id
# entity_type = "Folder"
# permissions {
# user_or_group = "vsphere.local\\${var.seed_group}"
# propagate = true
# is_group = true
# role_id = vsphere_role.seed_k8c_storage_vmfolder_propagate.id
# }
# }
# resource vsphere_entity_permissions datastore {
# entity_id = data.vsphere_datastore.datastore.id
# entity_type = "Datastore"
# permissions {
# user_or_group = "vsphere.local\\${var.seed_group}"
# propagate = true
# is_group = true
# role_id = vsphere_role.seed_k8c_storage_datastore_propagate.id
# }
# }