-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e52377f
commit 1b5e2fe
Showing
63 changed files
with
3,399 additions
and
3,745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ESXI_HOST=<esxi host> | ||
ESXI_USERNAME=<esxi username> | ||
ESXI_PASSWORD=<esxi password> | ||
ESXI_SSH_PORT=22 | ||
ESXI_SSL_PORT=443 | ||
ESXI_OVFTOOL_LOCATION=<data-store-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 01_simple_virtual_machine_nodejs | ||
runtime: nodejs | ||
description: An esxi simple virtual machine example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; | ||
|
||
let vm: esxi.VirtualMachine; | ||
vm = new esxi.VirtualMachine("vm-test", { | ||
diskStore: "nvme-ssd-datastore", | ||
networkInterfaces: [ | ||
{ | ||
virtualNetwork: "default" | ||
} | ||
] | ||
}); | ||
|
||
export const id = vm.id; | ||
export const name = vm.name; | ||
export const os = vm.os; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "simple-virtual-machine-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
examples/02_cloned_virtual_machine_complete_build/nodejs/Pulumi.test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
3 changes: 3 additions & 0 deletions
3
examples/02_cloned_virtual_machine_complete_build/nodejs/Pulumi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 02_cloned_virtual_machine_complete_build_nodejs | ||
runtime: nodejs | ||
description: An esxi cloned virtual machine complete build example |
1 change: 1 addition & 0 deletions
1
examples/02_cloned_virtual_machine_complete_build/nodejs/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
10 changes: 10 additions & 0 deletions
10
examples/02_cloned_virtual_machine_complete_build/nodejs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "cloned-virtual-machine-complete-build-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
examples/03_resource_pools_additional_storage/nodejs/Pulumi.test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
3 changes: 3 additions & 0 deletions
3
examples/03_resource_pools_additional_storage/nodejs/Pulumi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 03_resource_pools_additional_storage_nodejs | ||
runtime: nodejs | ||
description: An esxi simple virtual machine example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
10 changes: 10 additions & 0 deletions
10
examples/03_resource_pools_additional_storage/nodejs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "resource-pools-additional-storage-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 04_core_os_and_ignition_nodejs | ||
runtime: nodejs | ||
description: An esxi CoreOS and Ignition example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "core-os-and-ignition-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 05_cloud_init_and_templates_nodejs | ||
runtime: nodejs | ||
description: An esxi cloud init and templates usage example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "cloud-init-and-templates-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 06_ovf_properties_nodejs | ||
runtime: nodejs | ||
description: An esxi ovf properties usage example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "ovf-properties-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 07_networking_nodejs | ||
runtime: nodejs | ||
description: An esxi networking example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
4 changes: 2 additions & 2 deletions
4
examples/simple/package.json → examples/07_networking/nodejs/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: 08_networking_cloud_init_nodejs | ||
runtime: nodejs | ||
description: An esxi networking cloud init example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import * as esxi from "@edmondshtogu/pulumi-esxi-native"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "networking-cloud-init-typescript", | ||
"version": "0.0.1", | ||
"devDependencies": { | ||
"@types/node": "latest" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package examples | ||
|
||
import ( | ||
"github.com/pulumi/pulumi/pkg/v3/testing/integration" | ||
"path/filepath" | ||
"testing" | ||
) | ||
|
||
func Test01SimpleVirtualMachineTs(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "01_simple_virtual_machine", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test02ClonedVirtualMachineCompleteBuild(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "02_cloned_virtual_machine_complete_build", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test03ResourcePoolsAdditionalStorage(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "03_resource_pools_additional_storage", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test04CoreOSAndIgnition(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "04_core_os_and_ignition", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test05CloudInitAndTemplates(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "05_cloud_init_and_templates", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test06OVFProperties(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "06_ovf_properties", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test07Networking(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "07_networking", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func Test08NetworkingCloudInit(t *testing.T) { | ||
test := getNodeJSBaseOptions(t). | ||
With(integration.ProgramTestOptions{ | ||
Dir: filepath.Join(getCwd(t), "08_networking_cloud_init", "nodejs"), | ||
}) | ||
|
||
integration.ProgramTest(t, &test) | ||
} | ||
|
||
func getNodeJSBaseOptions(t *testing.T) integration.ProgramTestOptions { | ||
base := getBaseOptions(t) | ||
baseJS := base.With(integration.ProgramTestOptions{ | ||
Dependencies: []string{ | ||
"@edmondshtogu/pulumi-esxi-native", | ||
}, | ||
}) | ||
|
||
return baseJS | ||
} |
Oops, something went wrong.