This repo contains the Terraform, Ansible, and Capistrano configurations to deploy a static Jekyll site to multiple instances behind a LoadBalancer.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
455 B

resource "linode_instance" "site-vm" {
count = length(var.app_servers)
label = "${var.site}-app${count.index}"
tags = [
"${var.site}-app${count.index}"
]
region = var.region
private_ip = true
type = var.app_servers[count.index].type
image = var.app_servers[count.index].image
authorized_keys = [
linode_sshkey.main_key.ssh_key
]
}
output "linode_instance_ip_address" {
value = linode_instance.site-vm.*.ipv4
}