@pulumi/vsphere 4.16.2 → 4.16.3
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.
- package/computeCluster.d.ts +137 -67
- package/computeCluster.js +92 -46
- package/computeCluster.js.map +1 -1
- package/computeClusterHostGroup.d.ts +45 -25
- package/computeClusterHostGroup.js +21 -13
- package/computeClusterHostGroup.js.map +1 -1
- package/computeClusterVmAffinityRule.d.ts +32 -20
- package/computeClusterVmAffinityRule.js +20 -14
- package/computeClusterVmAffinityRule.js.map +1 -1
- package/computeClusterVmAntiAffinityRule.d.ts +40 -13
- package/computeClusterVmAntiAffinityRule.js +28 -7
- package/computeClusterVmAntiAffinityRule.js.map +1 -1
- package/computeClusterVmDependencyRule.d.ts +32 -24
- package/computeClusterVmDependencyRule.js +20 -18
- package/computeClusterVmDependencyRule.js.map +1 -1
- package/computeClusterVmGroup.d.ts +32 -23
- package/computeClusterVmGroup.js +8 -11
- package/computeClusterVmGroup.js.map +1 -1
- package/computeClusterVmHostRule.d.ts +36 -26
- package/computeClusterVmHostRule.js +24 -20
- package/computeClusterVmHostRule.js.map +1 -1
- package/configurationProfile.d.ts +88 -0
- package/configurationProfile.js +88 -0
- package/configurationProfile.js.map +1 -1
- package/contentLibrary.d.ts +6 -4
- package/contentLibrary.js +3 -1
- package/contentLibrary.js.map +1 -1
- package/contentLibraryItem.d.ts +3 -2
- package/contentLibraryItem.js +3 -2
- package/contentLibraryItem.js.map +1 -1
- package/customAttribute.d.ts +2 -3
- package/customAttribute.js +2 -3
- package/customAttribute.js.map +1 -1
- package/datacenter.d.ts +18 -8
- package/datacenter.js +4 -3
- package/datacenter.js.map +1 -1
- package/datastoreCluster.d.ts +37 -25
- package/datastoreCluster.js +10 -10
- package/datastoreCluster.js.map +1 -1
- package/datastoreClusterVmAntiAffinityRule.d.ts +37 -22
- package/datastoreClusterVmAntiAffinityRule.js +13 -13
- package/datastoreClusterVmAntiAffinityRule.js.map +1 -1
- package/distributedPortGroup.d.ts +19 -9
- package/distributedPortGroup.js +7 -6
- package/distributedPortGroup.js.map +1 -1
- package/distributedVirtualSwitch.d.ts +27 -10
- package/distributedVirtualSwitch.js +3 -4
- package/distributedVirtualSwitch.js.map +1 -1
- package/dpmHostOverride.d.ts +21 -16
- package/dpmHostOverride.js +9 -10
- package/dpmHostOverride.js.map +1 -1
- package/drsVmOverride.d.ts +22 -17
- package/drsVmOverride.js +10 -11
- package/drsVmOverride.js.map +1 -1
- package/entityPermissions.d.ts +58 -0
- package/entityPermissions.js +58 -0
- package/entityPermissions.js.map +1 -1
- package/file.d.ts +15 -0
- package/file.js +15 -0
- package/file.js.map +1 -1
- package/folder.d.ts +37 -19
- package/folder.js +7 -10
- package/folder.js.map +1 -1
- package/getComputeCluster.d.ts +35 -19
- package/getComputeCluster.js +24 -10
- package/getComputeCluster.js.map +1 -1
- package/getCustomAttribute.d.ts +10 -6
- package/getCustomAttribute.js +10 -6
- package/getCustomAttribute.js.map +1 -1
- package/getDatacenter.d.ts +10 -6
- package/getDatacenter.js +10 -6
- package/getDatacenter.js.map +1 -1
- package/getDatastore.d.ts +22 -16
- package/getDatastore.js +12 -8
- package/getDatastore.js.map +1 -1
- package/getDatastoreCluster.d.ts +24 -10
- package/getDatastoreCluster.js +20 -6
- package/getDatastoreCluster.js.map +1 -1
- package/getDistributedVirtualSwitch.d.ts +25 -19
- package/getDistributedVirtualSwitch.js +12 -8
- package/getDistributedVirtualSwitch.js.map +1 -1
- package/getHost.d.ts +23 -13
- package/getHost.js +8 -4
- package/getHost.js.map +1 -1
- package/getNetwork.d.ts +12 -8
- package/getNetwork.js.map +1 -1
- package/getOvfVmTemplate.d.ts +276 -0
- package/getOvfVmTemplate.js +276 -0
- package/getOvfVmTemplate.js.map +1 -1
- package/getResourcePool.d.ts +38 -26
- package/getResourcePool.js +16 -8
- package/getResourcePool.js.map +1 -1
- package/getTag.d.ts +14 -10
- package/getTag.js +14 -10
- package/getTag.js.map +1 -1
- package/getTagCategory.d.ts +8 -4
- package/getTagCategory.js +8 -4
- package/getTagCategory.js.map +1 -1
- package/getVappContainer.d.ts +16 -6
- package/getVappContainer.js +6 -2
- package/getVappContainer.js.map +1 -1
- package/getVirtualMachine.d.ts +58 -36
- package/getVirtualMachine.js +10 -6
- package/getVirtualMachine.js.map +1 -1
- package/getVmfsDisks.d.ts +12 -4
- package/getVmfsDisks.js +6 -2
- package/getVmfsDisks.js.map +1 -1
- package/haVmOverride.d.ts +8 -10
- package/haVmOverride.js +8 -10
- package/haVmOverride.js.map +1 -1
- package/host.d.ts +54 -80
- package/host.js +54 -80
- package/host.js.map +1 -1
- package/hostPortGroup.d.ts +21 -11
- package/hostPortGroup.js +8 -4
- package/hostPortGroup.js.map +1 -1
- package/hostVirtualSwitch.d.ts +21 -17
- package/hostVirtualSwitch.js +9 -11
- package/hostVirtualSwitch.js.map +1 -1
- package/nasDatastore.d.ts +48 -35
- package/nasDatastore.js +9 -8
- package/nasDatastore.js.map +1 -1
- package/package.json +2 -2
- package/resourcePool.d.ts +31 -7
- package/resourcePool.js +13 -1
- package/resourcePool.js.map +1 -1
- package/role.d.ts +31 -2
- package/role.js +31 -2
- package/role.js.map +1 -1
- package/storageDrsVmOverride.d.ts +40 -17
- package/storageDrsVmOverride.js +19 -8
- package/storageDrsVmOverride.js.map +1 -1
- package/tag.d.ts +16 -15
- package/tag.js +16 -15
- package/tag.js.map +1 -1
- package/tagCategory.d.ts +2 -3
- package/tagCategory.js +2 -3
- package/tagCategory.js.map +1 -1
- package/types/input.d.ts +5 -3
- package/types/output.d.ts +5 -3
- package/vappContainer.d.ts +21 -12
- package/vappContainer.js +0 -3
- package/vappContainer.js.map +1 -1
- package/vappEntity.d.ts +14 -11
- package/vappEntity.js +2 -5
- package/vappEntity.js.map +1 -1
- package/virtualDisk.d.ts +18 -10
- package/virtualDisk.js +9 -7
- package/virtualDisk.js.map +1 -1
- package/virtualMachine.d.ts +1102 -10
- package/virtualMachine.js +1056 -6
- package/virtualMachine.js.map +1 -1
- package/virtualMachineSnapshot.d.ts +2 -1
- package/virtualMachineSnapshot.js +2 -1
- package/virtualMachineSnapshot.js.map +1 -1
- package/vmfsDatastore.d.ts +54 -42
- package/vmfsDatastore.js +12 -15
- package/vmfsDatastore.js.map +1 -1
- package/vnic.d.ts +4 -3
- package/vnic.js +4 -3
- package/vnic.js.map +1 -1
package/getVirtualMachine.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVirtualMachine.js","sourceRoot":"","sources":["../getVirtualMachine.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getVirtualMachine.js","sourceRoot":"","sources":["../getVirtualMachine.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mDAAmD,EAAE;QAC9E,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,+BAA+B,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AS,EAAE,IAAI,CAAC,OAAO;QACvB,yBAAyB,EAAE,IAAI,CAAC,uBAAuB;QACvD,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,6BAA6B,EAAE,IAAI,CAAC,2BAA2B;QAC/D,4BAA4B,EAAE,IAAI,CAAC,0BAA0B;QAC7D,kCAAkC,EAAE,IAAI,CAAC,gCAAgC;QACzE,oCAAoC,EAAE,IAAI,CAAC,kCAAkC;QAC7E,mCAAmC,EAAE,IAAI,CAAC,iCAAiC;QAC3E,yBAAyB,EAAE,IAAI,CAAC,uBAAuB;QACvD,yBAAyB,EAAE,IAAI,CAAC,uBAAuB;QACvD,iBAAiB,EAAE,IAAI,CAAC,eAAe;QACvC,qBAAqB,EAAE,IAAI,CAAC,mBAAmB;QAC/C,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;QACzC,8BAA8B,EAAE,IAAI,CAAC,4BAA4B;QACjE,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AA7DD,0DA6DC"}
|
package/getVmfsDisks.d.ts
CHANGED
|
@@ -2,9 +2,11 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
|
|
4
4
|
* devices available on an ESXi host. This data source can be combined with the
|
|
5
|
-
* `vsphere.VmfsDatastore` resource to create VMFS
|
|
5
|
+
* [`vsphere.VmfsDatastore`][data-source-vmfs-datastore] resource to create VMFS
|
|
6
6
|
* datastores based off a set of discovered disks.
|
|
7
7
|
*
|
|
8
|
+
* [data-source-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
9
|
+
*
|
|
8
10
|
* ## Example Usage
|
|
9
11
|
*
|
|
10
12
|
* ```typescript
|
|
@@ -40,8 +42,10 @@ export interface GetVmfsDisksArgs {
|
|
|
40
42
|
*/
|
|
41
43
|
filter?: string;
|
|
42
44
|
/**
|
|
43
|
-
* The managed object ID of
|
|
45
|
+
* The [managed object ID][docs-about-morefs] of
|
|
44
46
|
* the host to look for disks on.
|
|
47
|
+
*
|
|
48
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
45
49
|
*/
|
|
46
50
|
hostSystemId: string;
|
|
47
51
|
/**
|
|
@@ -71,9 +75,11 @@ export interface GetVmfsDisksResult {
|
|
|
71
75
|
/**
|
|
72
76
|
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
|
|
73
77
|
* devices available on an ESXi host. This data source can be combined with the
|
|
74
|
-
* `vsphere.VmfsDatastore` resource to create VMFS
|
|
78
|
+
* [`vsphere.VmfsDatastore`][data-source-vmfs-datastore] resource to create VMFS
|
|
75
79
|
* datastores based off a set of discovered disks.
|
|
76
80
|
*
|
|
81
|
+
* [data-source-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
82
|
+
*
|
|
77
83
|
* ## Example Usage
|
|
78
84
|
*
|
|
79
85
|
* ```typescript
|
|
@@ -109,8 +115,10 @@ export interface GetVmfsDisksOutputArgs {
|
|
|
109
115
|
*/
|
|
110
116
|
filter?: pulumi.Input<string>;
|
|
111
117
|
/**
|
|
112
|
-
* The managed object ID of
|
|
118
|
+
* The [managed object ID][docs-about-morefs] of
|
|
113
119
|
* the host to look for disks on.
|
|
120
|
+
*
|
|
121
|
+
* [docs-about-morefs]: /docs/providers/vsphere/index.html#use-of-managed-object-references-by-the-vsphere-provider
|
|
114
122
|
*/
|
|
115
123
|
hostSystemId: pulumi.Input<string>;
|
|
116
124
|
/**
|
package/getVmfsDisks.js
CHANGED
|
@@ -8,9 +8,11 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
|
|
10
10
|
* devices available on an ESXi host. This data source can be combined with the
|
|
11
|
-
* `vsphere.VmfsDatastore` resource to create VMFS
|
|
11
|
+
* [`vsphere.VmfsDatastore`][data-source-vmfs-datastore] resource to create VMFS
|
|
12
12
|
* datastores based off a set of discovered disks.
|
|
13
13
|
*
|
|
14
|
+
* [data-source-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
15
|
+
*
|
|
14
16
|
* ## Example Usage
|
|
15
17
|
*
|
|
16
18
|
* ```typescript
|
|
@@ -43,9 +45,11 @@ exports.getVmfsDisks = getVmfsDisks;
|
|
|
43
45
|
/**
|
|
44
46
|
* The `vsphere.getVmfsDisks` data source can be used to discover the storage
|
|
45
47
|
* devices available on an ESXi host. This data source can be combined with the
|
|
46
|
-
* `vsphere.VmfsDatastore` resource to create VMFS
|
|
48
|
+
* [`vsphere.VmfsDatastore`][data-source-vmfs-datastore] resource to create VMFS
|
|
47
49
|
* datastores based off a set of discovered disks.
|
|
48
50
|
*
|
|
51
|
+
* [data-source-vmfs-datastore]: /docs/providers/vsphere/r/vmfs_datastore.html
|
|
52
|
+
*
|
|
49
53
|
* ## Example Usage
|
|
50
54
|
*
|
|
51
55
|
* ```typescript
|
package/getVmfsDisks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getVmfsDisks.js","sourceRoot":"","sources":["../getVmfsDisks.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getVmfsDisks.js","sourceRoot":"","sources":["../getVmfsDisks.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AA+CD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAAiC;IAC9F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yCAAyC,EAAE;QAC1E,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC"}
|
package/haVmOverride.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
16
16
|
* ## Example Usage
|
|
17
17
|
*
|
|
18
18
|
* The example below creates a virtual machine in a cluster using the
|
|
19
|
-
* `vsphere.VirtualMachine` resource, creating the
|
|
19
|
+
* [`vsphere.VirtualMachine`][tf-vsphere-vm-resource] resource, creating the
|
|
20
20
|
* virtual machine in the cluster looked up by the
|
|
21
|
-
* `vsphere.ComputeCluster` data source.
|
|
21
|
+
* [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
22
22
|
*
|
|
23
23
|
* Considering a scenario where this virtual machine is of high value to the
|
|
24
24
|
* application or organization for which it does its work, it's been determined in
|
|
@@ -30,6 +30,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
30
30
|
* VM will be started before any other virtual machine in the event of host
|
|
31
31
|
* failure.
|
|
32
32
|
*
|
|
33
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
34
|
+
* [tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
35
|
+
*
|
|
33
36
|
* ```typescript
|
|
34
37
|
* import * as pulumi from "@pulumi/pulumi";
|
|
35
38
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -50,7 +53,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
50
53
|
* datacenterId: datacenter.id,
|
|
51
54
|
* }));
|
|
52
55
|
* const vm = new vsphere.VirtualMachine("vm", {
|
|
53
|
-
* name: "test",
|
|
56
|
+
* name: "pulumi-test",
|
|
54
57
|
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
55
58
|
* datastoreId: datastore.then(datastore => datastore.id),
|
|
56
59
|
* numCpus: 2,
|
|
@@ -74,22 +77,17 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
74
77
|
* ## Import
|
|
75
78
|
*
|
|
76
79
|
* An existing override can be imported into this resource by
|
|
77
|
-
*
|
|
78
80
|
* supplying both the path to the cluster, and the path to the virtual machine, to
|
|
79
|
-
*
|
|
80
81
|
* `pulumi import`. If no override exists, an error will be given. An example
|
|
81
|
-
*
|
|
82
82
|
* is below:
|
|
83
83
|
*
|
|
84
84
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
85
85
|
*
|
|
86
86
|
* ```sh
|
|
87
|
-
*
|
|
88
|
-
* ```
|
|
89
|
-
*
|
|
87
|
+
* terraform import vsphere_ha_vm_override.ha_vm_override \
|
|
90
88
|
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
91
|
-
*
|
|
92
89
|
* "virtual_machine_path": "/dc1/vm/srv1"}'
|
|
90
|
+
* ```
|
|
93
91
|
*/
|
|
94
92
|
export declare class HaVmOverride extends pulumi.CustomResource {
|
|
95
93
|
/**
|
package/haVmOverride.js
CHANGED
|
@@ -22,9 +22,9 @@ const utilities = require("./utilities");
|
|
|
22
22
|
* ## Example Usage
|
|
23
23
|
*
|
|
24
24
|
* The example below creates a virtual machine in a cluster using the
|
|
25
|
-
* `vsphere.VirtualMachine` resource, creating the
|
|
25
|
+
* [`vsphere.VirtualMachine`][tf-vsphere-vm-resource] resource, creating the
|
|
26
26
|
* virtual machine in the cluster looked up by the
|
|
27
|
-
* `vsphere.ComputeCluster` data source.
|
|
27
|
+
* [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
28
28
|
*
|
|
29
29
|
* Considering a scenario where this virtual machine is of high value to the
|
|
30
30
|
* application or organization for which it does its work, it's been determined in
|
|
@@ -36,6 +36,9 @@ const utilities = require("./utilities");
|
|
|
36
36
|
* VM will be started before any other virtual machine in the event of host
|
|
37
37
|
* failure.
|
|
38
38
|
*
|
|
39
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
40
|
+
* [tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
41
|
+
*
|
|
39
42
|
* ```typescript
|
|
40
43
|
* import * as pulumi from "@pulumi/pulumi";
|
|
41
44
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -56,7 +59,7 @@ const utilities = require("./utilities");
|
|
|
56
59
|
* datacenterId: datacenter.id,
|
|
57
60
|
* }));
|
|
58
61
|
* const vm = new vsphere.VirtualMachine("vm", {
|
|
59
|
-
* name: "test",
|
|
62
|
+
* name: "pulumi-test",
|
|
60
63
|
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
61
64
|
* datastoreId: datastore.then(datastore => datastore.id),
|
|
62
65
|
* numCpus: 2,
|
|
@@ -80,22 +83,17 @@ const utilities = require("./utilities");
|
|
|
80
83
|
* ## Import
|
|
81
84
|
*
|
|
82
85
|
* An existing override can be imported into this resource by
|
|
83
|
-
*
|
|
84
86
|
* supplying both the path to the cluster, and the path to the virtual machine, to
|
|
85
|
-
*
|
|
86
87
|
* `pulumi import`. If no override exists, an error will be given. An example
|
|
87
|
-
*
|
|
88
88
|
* is below:
|
|
89
89
|
*
|
|
90
90
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
91
91
|
*
|
|
92
92
|
* ```sh
|
|
93
|
-
*
|
|
94
|
-
* ```
|
|
95
|
-
*
|
|
93
|
+
* terraform import vsphere_ha_vm_override.ha_vm_override \
|
|
96
94
|
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
97
|
-
*
|
|
98
95
|
* "virtual_machine_path": "/dc1/vm/srv1"}'
|
|
96
|
+
* ```
|
|
99
97
|
*/
|
|
100
98
|
class HaVmOverride extends pulumi.CustomResource {
|
|
101
99
|
/**
|
package/haVmOverride.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"haVmOverride.js","sourceRoot":"","sources":["../haVmOverride.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"haVmOverride.js","sourceRoot":"","sources":["../haVmOverride.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;I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AC,kCAAkC,CAAC,GAAG,IAAI,EAAE,gCAAgC,CAAC;YAC5F,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA/IL,oCAgJC;AAlIG,gBAAgB;AACO,yBAAY,GAAG,yCAAyC,CAAC"}
|
package/host.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
*
|
|
8
8
|
* ## Example Usage
|
|
9
9
|
*
|
|
10
|
-
* ###
|
|
10
|
+
* ### S
|
|
11
|
+
*
|
|
12
|
+
* **Create a standalone host:**
|
|
11
13
|
*
|
|
12
14
|
* ```typescript
|
|
13
15
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -30,7 +32,7 @@ import * as outputs from "./types/output";
|
|
|
30
32
|
* });
|
|
31
33
|
* ```
|
|
32
34
|
*
|
|
33
|
-
*
|
|
35
|
+
* **Create host in a compute cluster:**
|
|
34
36
|
*
|
|
35
37
|
* ```typescript
|
|
36
38
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -67,98 +69,70 @@ import * as outputs from "./types/output";
|
|
|
67
69
|
* ## Import
|
|
68
70
|
*
|
|
69
71
|
* An existing host can be imported into this resource by supplying
|
|
70
|
-
*
|
|
71
72
|
* the host's ID.
|
|
72
73
|
*
|
|
73
74
|
* [docs-import]: /docs/import/index.html
|
|
74
75
|
*
|
|
75
76
|
* Obtain the host's ID using the data source. For example:
|
|
76
77
|
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* name = "dc-01"
|
|
82
|
-
*
|
|
83
|
-
* }
|
|
84
|
-
*
|
|
85
|
-
* data "vsphere_host" "host" {
|
|
86
|
-
*
|
|
87
|
-
* name = "esxi-01.example.com"
|
|
88
|
-
*
|
|
89
|
-
* datacenter_id = data.vsphere_datacenter.datacenter.id
|
|
90
|
-
*
|
|
91
|
-
* }
|
|
92
|
-
*
|
|
93
|
-
* output "host_id" {
|
|
94
|
-
*
|
|
95
|
-
* value = data.vsphere_host.host.id
|
|
78
|
+
* ```typescript
|
|
79
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
80
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
96
81
|
*
|
|
97
|
-
*
|
|
82
|
+
* const datacenter = vsphere.getDatacenter({
|
|
83
|
+
* name: "dc-01",
|
|
84
|
+
* });
|
|
85
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
86
|
+
* name: "esxi-01.example.com",
|
|
87
|
+
* datacenterId: datacenter.id,
|
|
88
|
+
* }));
|
|
89
|
+
* export const hostId = host.then(host => host.id);
|
|
90
|
+
* ```
|
|
98
91
|
*
|
|
99
92
|
* Next, create a resource configuration, For example:
|
|
100
93
|
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* name = "dc-01"
|
|
106
|
-
*
|
|
107
|
-
* }
|
|
108
|
-
*
|
|
109
|
-
* data "vsphere_host_thumbprint" "thumbprint" {
|
|
110
|
-
*
|
|
111
|
-
* address = "esxi-01.example.com"
|
|
112
|
-
*
|
|
113
|
-
* insecure = true
|
|
114
|
-
*
|
|
115
|
-
* }
|
|
116
|
-
*
|
|
117
|
-
* resource "vsphere_host" "esx-01" {
|
|
118
|
-
*
|
|
119
|
-
* hostname = "esxi-01.example.com"
|
|
120
|
-
*
|
|
121
|
-
* username = "root"
|
|
122
|
-
*
|
|
123
|
-
* password = "password"
|
|
124
|
-
*
|
|
125
|
-
* thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
126
|
-
*
|
|
127
|
-
* datacenter = data.vsphere_datacenter.datacenter.id
|
|
128
|
-
*
|
|
129
|
-
* }
|
|
130
|
-
*
|
|
131
|
-
* hcl
|
|
132
|
-
*
|
|
133
|
-
* resource "vsphere_host" "esx-01" {
|
|
134
|
-
*
|
|
135
|
-
* hostname = "esxi-01.example.com"
|
|
136
|
-
*
|
|
137
|
-
* username = "root"
|
|
138
|
-
*
|
|
139
|
-
* password = "password"
|
|
140
|
-
*
|
|
141
|
-
* license = "00000-00000-00000-00000-00000"
|
|
142
|
-
*
|
|
143
|
-
* thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
144
|
-
*
|
|
145
|
-
* cluster = data.vsphere_compute_cluster.cluster.id
|
|
146
|
-
*
|
|
147
|
-
* services {
|
|
148
|
-
*
|
|
149
|
-
* ntpd {
|
|
150
|
-
*
|
|
151
|
-
* enabled = true
|
|
152
|
-
*
|
|
153
|
-
* policy = "on"
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
96
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
154
97
|
*
|
|
155
|
-
*
|
|
98
|
+
* const datacenter = vsphere.getDatacenter({
|
|
99
|
+
* name: "dc-01",
|
|
100
|
+
* });
|
|
101
|
+
* const thumbprint = vsphere.getHostThumbprint({
|
|
102
|
+
* address: "esxi-01.example.com",
|
|
103
|
+
* insecure: true,
|
|
104
|
+
* });
|
|
105
|
+
* const esx_01 = new vsphere.Host("esx-01", {
|
|
106
|
+
* hostname: "esxi-01.example.com",
|
|
107
|
+
* username: "root",
|
|
108
|
+
* password: "password",
|
|
109
|
+
* thumbprint: thumbprint.then(thumbprint => thumbprint.id),
|
|
110
|
+
* datacenter: datacenter.then(datacenter => datacenter.id),
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
156
113
|
*
|
|
157
|
-
*
|
|
114
|
+
* > **NOTE:** When you import hosts, all managed settings are returned. Ensure all settings are set correctly in resource. For example:
|
|
158
115
|
*
|
|
159
|
-
*
|
|
116
|
+
* ```typescript
|
|
117
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
118
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
160
119
|
*
|
|
161
|
-
*
|
|
120
|
+
* const esx_01 = new vsphere.Host("esx-01", {
|
|
121
|
+
* hostname: "esxi-01.example.com",
|
|
122
|
+
* username: "root",
|
|
123
|
+
* password: "password",
|
|
124
|
+
* license: "00000-00000-00000-00000-00000",
|
|
125
|
+
* thumbprint: thumbprint.id,
|
|
126
|
+
* cluster: cluster.id,
|
|
127
|
+
* services: [{
|
|
128
|
+
* ntpd: {
|
|
129
|
+
* enabled: true,
|
|
130
|
+
* policy: "on",
|
|
131
|
+
* ntpServers: ["pool.ntp.org"],
|
|
132
|
+
* },
|
|
133
|
+
* }],
|
|
134
|
+
* });
|
|
135
|
+
* ```
|
|
162
136
|
*
|
|
163
137
|
* ```sh
|
|
164
138
|
* $ pulumi import vsphere:index/host:Host esx-01 host-123
|
package/host.js
CHANGED
|
@@ -11,7 +11,9 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
-
* ###
|
|
14
|
+
* ### S
|
|
15
|
+
*
|
|
16
|
+
* **Create a standalone host:**
|
|
15
17
|
*
|
|
16
18
|
* ```typescript
|
|
17
19
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -34,7 +36,7 @@ const utilities = require("./utilities");
|
|
|
34
36
|
* });
|
|
35
37
|
* ```
|
|
36
38
|
*
|
|
37
|
-
*
|
|
39
|
+
* **Create host in a compute cluster:**
|
|
38
40
|
*
|
|
39
41
|
* ```typescript
|
|
40
42
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -71,98 +73,70 @@ const utilities = require("./utilities");
|
|
|
71
73
|
* ## Import
|
|
72
74
|
*
|
|
73
75
|
* An existing host can be imported into this resource by supplying
|
|
74
|
-
*
|
|
75
76
|
* the host's ID.
|
|
76
77
|
*
|
|
77
78
|
* [docs-import]: /docs/import/index.html
|
|
78
79
|
*
|
|
79
80
|
* Obtain the host's ID using the data source. For example:
|
|
80
81
|
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* name = "dc-01"
|
|
86
|
-
*
|
|
87
|
-
* }
|
|
88
|
-
*
|
|
89
|
-
* data "vsphere_host" "host" {
|
|
90
|
-
*
|
|
91
|
-
* name = "esxi-01.example.com"
|
|
92
|
-
*
|
|
93
|
-
* datacenter_id = data.vsphere_datacenter.datacenter.id
|
|
94
|
-
*
|
|
95
|
-
* }
|
|
96
|
-
*
|
|
97
|
-
* output "host_id" {
|
|
98
|
-
*
|
|
99
|
-
* value = data.vsphere_host.host.id
|
|
82
|
+
* ```typescript
|
|
83
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
84
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
100
85
|
*
|
|
101
|
-
*
|
|
86
|
+
* const datacenter = vsphere.getDatacenter({
|
|
87
|
+
* name: "dc-01",
|
|
88
|
+
* });
|
|
89
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
90
|
+
* name: "esxi-01.example.com",
|
|
91
|
+
* datacenterId: datacenter.id,
|
|
92
|
+
* }));
|
|
93
|
+
* export const hostId = host.then(host => host.id);
|
|
94
|
+
* ```
|
|
102
95
|
*
|
|
103
96
|
* Next, create a resource configuration, For example:
|
|
104
97
|
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* name = "dc-01"
|
|
110
|
-
*
|
|
111
|
-
* }
|
|
112
|
-
*
|
|
113
|
-
* data "vsphere_host_thumbprint" "thumbprint" {
|
|
114
|
-
*
|
|
115
|
-
* address = "esxi-01.example.com"
|
|
116
|
-
*
|
|
117
|
-
* insecure = true
|
|
118
|
-
*
|
|
119
|
-
* }
|
|
120
|
-
*
|
|
121
|
-
* resource "vsphere_host" "esx-01" {
|
|
122
|
-
*
|
|
123
|
-
* hostname = "esxi-01.example.com"
|
|
124
|
-
*
|
|
125
|
-
* username = "root"
|
|
126
|
-
*
|
|
127
|
-
* password = "password"
|
|
128
|
-
*
|
|
129
|
-
* thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
130
|
-
*
|
|
131
|
-
* datacenter = data.vsphere_datacenter.datacenter.id
|
|
132
|
-
*
|
|
133
|
-
* }
|
|
134
|
-
*
|
|
135
|
-
* hcl
|
|
136
|
-
*
|
|
137
|
-
* resource "vsphere_host" "esx-01" {
|
|
138
|
-
*
|
|
139
|
-
* hostname = "esxi-01.example.com"
|
|
140
|
-
*
|
|
141
|
-
* username = "root"
|
|
142
|
-
*
|
|
143
|
-
* password = "password"
|
|
144
|
-
*
|
|
145
|
-
* license = "00000-00000-00000-00000-00000"
|
|
146
|
-
*
|
|
147
|
-
* thumbprint = data.vsphere_host_thumbprint.thumbprint.id
|
|
148
|
-
*
|
|
149
|
-
* cluster = data.vsphere_compute_cluster.cluster.id
|
|
150
|
-
*
|
|
151
|
-
* services {
|
|
152
|
-
*
|
|
153
|
-
* ntpd {
|
|
154
|
-
*
|
|
155
|
-
* enabled = true
|
|
156
|
-
*
|
|
157
|
-
* policy = "on"
|
|
98
|
+
* ```typescript
|
|
99
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
100
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
158
101
|
*
|
|
159
|
-
*
|
|
102
|
+
* const datacenter = vsphere.getDatacenter({
|
|
103
|
+
* name: "dc-01",
|
|
104
|
+
* });
|
|
105
|
+
* const thumbprint = vsphere.getHostThumbprint({
|
|
106
|
+
* address: "esxi-01.example.com",
|
|
107
|
+
* insecure: true,
|
|
108
|
+
* });
|
|
109
|
+
* const esx_01 = new vsphere.Host("esx-01", {
|
|
110
|
+
* hostname: "esxi-01.example.com",
|
|
111
|
+
* username: "root",
|
|
112
|
+
* password: "password",
|
|
113
|
+
* thumbprint: thumbprint.then(thumbprint => thumbprint.id),
|
|
114
|
+
* datacenter: datacenter.then(datacenter => datacenter.id),
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
160
117
|
*
|
|
161
|
-
*
|
|
118
|
+
* > **NOTE:** When you import hosts, all managed settings are returned. Ensure all settings are set correctly in resource. For example:
|
|
162
119
|
*
|
|
163
|
-
*
|
|
120
|
+
* ```typescript
|
|
121
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
122
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
164
123
|
*
|
|
165
|
-
*
|
|
124
|
+
* const esx_01 = new vsphere.Host("esx-01", {
|
|
125
|
+
* hostname: "esxi-01.example.com",
|
|
126
|
+
* username: "root",
|
|
127
|
+
* password: "password",
|
|
128
|
+
* license: "00000-00000-00000-00000-00000",
|
|
129
|
+
* thumbprint: thumbprint.id,
|
|
130
|
+
* cluster: cluster.id,
|
|
131
|
+
* services: [{
|
|
132
|
+
* ntpd: {
|
|
133
|
+
* enabled: true,
|
|
134
|
+
* policy: "on",
|
|
135
|
+
* ntpServers: ["pool.ntp.org"],
|
|
136
|
+
* },
|
|
137
|
+
* }],
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
166
140
|
*
|
|
167
141
|
* ```sh
|
|
168
142
|
* $ pulumi import vsphere:index/host:Host esx-01 host-123
|
package/host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.js","sourceRoot":"","sources":["../host.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"host.js","sourceRoot":"","sources":["../host.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;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