pulumi-vsphere 4.10.0a1710160860__py3-none-any.whl → 4.10.1__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 +2 -0
- pulumi_vsphere/_inputs.py +96 -230
- pulumi_vsphere/compute_cluster.py +700 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -16
- pulumi_vsphere/datacenter.py +26 -12
- pulumi_vsphere/datastore_cluster.py +154 -350
- pulumi_vsphere/distributed_port_group.py +70 -175
- pulumi_vsphere/distributed_virtual_switch.py +308 -805
- pulumi_vsphere/file.py +16 -24
- pulumi_vsphere/get_compute_cluster.py +0 -4
- pulumi_vsphere/get_compute_cluster_host_group.py +8 -10
- pulumi_vsphere/get_content_library.py +0 -4
- pulumi_vsphere/get_custom_attribute.py +0 -4
- pulumi_vsphere/get_datacenter.py +0 -4
- pulumi_vsphere/get_datastore.py +27 -7
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +194 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
- pulumi_vsphere/get_dynamic.py +4 -8
- pulumi_vsphere/get_folder.py +0 -4
- pulumi_vsphere/get_guest_os_customization.py +0 -4
- pulumi_vsphere/get_host.py +0 -4
- pulumi_vsphere/get_host_pci_device.py +4 -12
- pulumi_vsphere/get_host_thumbprint.py +0 -4
- pulumi_vsphere/get_host_vgpu_profile.py +182 -0
- pulumi_vsphere/get_license.py +0 -4
- pulumi_vsphere/get_network.py +0 -4
- pulumi_vsphere/get_policy.py +0 -4
- pulumi_vsphere/get_resource_pool.py +2 -10
- pulumi_vsphere/get_role.py +0 -4
- pulumi_vsphere/get_tag.py +0 -4
- pulumi_vsphere/get_tag_category.py +0 -4
- pulumi_vsphere/get_vapp_container.py +0 -4
- pulumi_vsphere/get_virtual_machine.py +29 -9
- pulumi_vsphere/get_vmfs_disks.py +0 -4
- pulumi_vsphere/guest_os_customization.py +50 -0
- pulumi_vsphere/ha_vm_override.py +189 -378
- pulumi_vsphere/host.py +0 -20
- pulumi_vsphere/host_port_group.py +12 -24
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/license.py +0 -32
- pulumi_vsphere/outputs.py +167 -230
- pulumi_vsphere/resource_pool.py +48 -22
- pulumi_vsphere/virtual_disk.py +10 -10
- pulumi_vsphere/virtual_machine.py +639 -807
- pulumi_vsphere/virtual_machine_snapshot.py +6 -10
- pulumi_vsphere/vm_storage_policy.py +72 -84
- pulumi_vsphere/vnic.py +8 -20
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.1.dist-info/RECORD +82 -0
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1710160860.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.10.1.dist-info}/top_level.txt +0 -0
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -657,7 +657,6 @@ 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 -->
|
|
661
660
|
```python
|
|
662
661
|
import pulumi
|
|
663
662
|
import pulumi_vsphere as vsphere
|
|
@@ -665,28 +664,25 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
665
664
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
666
665
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
667
666
|
datacenter_id=datacenter.id)
|
|
668
|
-
resource_pool = vsphere.ResourcePool("
|
|
667
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
668
|
+
name="resource-pool-01",
|
|
669
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
669
670
|
```
|
|
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 -->
|
|
676
675
|
```python
|
|
677
676
|
import pulumi
|
|
678
677
|
import pulumi_vsphere as vsphere
|
|
679
678
|
|
|
680
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=
|
|
681
|
-
# ... other configuration ...
|
|
679
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
682
680
|
```
|
|
683
|
-
<!--End PulumiCodeChooser -->
|
|
684
681
|
|
|
685
682
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
686
683
|
with a child resource pool nested below. Each resource pool is configured with
|
|
687
684
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
688
685
|
|
|
689
|
-
<!--Start PulumiCodeChooser -->
|
|
690
686
|
```python
|
|
691
687
|
import pulumi
|
|
692
688
|
import pulumi_vsphere as vsphere
|
|
@@ -694,10 +690,27 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
694
690
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
695
691
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
696
692
|
datacenter_id=datacenter.id)
|
|
697
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
698
|
-
|
|
693
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
694
|
+
name="parent",
|
|
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)
|
|
699
699
|
```
|
|
700
|
-
|
|
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`
|
|
701
714
|
|
|
702
715
|
:param str resource_name: The name of the resource.
|
|
703
716
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -766,7 +779,6 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
766
779
|
The following example sets up a resource pool in an existing compute cluster
|
|
767
780
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
768
781
|
|
|
769
|
-
<!--Start PulumiCodeChooser -->
|
|
770
782
|
```python
|
|
771
783
|
import pulumi
|
|
772
784
|
import pulumi_vsphere as vsphere
|
|
@@ -774,28 +786,25 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
774
786
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
775
787
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
776
788
|
datacenter_id=datacenter.id)
|
|
777
|
-
resource_pool = vsphere.ResourcePool("
|
|
789
|
+
resource_pool = vsphere.ResourcePool("resource_pool",
|
|
790
|
+
name="resource-pool-01",
|
|
791
|
+
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
778
792
|
```
|
|
779
|
-
<!--End PulumiCodeChooser -->
|
|
780
793
|
|
|
781
794
|
A virtual machine resource could be targeted to use the default resource pool
|
|
782
795
|
of the cluster using the following:
|
|
783
796
|
|
|
784
|
-
<!--Start PulumiCodeChooser -->
|
|
785
797
|
```python
|
|
786
798
|
import pulumi
|
|
787
799
|
import pulumi_vsphere as vsphere
|
|
788
800
|
|
|
789
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=
|
|
790
|
-
# ... other configuration ...
|
|
801
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
791
802
|
```
|
|
792
|
-
<!--End PulumiCodeChooser -->
|
|
793
803
|
|
|
794
804
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
795
805
|
with a child resource pool nested below. Each resource pool is configured with
|
|
796
806
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
797
807
|
|
|
798
|
-
<!--Start PulumiCodeChooser -->
|
|
799
808
|
```python
|
|
800
809
|
import pulumi
|
|
801
810
|
import pulumi_vsphere as vsphere
|
|
@@ -803,10 +812,27 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
803
812
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
804
813
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
805
814
|
datacenter_id=datacenter.id)
|
|
806
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
807
|
-
|
|
815
|
+
resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
|
|
816
|
+
name="parent",
|
|
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)
|
|
808
821
|
```
|
|
809
|
-
|
|
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`
|
|
810
836
|
|
|
811
837
|
:param str resource_name: The name of the resource.
|
|
812
838
|
: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 VirtualMachine instead""", DeprecationWarning)
|
|
62
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine 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 VirtualMachine instead""", DeprecationWarning)
|
|
125
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine 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 VirtualMachine instead""", DeprecationWarning)
|
|
228
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine 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 VirtualMachine instead""", DeprecationWarning)
|
|
259
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine 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 VirtualMachine instead""", DeprecationWarning)
|
|
538
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
539
539
|
|
|
540
540
|
return pulumi.get(self, "adapter_type")
|
|
541
541
|
|