Skip to content

cloud-design-dev/ibmcloud-classic-no-os-terraform

Repository files navigation

Example for Deploying a NO OS Bare Metal Server on Classic

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

Requirements

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.

Deploy Resources

  1. Clone repository

    git clone https://github.com/cloud-design-dev/ibmcloud-classic-no-os-terraform.git
    cd ibmcloud-classic-no-os-terraform
  2. Move and update tfvars file. Note: The gitignore file in this repository will not track your tfvars file so if you are running this in a CI/CD system you will have to provide the variables at runtime

    cp terraform-tfvars-examples terraform.tfvars
  3. Open terraform.tfvars in your text editor and fill in the required variables. See the inputs file for the variable definitions and types.

  4. 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
  5. Deploy classic resources

    terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages