@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
|
@@ -8,36 +8,45 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* The `vsphere.ComputeClusterVmHostRule` resource can be used to manage
|
|
10
10
|
* VM-to-host rules in a cluster, either created by the
|
|
11
|
-
* `vsphere.ComputeCluster` resource or looked up
|
|
12
|
-
* by the `vsphere.ComputeCluster` data source.
|
|
11
|
+
* [`vsphere.ComputeCluster`][tf-vsphere-cluster-resource] resource or looked up
|
|
12
|
+
* by the [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source] data source.
|
|
13
|
+
*
|
|
14
|
+
* [tf-vsphere-cluster-resource]: /docs/providers/vsphere/r/compute_cluster.html
|
|
15
|
+
* [tf-vsphere-cluster-data-source]: /docs/providers/vsphere/d/compute_cluster.html
|
|
13
16
|
*
|
|
14
17
|
* This resource can create both _affinity rules_, where virtual machines run on
|
|
15
18
|
* specified hosts, or _anti-affinity_ rules, where virtual machines run on hosts
|
|
16
19
|
* outside of the ones specified in the rule. Virtual machines and hosts are
|
|
17
20
|
* supplied via groups, which can be managed via the
|
|
18
|
-
* `vsphere.ComputeClusterVmGroup` and
|
|
19
|
-
* `vsphere.ComputeClusterHostGroup`
|
|
21
|
+
* [`vsphere.ComputeClusterVmGroup`][tf-vsphere-cluster-vm-group-resource] and
|
|
22
|
+
* [`vsphere.ComputeClusterHostGroup`][tf-vsphere-cluster-host-group-resource]
|
|
20
23
|
* resources.
|
|
21
24
|
*
|
|
25
|
+
* [tf-vsphere-cluster-vm-group-resource]: /docs/providers/vsphere/r/compute_cluster_vm_group.html
|
|
26
|
+
* [tf-vsphere-cluster-host-group-resource]: /docs/providers/vsphere/r/compute_cluster_host_group.html
|
|
27
|
+
*
|
|
22
28
|
* > **NOTE:** This resource requires vCenter and is not available on direct ESXi
|
|
23
29
|
* connections.
|
|
24
30
|
*
|
|
25
31
|
* ## Example Usage
|
|
26
32
|
*
|
|
27
33
|
* The example below creates a virtual machine in a cluster using the
|
|
28
|
-
* `vsphere.VirtualMachine` resource in a cluster
|
|
29
|
-
* looked up by the `vsphere.ComputeCluster`
|
|
34
|
+
* [`vsphere.VirtualMachine`][tf-vsphere-vm-resource] resource in a cluster
|
|
35
|
+
* looked up by the [`vsphere.ComputeCluster`][tf-vsphere-cluster-data-source]
|
|
30
36
|
* data source. It then creates a group with this virtual machine. It also creates
|
|
31
37
|
* a host group off of the host looked up via the
|
|
32
|
-
* `vsphere.Host` data source. Finally, this
|
|
38
|
+
* [`vsphere.Host`][tf-vsphere-host-data-source] data source. Finally, this
|
|
33
39
|
* virtual machine is configured to run specifically on that host via a
|
|
34
40
|
* `vsphere.ComputeClusterVmHostRule` resource.
|
|
35
41
|
*
|
|
42
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
43
|
+
* [tf-vsphere-host-data-source]: /docs/providers/vsphere/d/host.html
|
|
44
|
+
*
|
|
36
45
|
* > Note how `vmGroupName` and
|
|
37
46
|
* `affinityHostGroupName` are sourced off of the
|
|
38
47
|
* `name` attributes from the
|
|
39
|
-
* `vsphere.ComputeClusterVmGroup` and
|
|
40
|
-
* `vsphere.ComputeClusterHostGroup`
|
|
48
|
+
* [`vsphere.ComputeClusterVmGroup`][tf-vsphere-cluster-vm-group-resource] and
|
|
49
|
+
* [`vsphere.ComputeClusterHostGroup`][tf-vsphere-cluster-host-group-resource]
|
|
41
50
|
* resources. This is to ensure that the rule is not created before the groups
|
|
42
51
|
* exist, which may not possibly happen in the event that the names came from a
|
|
43
52
|
* "static" source such as a variable.
|
|
@@ -66,7 +75,7 @@ const utilities = require("./utilities");
|
|
|
66
75
|
* datacenterId: datacenter.id,
|
|
67
76
|
* }));
|
|
68
77
|
* const vm = new vsphere.VirtualMachine("vm", {
|
|
69
|
-
* name: "test",
|
|
78
|
+
* name: "pulumi-test",
|
|
70
79
|
* resourcePoolId: cluster.then(cluster => cluster.resourcePoolId),
|
|
71
80
|
* datastoreId: datastore.then(datastore => datastore.id),
|
|
72
81
|
* numCpus: 2,
|
|
@@ -81,18 +90,18 @@ const utilities = require("./utilities");
|
|
|
81
90
|
* }],
|
|
82
91
|
* });
|
|
83
92
|
* const clusterVmGroup = new vsphere.ComputeClusterVmGroup("cluster_vm_group", {
|
|
84
|
-
* name: "test-cluster-vm-group",
|
|
93
|
+
* name: "pulumi-test-cluster-vm-group",
|
|
85
94
|
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
86
95
|
* virtualMachineIds: [vm.id],
|
|
87
96
|
* });
|
|
88
97
|
* const clusterHostGroup = new vsphere.ComputeClusterHostGroup("cluster_host_group", {
|
|
89
|
-
* name: "test-cluster-vm-group",
|
|
98
|
+
* name: "pulumi-test-cluster-vm-group",
|
|
90
99
|
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
91
100
|
* hostSystemIds: [host.then(host => host.id)],
|
|
92
101
|
* });
|
|
93
102
|
* const clusterVmHostRule = new vsphere.ComputeClusterVmHostRule("cluster_vm_host_rule", {
|
|
94
103
|
* computeClusterId: cluster.then(cluster => cluster.id),
|
|
95
|
-
* name: "test-cluster-vm-host-rule",
|
|
104
|
+
* name: "pulumi-test-cluster-vm-host-rule",
|
|
96
105
|
* vmGroupName: clusterVmGroup.name,
|
|
97
106
|
* affinityHostGroupName: clusterHostGroup.name,
|
|
98
107
|
* });
|
|
@@ -101,22 +110,17 @@ const utilities = require("./utilities");
|
|
|
101
110
|
* ## Import
|
|
102
111
|
*
|
|
103
112
|
* An existing rule can be imported into this resource by supplying
|
|
104
|
-
*
|
|
105
113
|
* both the path to the cluster, and the name the rule. If the name or cluster is
|
|
106
|
-
*
|
|
107
114
|
* not found, or if the rule is of a different type, an error will be returned. An
|
|
108
|
-
*
|
|
109
115
|
* example is below:
|
|
110
116
|
*
|
|
111
117
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
112
118
|
*
|
|
113
119
|
* ```sh
|
|
114
|
-
*
|
|
115
|
-
* ```
|
|
116
|
-
*
|
|
120
|
+
* terraform import vsphere_compute_cluster_vm_host_rule.cluster_vm_host_rule \
|
|
117
121
|
* '{"compute_cluster_path": "/dc1/host/cluster1", \
|
|
118
|
-
*
|
|
119
122
|
* "name": "pulumi-test-cluster-vm-host-rule"}'
|
|
123
|
+
* ```
|
|
120
124
|
*/
|
|
121
125
|
class ComputeClusterVmHostRule extends pulumi.CustomResource {
|
|
122
126
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeClusterVmHostRule.js","sourceRoot":"","sources":["../computeClusterVmHostRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"computeClusterVmHostRule.js","sourceRoot":"","sources":["../computeClusterVmHostRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAA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Ac,CAAC,2BAA2B,CAAC,GAAG,IAAI,EAAE,yBAAyB,CAAC;YAC9E,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAlHL,4DAmHC;AArGG,gBAAgB;AACO,qCAAY,GAAG,iEAAiE,CAAC"}
|
|
@@ -1,4 +1,92 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* The `vsphere.ConfigurationProfile` resource can be used to configure profile-based host management on a vSphere compute cluster.
|
|
4
|
+
* The source for the configuration can either be a ESXi host that is part of the compute cluster or a JSON file, but not both at the same time.
|
|
5
|
+
*
|
|
6
|
+
* It is allowed to switch from one type of configuration source to the other at any time.
|
|
7
|
+
*
|
|
8
|
+
* Deleting a `vsphere.ConfigurationProfile` resource has no effect on the compute cluster. Once management via configuration
|
|
9
|
+
* profiles is turned ot it is not possible to disable it.
|
|
10
|
+
*
|
|
11
|
+
* > **NOTE:** This resource requires a vCenter 8 or higher and will not work on
|
|
12
|
+
* direct ESXi connections.
|
|
13
|
+
*
|
|
14
|
+
* ## Example Usage
|
|
15
|
+
*
|
|
16
|
+
* ### Creating a profile using an ESXi host as a reference
|
|
17
|
+
*
|
|
18
|
+
* The following example sets up a configuration profile on a compute cluster using one of its hosts as a reference
|
|
19
|
+
* and then propagates that configuration to two additional clusters.
|
|
20
|
+
*
|
|
21
|
+
* Note that this example assumes that the hosts across all three clusters are compatible with the source configuration.
|
|
22
|
+
* This includes but is not limited to their ESXi versions and hardware capabilities.
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
27
|
+
*
|
|
28
|
+
* const datacenter = vsphere.getDatacenter({
|
|
29
|
+
* name: "dc-01",
|
|
30
|
+
* });
|
|
31
|
+
* const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
32
|
+
* name: "cluster-01",
|
|
33
|
+
* datacenterId: datacenter.id,
|
|
34
|
+
* }));
|
|
35
|
+
* const cluster2 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
36
|
+
* name: "cluster-02",
|
|
37
|
+
* datacenterId: datacenter.id,
|
|
38
|
+
* }));
|
|
39
|
+
* const cluster3 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
40
|
+
* name: "cluster-03",
|
|
41
|
+
* datacenterId: datacenter.id,
|
|
42
|
+
* }));
|
|
43
|
+
* // This host is assumed to be part of "cluster-01"
|
|
44
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
45
|
+
* name: "esxi-01.example.com",
|
|
46
|
+
* datacenterId: datacenter.id,
|
|
47
|
+
* }));
|
|
48
|
+
* // Configure a profile on "cluster-01" using one of its hosts as a reference
|
|
49
|
+
* const profile1 = new vsphere.ConfigurationProfile("profile1", {
|
|
50
|
+
* clusterId: cluster1.then(cluster1 => cluster1.id),
|
|
51
|
+
* referenceHostId: host.then(host => host.id),
|
|
52
|
+
* });
|
|
53
|
+
* // Copy the configuration of "cluster-01" onto "cluster-02"
|
|
54
|
+
* const profile2 = new vsphere.ConfigurationProfile("profile2", {
|
|
55
|
+
* clusterId: cluster2.then(cluster2 => cluster2.id),
|
|
56
|
+
* configuration: profile1.configuration,
|
|
57
|
+
* });
|
|
58
|
+
* // Copy the configuration of "cluster-01" onto "cluster-03"
|
|
59
|
+
* const profile3 = new vsphere.ConfigurationProfile("profile3", {
|
|
60
|
+
* clusterId: cluster3.then(cluster3 => cluster3.id),
|
|
61
|
+
* configuration: profile1.configuration,
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ### Creating a profile using a configuration file
|
|
66
|
+
*
|
|
67
|
+
* This example sets up a configuration profile on a cluster by reading a configuration from a JSON
|
|
68
|
+
* file on the local filesystem. Reading files is natively supported by Terraform.
|
|
69
|
+
*
|
|
70
|
+
* ```typescript
|
|
71
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
72
|
+
* import * as std from "@pulumi/std";
|
|
73
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
74
|
+
*
|
|
75
|
+
* const datacenter = vsphere.getDatacenter({
|
|
76
|
+
* name: "dc-01",
|
|
77
|
+
* });
|
|
78
|
+
* const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
79
|
+
* name: "cluster-01",
|
|
80
|
+
* datacenterId: datacenter.id,
|
|
81
|
+
* }));
|
|
82
|
+
* const profile1 = new vsphere.ConfigurationProfile("profile1", {
|
|
83
|
+
* clusterId: cluster1.then(cluster1 => cluster1.id),
|
|
84
|
+
* configuration: std.index.file({
|
|
85
|
+
* input: "/path/to/cluster_config_1.json",
|
|
86
|
+
* }).result,
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
2
90
|
export declare class ConfigurationProfile extends pulumi.CustomResource {
|
|
3
91
|
/**
|
|
4
92
|
* Get an existing ConfigurationProfile resource's state with the given name, ID, and optional extra
|
package/configurationProfile.js
CHANGED
|
@@ -5,6 +5,94 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.ConfigurationProfile = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `vsphere.ConfigurationProfile` resource can be used to configure profile-based host management on a vSphere compute cluster.
|
|
10
|
+
* The source for the configuration can either be a ESXi host that is part of the compute cluster or a JSON file, but not both at the same time.
|
|
11
|
+
*
|
|
12
|
+
* It is allowed to switch from one type of configuration source to the other at any time.
|
|
13
|
+
*
|
|
14
|
+
* Deleting a `vsphere.ConfigurationProfile` resource has no effect on the compute cluster. Once management via configuration
|
|
15
|
+
* profiles is turned ot it is not possible to disable it.
|
|
16
|
+
*
|
|
17
|
+
* > **NOTE:** This resource requires a vCenter 8 or higher and will not work on
|
|
18
|
+
* direct ESXi connections.
|
|
19
|
+
*
|
|
20
|
+
* ## Example Usage
|
|
21
|
+
*
|
|
22
|
+
* ### Creating a profile using an ESXi host as a reference
|
|
23
|
+
*
|
|
24
|
+
* The following example sets up a configuration profile on a compute cluster using one of its hosts as a reference
|
|
25
|
+
* and then propagates that configuration to two additional clusters.
|
|
26
|
+
*
|
|
27
|
+
* Note that this example assumes that the hosts across all three clusters are compatible with the source configuration.
|
|
28
|
+
* This includes but is not limited to their ESXi versions and hardware capabilities.
|
|
29
|
+
*
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
32
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
33
|
+
*
|
|
34
|
+
* const datacenter = vsphere.getDatacenter({
|
|
35
|
+
* name: "dc-01",
|
|
36
|
+
* });
|
|
37
|
+
* const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
38
|
+
* name: "cluster-01",
|
|
39
|
+
* datacenterId: datacenter.id,
|
|
40
|
+
* }));
|
|
41
|
+
* const cluster2 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
42
|
+
* name: "cluster-02",
|
|
43
|
+
* datacenterId: datacenter.id,
|
|
44
|
+
* }));
|
|
45
|
+
* const cluster3 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
46
|
+
* name: "cluster-03",
|
|
47
|
+
* datacenterId: datacenter.id,
|
|
48
|
+
* }));
|
|
49
|
+
* // This host is assumed to be part of "cluster-01"
|
|
50
|
+
* const host = datacenter.then(datacenter => vsphere.getHost({
|
|
51
|
+
* name: "esxi-01.example.com",
|
|
52
|
+
* datacenterId: datacenter.id,
|
|
53
|
+
* }));
|
|
54
|
+
* // Configure a profile on "cluster-01" using one of its hosts as a reference
|
|
55
|
+
* const profile1 = new vsphere.ConfigurationProfile("profile1", {
|
|
56
|
+
* clusterId: cluster1.then(cluster1 => cluster1.id),
|
|
57
|
+
* referenceHostId: host.then(host => host.id),
|
|
58
|
+
* });
|
|
59
|
+
* // Copy the configuration of "cluster-01" onto "cluster-02"
|
|
60
|
+
* const profile2 = new vsphere.ConfigurationProfile("profile2", {
|
|
61
|
+
* clusterId: cluster2.then(cluster2 => cluster2.id),
|
|
62
|
+
* configuration: profile1.configuration,
|
|
63
|
+
* });
|
|
64
|
+
* // Copy the configuration of "cluster-01" onto "cluster-03"
|
|
65
|
+
* const profile3 = new vsphere.ConfigurationProfile("profile3", {
|
|
66
|
+
* clusterId: cluster3.then(cluster3 => cluster3.id),
|
|
67
|
+
* configuration: profile1.configuration,
|
|
68
|
+
* });
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* ### Creating a profile using a configuration file
|
|
72
|
+
*
|
|
73
|
+
* This example sets up a configuration profile on a cluster by reading a configuration from a JSON
|
|
74
|
+
* file on the local filesystem. Reading files is natively supported by Terraform.
|
|
75
|
+
*
|
|
76
|
+
* ```typescript
|
|
77
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
78
|
+
* import * as std from "@pulumi/std";
|
|
79
|
+
* import * as vsphere from "@pulumi/vsphere";
|
|
80
|
+
*
|
|
81
|
+
* const datacenter = vsphere.getDatacenter({
|
|
82
|
+
* name: "dc-01",
|
|
83
|
+
* });
|
|
84
|
+
* const cluster1 = datacenter.then(datacenter => vsphere.getComputeCluster({
|
|
85
|
+
* name: "cluster-01",
|
|
86
|
+
* datacenterId: datacenter.id,
|
|
87
|
+
* }));
|
|
88
|
+
* const profile1 = new vsphere.ConfigurationProfile("profile1", {
|
|
89
|
+
* clusterId: cluster1.then(cluster1 => cluster1.id),
|
|
90
|
+
* configuration: std.index.file({
|
|
91
|
+
* input: "/path/to/cluster_config_1.json",
|
|
92
|
+
* }).result,
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
8
96
|
class ConfigurationProfile extends pulumi.CustomResource {
|
|
9
97
|
/**
|
|
10
98
|
* Get an existing ConfigurationProfile resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationProfile.js","sourceRoot":"","sources":["../configurationProfile.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IA6BD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KA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CAAC;YACtD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA5EL,oDA6EC;AA/DG,gBAAgB;AACO,iCAAY,GAAG,yDAAyD,CAAC"}
|
package/contentLibrary.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
*
|
|
11
11
|
* The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
12
12
|
*
|
|
13
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
14
|
+
*
|
|
13
15
|
* ```typescript
|
|
14
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
17
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -60,7 +62,7 @@ import * as outputs from "./types/output";
|
|
|
60
62
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
61
63
|
*
|
|
62
64
|
* ```sh
|
|
63
|
-
*
|
|
65
|
+
* terraform import vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
64
66
|
* ```
|
|
65
67
|
*/
|
|
66
68
|
export declare class ContentLibrary extends pulumi.CustomResource {
|
|
@@ -92,7 +94,7 @@ export declare class ContentLibrary extends pulumi.CustomResource {
|
|
|
92
94
|
*/
|
|
93
95
|
readonly publication: pulumi.Output<outputs.ContentLibraryPublication>;
|
|
94
96
|
/**
|
|
95
|
-
* The managed object reference ID of the datastore on which to store the content library items.
|
|
97
|
+
* The [managed object reference ID][docs-about-morefs] of the datastore on which to store the content library items.
|
|
96
98
|
*/
|
|
97
99
|
readonly storageBackings: pulumi.Output<string[]>;
|
|
98
100
|
/**
|
|
@@ -125,7 +127,7 @@ export interface ContentLibraryState {
|
|
|
125
127
|
*/
|
|
126
128
|
publication?: pulumi.Input<inputs.ContentLibraryPublication>;
|
|
127
129
|
/**
|
|
128
|
-
* The managed object reference ID of the datastore on which to store the content library items.
|
|
130
|
+
* The [managed object reference ID][docs-about-morefs] of the datastore on which to store the content library items.
|
|
129
131
|
*/
|
|
130
132
|
storageBackings?: pulumi.Input<pulumi.Input<string>[]>;
|
|
131
133
|
/**
|
|
@@ -150,7 +152,7 @@ export interface ContentLibraryArgs {
|
|
|
150
152
|
*/
|
|
151
153
|
publication?: pulumi.Input<inputs.ContentLibraryPublication>;
|
|
152
154
|
/**
|
|
153
|
-
* The managed object reference ID of the datastore on which to store the content library items.
|
|
155
|
+
* The [managed object reference ID][docs-about-morefs] of the datastore on which to store the content library items.
|
|
154
156
|
*/
|
|
155
157
|
storageBackings: pulumi.Input<pulumi.Input<string>[]>;
|
|
156
158
|
/**
|
package/contentLibrary.js
CHANGED
|
@@ -14,6 +14,8 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* The following example creates a publishing content library using the datastore named `publisher-datastore` as the storage backing.
|
|
16
16
|
*
|
|
17
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
18
|
+
*
|
|
17
19
|
* ```typescript
|
|
18
20
|
* import * as pulumi from "@pulumi/pulumi";
|
|
19
21
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -64,7 +66,7 @@ const utilities = require("./utilities");
|
|
|
64
66
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
65
67
|
*
|
|
66
68
|
* ```sh
|
|
67
|
-
*
|
|
69
|
+
* terraform import vsphere_content_library publisher_content_library f42a4b25-844a-44ec-9063-a3a5e9cc88c7
|
|
68
70
|
* ```
|
|
69
71
|
*/
|
|
70
72
|
class ContentLibrary extends pulumi.CustomResource {
|
package/contentLibrary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentLibrary.js","sourceRoot":"","sources":["../contentLibrary.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"contentLibrary.js","sourceRoot":"","sources":["../contentLibrary.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IA+BD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;SACxD;aAAM;YACH,MAAM,IAAI,GAAG,WAA6C,CAAC;YAC3D,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAhFL,wCAiFC;AAnEG,gBAAgB;AACO,2BAAY,GAAG,6CAA6C,CAAC"}
|
package/contentLibraryItem.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* The first example below imports an OVF Template to a content
|
|
11
11
|
* library.
|
|
12
12
|
*
|
|
13
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
14
|
+
*
|
|
13
15
|
* ```typescript
|
|
14
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
17
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -77,13 +79,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
77
79
|
* ## Import
|
|
78
80
|
*
|
|
79
81
|
* An existing content library item can be imported into this resource by
|
|
80
|
-
*
|
|
81
82
|
* supplying the content library ID. An example is below:
|
|
82
83
|
*
|
|
83
84
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
84
85
|
*
|
|
85
86
|
* ```sh
|
|
86
|
-
*
|
|
87
|
+
* terraform import vsphere_content_library_item iso-linux-ubuntu-server-lts xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
87
88
|
* ```
|
|
88
89
|
*/
|
|
89
90
|
export declare class ContentLibraryItem extends pulumi.CustomResource {
|
package/contentLibraryItem.js
CHANGED
|
@@ -16,6 +16,8 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* The first example below imports an OVF Template to a content
|
|
17
17
|
* library.
|
|
18
18
|
*
|
|
19
|
+
* [tf-vsphere-vm-resource]: /docs/providers/vsphere/r/virtual_machine.html
|
|
20
|
+
*
|
|
19
21
|
* ```typescript
|
|
20
22
|
* import * as pulumi from "@pulumi/pulumi";
|
|
21
23
|
* import * as vsphere from "@pulumi/vsphere";
|
|
@@ -83,13 +85,12 @@ const utilities = require("./utilities");
|
|
|
83
85
|
* ## Import
|
|
84
86
|
*
|
|
85
87
|
* An existing content library item can be imported into this resource by
|
|
86
|
-
*
|
|
87
88
|
* supplying the content library ID. An example is below:
|
|
88
89
|
*
|
|
89
90
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
90
91
|
*
|
|
91
92
|
* ```sh
|
|
92
|
-
*
|
|
93
|
+
* terraform import vsphere_content_library_item iso-linux-ubuntu-server-lts xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
|
93
94
|
* ```
|
|
94
95
|
*/
|
|
95
96
|
class ContentLibraryItem extends pulumi.CustomResource {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentLibraryItem.js","sourceRoot":"","sources":["../contentLibraryItem.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"contentLibraryItem.js","sourceRoot":"","sources":["../contentLibraryItem.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAoCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AAvFL,gDAwFC;AA1EG,gBAAgB;AACO,+BAAY,GAAG,qDAAqD,CAAC"}
|
package/customAttribute.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
-
* This example creates a custom attribute named `test-attribute`. The
|
|
17
|
+
* This example creates a custom attribute named `terraform-test-attribute`. The
|
|
18
18
|
* resulting custom attribute can be assigned to VMs only.
|
|
19
19
|
*
|
|
20
20
|
* ```typescript
|
|
@@ -22,7 +22,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
22
22
|
* import * as vsphere from "@pulumi/vsphere";
|
|
23
23
|
*
|
|
24
24
|
* const attribute = new vsphere.CustomAttribute("attribute", {
|
|
25
|
-
* name: "test-attribute",
|
|
25
|
+
* name: "pulumi-test-attribute",
|
|
26
26
|
* managedObjectType: "VirtualMachine",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
@@ -30,7 +30,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
30
30
|
* ## Import
|
|
31
31
|
*
|
|
32
32
|
* An existing custom attribute can be imported into this resource
|
|
33
|
-
*
|
|
34
33
|
* via its name, using the following command:
|
|
35
34
|
*
|
|
36
35
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
package/customAttribute.js
CHANGED
|
@@ -20,7 +20,7 @@ const utilities = require("./utilities");
|
|
|
20
20
|
*
|
|
21
21
|
* ## Example Usage
|
|
22
22
|
*
|
|
23
|
-
* This example creates a custom attribute named `test-attribute`. The
|
|
23
|
+
* This example creates a custom attribute named `terraform-test-attribute`. The
|
|
24
24
|
* resulting custom attribute can be assigned to VMs only.
|
|
25
25
|
*
|
|
26
26
|
* ```typescript
|
|
@@ -28,7 +28,7 @@ const utilities = require("./utilities");
|
|
|
28
28
|
* import * as vsphere from "@pulumi/vsphere";
|
|
29
29
|
*
|
|
30
30
|
* const attribute = new vsphere.CustomAttribute("attribute", {
|
|
31
|
-
* name: "test-attribute",
|
|
31
|
+
* name: "pulumi-test-attribute",
|
|
32
32
|
* managedObjectType: "VirtualMachine",
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
@@ -36,7 +36,6 @@ const utilities = require("./utilities");
|
|
|
36
36
|
* ## Import
|
|
37
37
|
*
|
|
38
38
|
* An existing custom attribute can be imported into this resource
|
|
39
|
-
*
|
|
40
39
|
* via its name, using the following command:
|
|
41
40
|
*
|
|
42
41
|
* [docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
package/customAttribute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customAttribute.js","sourceRoot":"","sources":["../customAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"customAttribute.js","sourceRoot":"","sources":["../customAttribute.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAqBD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA7DL,0CA8DC;AAhDG,gBAAgB;AACO,4BAAY,GAAG,+CAA+C,CAAC"}
|
package/datacenter.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
5
5
|
*
|
|
6
6
|
* ## Example Usage
|
|
7
7
|
*
|
|
8
|
-
* ###
|
|
8
|
+
* ### S
|
|
9
|
+
*
|
|
10
|
+
* **Create datacenter on the root folder:**
|
|
9
11
|
*
|
|
10
12
|
* ```typescript
|
|
11
13
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -14,7 +16,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
16
|
* const prodDatacenter = new vsphere.Datacenter("prod_datacenter", {name: "my_prod_datacenter"});
|
|
15
17
|
* ```
|
|
16
18
|
*
|
|
17
|
-
*
|
|
19
|
+
* **Create datacenter on a subfolder:**
|
|
18
20
|
*
|
|
19
21
|
* ```typescript
|
|
20
22
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -29,7 +31,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
29
31
|
* ## Import
|
|
30
32
|
*
|
|
31
33
|
* An existing datacenter can be imported into this resource
|
|
32
|
-
*
|
|
33
34
|
* via supplying the full path to the datacenter. An example is below:
|
|
34
35
|
*
|
|
35
36
|
* [docs-import]: /docs/import/index.html
|
|
@@ -76,7 +77,7 @@ export declare class Datacenter extends pulumi.CustomResource {
|
|
|
76
77
|
*/
|
|
77
78
|
readonly folder: pulumi.Output<string | undefined>;
|
|
78
79
|
/**
|
|
79
|
-
* Managed object ID of this datacenter.
|
|
80
|
+
* [Managed object ID][docs-about-morefs] of this datacenter.
|
|
80
81
|
*/
|
|
81
82
|
readonly moid: pulumi.Output<string>;
|
|
82
83
|
/**
|
|
@@ -85,7 +86,10 @@ export declare class Datacenter extends pulumi.CustomResource {
|
|
|
85
86
|
*/
|
|
86
87
|
readonly name: pulumi.Output<string>;
|
|
87
88
|
/**
|
|
88
|
-
* The IDs of any tags to attach to this resource.
|
|
89
|
+
* The IDs of any tags to attach to this resource. See
|
|
90
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
91
|
+
*
|
|
92
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
89
93
|
*/
|
|
90
94
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
91
95
|
/**
|
|
@@ -121,7 +125,7 @@ export interface DatacenterState {
|
|
|
121
125
|
*/
|
|
122
126
|
folder?: pulumi.Input<string>;
|
|
123
127
|
/**
|
|
124
|
-
* Managed object ID of this datacenter.
|
|
128
|
+
* [Managed object ID][docs-about-morefs] of this datacenter.
|
|
125
129
|
*/
|
|
126
130
|
moid?: pulumi.Input<string>;
|
|
127
131
|
/**
|
|
@@ -130,7 +134,10 @@ export interface DatacenterState {
|
|
|
130
134
|
*/
|
|
131
135
|
name?: pulumi.Input<string>;
|
|
132
136
|
/**
|
|
133
|
-
* The IDs of any tags to attach to this resource.
|
|
137
|
+
* The IDs of any tags to attach to this resource. See
|
|
138
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
139
|
+
*
|
|
140
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
134
141
|
*/
|
|
135
142
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
136
143
|
}
|
|
@@ -163,7 +170,10 @@ export interface DatacenterArgs {
|
|
|
163
170
|
*/
|
|
164
171
|
name?: pulumi.Input<string>;
|
|
165
172
|
/**
|
|
166
|
-
* The IDs of any tags to attach to this resource.
|
|
173
|
+
* The IDs of any tags to attach to this resource. See
|
|
174
|
+
* [here][docs-applying-tags] for a reference on how to apply tags.
|
|
175
|
+
*
|
|
176
|
+
* [docs-applying-tags]: /docs/providers/vsphere/r/tag.html#using-tags-in-a-supported-resource
|
|
167
177
|
*/
|
|
168
178
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
179
|
}
|
package/datacenter.js
CHANGED
|
@@ -11,7 +11,9 @@ const utilities = require("./utilities");
|
|
|
11
11
|
*
|
|
12
12
|
* ## Example Usage
|
|
13
13
|
*
|
|
14
|
-
* ###
|
|
14
|
+
* ### S
|
|
15
|
+
*
|
|
16
|
+
* **Create datacenter on the root folder:**
|
|
15
17
|
*
|
|
16
18
|
* ```typescript
|
|
17
19
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -20,7 +22,7 @@ const utilities = require("./utilities");
|
|
|
20
22
|
* const prodDatacenter = new vsphere.Datacenter("prod_datacenter", {name: "my_prod_datacenter"});
|
|
21
23
|
* ```
|
|
22
24
|
*
|
|
23
|
-
*
|
|
25
|
+
* **Create datacenter on a subfolder:**
|
|
24
26
|
*
|
|
25
27
|
* ```typescript
|
|
26
28
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -35,7 +37,6 @@ const utilities = require("./utilities");
|
|
|
35
37
|
* ## Import
|
|
36
38
|
*
|
|
37
39
|
* An existing datacenter can be imported into this resource
|
|
38
|
-
*
|
|
39
40
|
* via supplying the full path to the datacenter. An example is below:
|
|
40
41
|
*
|
|
41
42
|
* [docs-import]: /docs/import/index.html
|
package/datacenter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datacenter.js","sourceRoot":"","sources":["../datacenter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"datacenter.js","sourceRoot":"","sources":["../datacenter.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IA4CD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;YAC7D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IA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