gentle-soccer-81698
05/05/2020, 7:23 PMdependsOn
flag in opts=
for the vSphere cluster resource. Looking through the docs that's where I see the flag but I don't see it in vSphere.gentle-diamond-70147
05/05/2020, 7:30 PMgentle-soccer-81698
05/05/2020, 7:31 PM## Create vSphere Cluster(s)
cluster_list = []
def create_cluster():
for x in all_hosts:
cluster = [x['cluster']]
for n in cluster:
compCluster = vsphere.ComputeCluster(resource_name=n, datacenter_id=dc_list[0].moid,name=n,
drs_enabled = cl_settings["drs_enabled"],
drs_automation_level=cl_settings["drs_automation_level"],
ha_enabled = cl_settings["ha_enabled"],
ha_advanced_options = cl_settings["ha_advanced_options"],
ha_admission_control_policy = 'disabled')
x.update(clusterObject = compCluster)
return cluster_list
create_cluster()
cl_settings = {"drs_enabled": True, "drs_automation_level": 'fullyAutomated', "ha_enabled": True,
"ha_advanced_options":{'das.IgnoreInsufficientHbDatastore':'True',
'das.IgnoreRedundantNetWarning':'True'}, "ha_admission_control_policy": 'disabled'}
gentle-diamond-70147
05/05/2020, 7:39 PMopts=pulumi.ResourceOptions(depends_on=[other_resource])
opts
as an argument to ComputeCluster here - https://github.com/pulumi/pulumi-vsphere/blob/master/sdk/python/pulumi_vsphere/compute_cluster.py#L349.gentle-soccer-81698
05/05/2020, 7:40 PM