pulumi-vsphere 4.11.0a1713340048__py3-none-any.whl → 4.11.0a1713905355__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/_inputs.py +96 -230
- pulumi_vsphere/compute_cluster.py +700 -1477
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +14 -16
- pulumi_vsphere/datacenter.py +8 -12
- pulumi_vsphere/datastore_cluster.py +154 -350
- pulumi_vsphere/distributed_port_group.py +70 -175
- pulumi_vsphere/distributed_virtual_switch.py +308 -798
- 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 +0 -4
- pulumi_vsphere/get_datastore_cluster.py +0 -4
- pulumi_vsphere/get_datastore_stats.py +4 -12
- 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 +0 -8
- 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 +0 -8
- 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 -8
- pulumi_vsphere/host_port_group.py +12 -12
- pulumi_vsphere/host_virtual_switch.py +140 -287
- pulumi_vsphere/license.py +0 -32
- pulumi_vsphere/outputs.py +96 -230
- pulumi_vsphere/resource_pool.py +20 -22
- pulumi_vsphere/virtual_machine.py +599 -739
- pulumi_vsphere/virtual_machine_snapshot.py +6 -10
- pulumi_vsphere/vm_storage_policy.py +72 -84
- pulumi_vsphere/vnic.py +8 -8
- {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1713905355.dist-info/RECORD +82 -0
- pulumi_vsphere-4.11.0a1713340048.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.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,13 @@ 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
|
-
<!--End PulumiCodeChooser -->
|
|
701
700
|
|
|
702
701
|
## Importing
|
|
703
702
|
|
|
@@ -780,7 +779,6 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
780
779
|
The following example sets up a resource pool in an existing compute cluster
|
|
781
780
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
782
781
|
|
|
783
|
-
<!--Start PulumiCodeChooser -->
|
|
784
782
|
```python
|
|
785
783
|
import pulumi
|
|
786
784
|
import pulumi_vsphere as vsphere
|
|
@@ -788,28 +786,25 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
788
786
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
789
787
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
790
788
|
datacenter_id=datacenter.id)
|
|
791
|
-
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)
|
|
792
792
|
```
|
|
793
|
-
<!--End PulumiCodeChooser -->
|
|
794
793
|
|
|
795
794
|
A virtual machine resource could be targeted to use the default resource pool
|
|
796
795
|
of the cluster using the following:
|
|
797
796
|
|
|
798
|
-
<!--Start PulumiCodeChooser -->
|
|
799
797
|
```python
|
|
800
798
|
import pulumi
|
|
801
799
|
import pulumi_vsphere as vsphere
|
|
802
800
|
|
|
803
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=
|
|
804
|
-
# ... other configuration ...
|
|
801
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
|
|
805
802
|
```
|
|
806
|
-
<!--End PulumiCodeChooser -->
|
|
807
803
|
|
|
808
804
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
809
805
|
with a child resource pool nested below. Each resource pool is configured with
|
|
810
806
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
811
807
|
|
|
812
|
-
<!--Start PulumiCodeChooser -->
|
|
813
808
|
```python
|
|
814
809
|
import pulumi
|
|
815
810
|
import pulumi_vsphere as vsphere
|
|
@@ -817,10 +812,13 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
817
812
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
818
813
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
819
814
|
datacenter_id=datacenter.id)
|
|
820
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
821
|
-
|
|
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)
|
|
822
821
|
```
|
|
823
|
-
<!--End PulumiCodeChooser -->
|
|
824
822
|
|
|
825
823
|
## Importing
|
|
826
824
|
|