GithubHelp home page GithubHelp logo

nutanixdev / terraform_blog Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 12.0 13 KB

Nutanix Terraform Provider Examples

Home Page: https://www.nutanix.dev/2021/04/20/using-the-nutanix-terraform-provider/

HCL 100.00%
nutanix-terraform-provider nutanix virtual-machine ahv terraform terraform-provider iac automation

terraform_blog's Introduction

Terraform Examples with the Nutanix Terraform Provider

The Terraform configurations in this repository demonstrate how to use the Nutanix Terraform provider.

Main concepts covered in the intro/ directory:

  • Adding nutanix as a required provider
  • Creating a Nutanix AHV image that can be used as the base disk for a Nutanix AHV-hosted virtual machine
  • Specification of a Nutanix AHV-hosted virtual machine, including custom virtual resource spec (vCPU, vRAM, storage, networking)
  • Using Terraform variables to specify Nutanix Prism Central connection parameters:
    • Prism Central endpoint/IP address
    • Credentials
    • Cluster name for virtual machine deployment
    • Subnet name for new virtual machine network connection
  • Please see the related Nutanix.dev blog and video for a guided walk-through!

Usage

  • Clone this repository to your local system:

    git clone https://github.com/nutanixdev/terraform_blog.git
  • Change to the subdirectory and edit the terraform.tfvars variables for your environment

  • Initialise, plan, and apply the Terraform configuration. For example:

    terraform init
    terraform validate
    terraform plan
    terraform apply
    # terraform destroy # optional, when finished

Disclaimer

Please see the .disclaimer file distributed with this repository.

terraform_blog's People

Contributors

digitalformula avatar gabybeitler avatar mlavi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.