Created
February 4, 2019 21:42
-
-
Save johnybradshaw/25cace8bfbbcdf082a6960a13b57ea54 to your computer and use it in GitHub Desktop.
Building two AIX 7.2 LPARs in Skytap using Terraform
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 "skytap" { | |
username = "${var.skytap_username}" | |
api_token = "${var.skytap_api_token}" | |
} | |
# Create a new environment | |
resource "skytap_environment" "two_lpar" { | |
template_id = "1498907" | |
name = "Two Node LPAR environment" | |
description = "Two deployed AIX LPARs with an iSCSI network" | |
} | |
# Create a new network | |
resource "skytap_network" "network" { | |
environment_id = "${skytap_environment.two_lpar.id}" | |
name = "iSCSI" | |
domain = "iscsi" | |
subnet = "192.168.1.0/24" | |
gateway = "192.168.1.254" | |
tunnelable = false | |
} | |
# Create a new vm | |
resource "skytap_vm" "lpar1" { | |
template_id = 1498907 | |
vm_id = 39131417 | |
environment_id = "${skytap_environment.two_lpar.id}" | |
name = "Node 2 - AIX 7.2 TL3 SP2" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment