Skip to content

ratelbee/openstack-instance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example config

module "vm" {
#=========BASE===========
source         = "git::https://github.com/ratelbee/openstack-instance.git"
instance_count = 3
index_start    = 1
image_id       = "17e24307-0823-4130-a88d-046da28ca98f"
#=======RESOURCES========
flavor       = "t1.micro"
storage_size = 20
#========NETWORK=========
net_name   = "your_deicideful_net"
#sec_groups = ["default"] #set a security groups
#=========HOST==========
fqdn      = "deicide.local"
time_zone = "Europe/Moscow"
district  = "dc1"
hostname  = "cluster"
#index_start = "4" #from where the indexing start
#custom_template = "./custom.tpl" #external template
#module_template = "alma" # templates builtin module
#=========USER CONFIGURATION==========
admin           = "glen"
ssh_keys        =  file(./id_rsa.pub")
ssh_private_key = "./id_rsa"
}

example output

output "instance" {
  value = {
    ip = module.vm.address
    storage_size = module.vm.storage[0].0.volume_size
  }
}

example provider configuration

terraform {
  required_providers {
    openstack = {
      source = "terraform-provider-openstack/openstack"
      version = ">=1.51.1"
    }
  }
  required_version = ">= 1.1.19"
}

provider "openstack" {
  auth_url    = "https://deicide.cloud.local:5000/v3"
  user_domain_name = "default"
  user_name   = "glen-benton"
  password    = "your_decapitated_cloud_password"
  region = "RegionOne"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published