pulumi-vsphere 4.11.0a1__py3-none-any.whl → 4.11.0a1710920591__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +0 -28
- pulumi_vsphere/_inputs.py +230 -554
- pulumi_vsphere/compute_cluster.py +1477 -747
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +16 -28
- pulumi_vsphere/datacenter.py +12 -26
- pulumi_vsphere/datastore_cluster.py +350 -154
- pulumi_vsphere/distributed_port_group.py +175 -70
- pulumi_vsphere/distributed_virtual_switch.py +805 -308
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +7 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +10 -8
- pulumi_vsphere/get_content_library.py +4 -0
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +4 -0
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +12 -4
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +8 -4
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +4 -0
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +12 -4
- pulumi_vsphere/get_host_thumbprint.py +4 -0
- pulumi_vsphere/get_host_vgpu_profile.py +8 -0
- pulumi_vsphere/get_license.py +4 -0
- pulumi_vsphere/get_network.py +4 -0
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +10 -2
- pulumi_vsphere/get_role.py +4 -0
- pulumi_vsphere/get_tag.py +4 -0
- pulumi_vsphere/get_tag_category.py +4 -0
- pulumi_vsphere/get_vapp_container.py +4 -0
- pulumi_vsphere/get_virtual_machine.py +8 -0
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +0 -50
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +20 -0
- pulumi_vsphere/host_port_group.py +24 -12
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/outputs.py +230 -543
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +22 -48
- pulumi_vsphere/virtual_disk.py +10 -10
- pulumi_vsphere/virtual_machine.py +807 -578
- pulumi_vsphere/virtual_machine_snapshot.py +10 -6
- pulumi_vsphere/vm_storage_policy.py +84 -72
- pulumi_vsphere/vnic.py +20 -8
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -858
- pulumi_vsphere/virtual_machine_class.py +0 -440
- pulumi_vsphere-4.11.0a1.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -657,6 +657,7 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
657
657
|
The following example sets up a resource pool in an existing compute cluster
|
|
658
658
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
659
659
|
|
|
660
|
+
<!--Start PulumiCodeChooser -->
|
|
660
661
|
```python
|
|
661
662
|
import pulumi
|
|
662
663
|
import pulumi_vsphere as vsphere
|
|
@@ -664,25 +665,28 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
664
665
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
665
666
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
666
667
|
datacenter_id=datacenter.id)
|
|
667
|
-
resource_pool = vsphere.ResourcePool("
|
|
668
|
-
name="resource-pool-01",
|
|
669
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
668
|
+
resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
670
669
|
```
|
|
670
|
+
<!--End PulumiCodeChooser -->
|
|
671
671
|
|
|
672
672
|
A virtual machine resource could be targeted to use the default resource pool
|
|
673
673
|
of the cluster using the following:
|
|
674
674
|
|
|
675
|
+
<!--Start PulumiCodeChooser -->
|
|
675
676
|
```python
|
|
676
677
|
import pulumi
|
|
677
678
|
import pulumi_vsphere as vsphere
|
|
678
679
|
|
|
679
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["
|
|
680
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
|
|
681
|
+
# ... other configuration ...
|
|
680
682
|
```
|
|
683
|
+
<!--End PulumiCodeChooser -->
|
|
681
684
|
|
|
682
685
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
683
686
|
with a child resource pool nested below. Each resource pool is configured with
|
|
684
687
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
685
688
|
|
|
689
|
+
<!--Start PulumiCodeChooser -->
|
|
686
690
|
```python
|
|
687
691
|
import pulumi
|
|
688
692
|
import pulumi_vsphere as vsphere
|
|
@@ -690,27 +694,10 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
690
694
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
691
695
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
692
696
|
datacenter_id=datacenter.id)
|
|
693
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
694
|
-
|
|
695
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
696
|
-
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
697
|
-
name="child",
|
|
698
|
-
parent_resource_pool_id=resource_pool_parent.id)
|
|
697
|
+
resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
698
|
+
resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
|
|
699
699
|
```
|
|
700
|
-
|
|
701
|
-
## Importing
|
|
702
|
-
|
|
703
|
-
An existing resource pool can be imported into this resource via
|
|
704
|
-
the path to the resource pool, using the following command:
|
|
705
|
-
|
|
706
|
-
The above would import the resource pool named `resource-pool-01` that is located
|
|
707
|
-
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
708
|
-
|
|
709
|
-
### Settings that Require vSphere 7.0 or higher
|
|
710
|
-
|
|
711
|
-
These settings require vSphere 7.0 or higher:
|
|
712
|
-
|
|
713
|
-
* `scale_descendants_shares`
|
|
700
|
+
<!--End PulumiCodeChooser -->
|
|
714
701
|
|
|
715
702
|
:param str resource_name: The name of the resource.
|
|
716
703
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -779,6 +766,7 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
779
766
|
The following example sets up a resource pool in an existing compute cluster
|
|
780
767
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
781
768
|
|
|
769
|
+
<!--Start PulumiCodeChooser -->
|
|
782
770
|
```python
|
|
783
771
|
import pulumi
|
|
784
772
|
import pulumi_vsphere as vsphere
|
|
@@ -786,25 +774,28 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
786
774
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
787
775
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
788
776
|
datacenter_id=datacenter.id)
|
|
789
|
-
resource_pool = vsphere.ResourcePool("
|
|
790
|
-
name="resource-pool-01",
|
|
791
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
777
|
+
resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
792
778
|
```
|
|
779
|
+
<!--End PulumiCodeChooser -->
|
|
793
780
|
|
|
794
781
|
A virtual machine resource could be targeted to use the default resource pool
|
|
795
782
|
of the cluster using the following:
|
|
796
783
|
|
|
784
|
+
<!--Start PulumiCodeChooser -->
|
|
797
785
|
```python
|
|
798
786
|
import pulumi
|
|
799
787
|
import pulumi_vsphere as vsphere
|
|
800
788
|
|
|
801
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["
|
|
789
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
|
|
790
|
+
# ... other configuration ...
|
|
802
791
|
```
|
|
792
|
+
<!--End PulumiCodeChooser -->
|
|
803
793
|
|
|
804
794
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
805
795
|
with a child resource pool nested below. Each resource pool is configured with
|
|
806
796
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
807
797
|
|
|
798
|
+
<!--Start PulumiCodeChooser -->
|
|
808
799
|
```python
|
|
809
800
|
import pulumi
|
|
810
801
|
import pulumi_vsphere as vsphere
|
|
@@ -812,27 +803,10 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
812
803
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
813
804
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
814
805
|
datacenter_id=datacenter.id)
|
|
815
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
816
|
-
|
|
817
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
818
|
-
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
819
|
-
name="child",
|
|
820
|
-
parent_resource_pool_id=resource_pool_parent.id)
|
|
806
|
+
resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
807
|
+
resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
|
|
821
808
|
```
|
|
822
|
-
|
|
823
|
-
## Importing
|
|
824
|
-
|
|
825
|
-
An existing resource pool can be imported into this resource via
|
|
826
|
-
the path to the resource pool, using the following command:
|
|
827
|
-
|
|
828
|
-
The above would import the resource pool named `resource-pool-01` that is located
|
|
829
|
-
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
830
|
-
|
|
831
|
-
### Settings that Require vSphere 7.0 or higher
|
|
832
|
-
|
|
833
|
-
These settings require vSphere 7.0 or higher:
|
|
834
|
-
|
|
835
|
-
* `scale_descendants_shares`
|
|
809
|
+
<!--End PulumiCodeChooser -->
|
|
836
810
|
|
|
837
811
|
:param str resource_name: The name of the resource.
|
|
838
812
|
:param ResourcePoolArgs args: The arguments to use to populate this resource's properties.
|
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -58,8 +58,8 @@ class VirtualDiskArgs:
|
|
|
58
58
|
pulumi.set(__self__, "size", size)
|
|
59
59
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
60
60
|
if adapter_type is not None:
|
|
61
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
62
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
61
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
62
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
63
63
|
if adapter_type is not None:
|
|
64
64
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
65
65
|
if create_directories is not None:
|
|
@@ -121,8 +121,8 @@ class VirtualDiskArgs:
|
|
|
121
121
|
disk controller types. This parameter will be removed in future versions of the
|
|
122
122
|
vSphere provider.
|
|
123
123
|
"""
|
|
124
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
125
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
124
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
125
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
126
126
|
|
|
127
127
|
return pulumi.get(self, "adapter_type")
|
|
128
128
|
|
|
@@ -224,8 +224,8 @@ class _VirtualDiskState:
|
|
|
224
224
|
be created. This needs to end in `.vmdk`.
|
|
225
225
|
"""
|
|
226
226
|
if adapter_type is not None:
|
|
227
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
228
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
227
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
228
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
229
229
|
if adapter_type is not None:
|
|
230
230
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
231
231
|
if create_directories is not None:
|
|
@@ -255,8 +255,8 @@ class _VirtualDiskState:
|
|
|
255
255
|
disk controller types. This parameter will be removed in future versions of the
|
|
256
256
|
vSphere provider.
|
|
257
257
|
"""
|
|
258
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
259
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
258
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
259
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
260
260
|
|
|
261
261
|
return pulumi.get(self, "adapter_type")
|
|
262
262
|
|
|
@@ -534,8 +534,8 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
534
534
|
disk controller types. This parameter will be removed in future versions of the
|
|
535
535
|
vSphere provider.
|
|
536
536
|
"""
|
|
537
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
538
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
537
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
538
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
539
539
|
|
|
540
540
|
return pulumi.get(self, "adapter_type")
|
|
541
541
|
|