This code will create the following resources:
- New Public and Private VLANs for BM and Virtual instances
- Bare Metal hosts with NO_OS (OS image would be loaded via IPMI ISO)
- Juniper vSRX deployed as frontend for BM/Virtual compute hosts
Name | Description |
---|---|
Classic IaaS API Key | Classic IaaS API Key with permissions to deploy and manage infrastructure |
Classic IaaS Username | Classic IaaS Username with permissions to deploy and manage infrastructure |
Terraform | Terraform installed locally (Needed for local deployment) |
(Optional) IBM Cloud CLI | IBM Cloud CLI installed (Needed for local deployment) |
If you don't have Terraform or the IBM Cloud CLI installed locally, you can use IBM Cloud Shell to deploy the resources.
-
Clone repository
git clone https://github.com/cloud-design-dev/ibmcloud-classic-no-os-terraform.git cd ibmcloud-classic-no-os-terraform
-
Move and update
tfvars
file. Note: The gitignore file in this repository will not track yourtfvars
file so if you are running this in a CI/CD system you will have to provide the variables at runtimecp terraform-tfvars-examples terraform.tfvars
-
Open
terraform.tfvars
in your text editor and fill in the required variables. See the inputs file for the variable definitions and types. -
Intitialize Terraform and create deployment plan If everything is configured properly you can now move on to initializing Terraform and running a plan to see the proposed deployment
terraform init terraform plan -out default.tfplan
-
Deploy classic resources
terraform apply