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
function Switch-BgpFilterAction { | |
param( | |
[string]$edgeName, | |
[Parameter(Mandatory=$true)][string]$filterNetwork | |
) | |
if($edgeName) { | |
$edges = Get-NsxEdge -Name $edgeName | |
} else { | |
$edges = Get-NsxEdge | |
} |
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
formatVersion: 1 | |
inputs: | |
user: | |
type: string | |
sshkey: | |
type: string | |
resources: | |
Cloud_Machine_1: | |
type: Cloud.Machine | |
properties: |
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
// Build the Vault URL | |
url = "https://" + vaultServer + ":" + vaultPort; | |
// Import the Vault SSL certificate | |
var ld = Config.getKeystores().getImportCAFromUrlAction(); | |
var model = ld.getModel(); | |
model.value = url; | |
error = ld.execute(); | |
// Create REST call |
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
// Build the Vault URL | |
url = "https://" + vaultServer + ":" + vaultPort; | |
// Import SSL certificate | |
var ld = Config.getKeystores().getImportCAFromUrlAction(); | |
var model = ld.getModel(); | |
model.value = url; | |
var error = ld.execute(); | |
// Create REST call |
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
var vaultUser = "vra" | |
var vaultPassword = "VMware1!" | |
var vaultServer = "vault.definit.local" | |
var vaultPort = "8200" | |
var vaultSecretPath = "vra/ssh" | |
var vaultToken = System.getModule("local.definit.vault").getVaultToken(vaultUser,vaultPassword,vaultServer,vaultPort); | |
var vaultData = System.getModule("local.definit.vault").getVaultSecretData(vaultServer,vaultPort,vaultSecretPath,vaultToken); | |
var userNames = new Array(); |
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
if(userName == "" || userName == null) { | |
return "Please select a user..." | |
} | |
var vaultUser = "vra" | |
var vaultPassword = "VMware1!" | |
var vaultServer = "vault.definit.local" | |
var vaultPort = "8200" | |
var vaultSecretPath = "vra/ssh" | |
var vaultToken = System.getModule("local.definit.vault").getVaultToken(vaultUser,vaultPassword,vaultServer,vaultPort); |
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
mkdir -p ~/.terraform.d/plugins | |
wget https://github.com/vmware/terraform-provider-vra/releases/download/v0.1.8/terraform-provider-vra-darwin_amd64-v0.1.8.tgz | |
tar xvf terraform-provider-vra-darwin_amd64-v0.1.8.tgz | |
mv terraform-provider-vra ~/.terraform.d/plugins |
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
provider vra { | |
url = var.vra_url | |
refresh_token = var.vra_refresh_token | |
} |
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
resource "vra_cloud_account_aws" "this" { | |
name = "AWS Cloud Account" | |
description = "AWS Cloud Account configured by Terraform" | |
access_key = var.aws_access_key | |
secret_key = var.aws_secret_key | |
regions = ["us-east-1", "us-west-1"] | |
tags { | |
key = "cloud" | |
value = "aws" |
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
provider vra { | |
url = var.vra_url | |
refresh_token = var.vra_refresh_token | |
} | |
# Set up the Cloud Account | |
resource "vra_cloud_account_aws" "this" { | |
name = "AWS Cloud Account" | |
description = "AWS Cloud Account configured by Terraform" | |
access_key = var.aws_access_key |
OlderNewer