Skip to content

railcp/tf-nrec-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf-nrec-node

Terraform module for a NREC instance

Require terraform version >= 1.0

Example

main.tf:

module "node" {
  source = "git::https://github.com/raykrist/tf-nrec-node.git"

  name              = "test"
  node_name         = "my-instance"
  region            = "bgo"
  node_count        = 2
  ssh_public_key    = "~/.ssh/id_rsa.pub"
  allow_ssh_from_v6 = ["2001:700:200::/48"]
  allow_ssh_from_v4 = ["129.177.0.0/16"]
  network           = "IPv6"
  flavor            = "m1.medium"
  image_name        = "GOLD Ubuntu 20.04 LTS"
  image_user        = "ubuntu" 
  volume_size       = 10
}

output.tf:

output "ansible_inventory_v6" {
  value = module.node.inventory_v6
}

Run:

source openrc
terraform init
terraform apply
terraform output -raw ansible_inventory_v6 > ansible_inventory

About

Terraform module to manage a NREC instance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%