Skip to content

dimao/terraform-consul-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

consul-cluster

Configuration for consul cluster deployment with automatic SaltStack provision

Usage Example:

terraform apply -var='vsphere_user=user' -var='vsphere_server=vcsa' -var='vsphere_password=password'

main.tf:

   module "virtual-machine" {
     source                = "git::https:// gitlab.intes.by/terraform/      vsphere-virtual-machine.git"
     datacenter            = "its-dc"
     datastore             = "vmstorage"
     template_name         = "centos-golden"
     template_os_family    = "linux"
     network               = "VM Network"
     resource_pool         = "cl1/Resources"

     vm_count              = "3"
     vm_name_prefix        = "consul"
     num_cpus              = "2"
     memory                = "1024"

     provision             = "true"
     private_key_path      = "~/.ssh/id_rsa"
     provision_script_path = "provision.sh"
     tag_name              = "consul-server"
   }

provision.sh:

Define SALT_VERSION and BOOTSTRAP_SALT_CHECKSUM from salt-bootstrap GitHub

About

Configuration for consul cluster deployment with automatic SaltStack provision

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published