Skip to content

Public documentation for boltopspro/terraform-google-vm

License

Notifications You must be signed in to change notification settings

boltops-pro-docs/terraform-google-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This repo contains only the documentation for the private BoltsOps Pro repo code. Original file: https://github.com/boltopspro/terraform-google-vm/blob/master/README.md The docs are publish so they are available for interested customers. For access to the source code, you must be a paying BoltOps Pro subscriber. If are interested, you can contact us at contact@boltops.com or https://www.boltops.com

VM Demos

Configure tfvars for the vm stack.

app/stacks/vm/tfvars
└── dev
    ├── base.tfvars
    ├── ubuntu.tfvars
    └── windows.tfvars

The tfvars structure leverages the Terraspace Instance Option to use the same code to create different VM servers.

We'll create an example 1) windows and 2) ubuntu server

terraspace up vm -i ubuntu
terraspace up vm -i windows

Add more tfvars files to create more stateful VM servers with different settings.

base.tfvars instance option

The way the instance optoin is being used in the tfvars is worth nothing. The base.tfvars file makes use options[:instance] to set the name of the instance.

app/stacks/vm/tfvars/dev/base.tfvars

name        = "<%= options[:instance] || "vm" %>"

This means the instance name will match the -i ubuntu option passed in the CLI.

About

Public documentation for boltopspro/terraform-google-vm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published