infra_code

infrastructure-as-code
git clone git://git.pyratebeard.net/infra_code.git
Log | Files | Refs | README

infra.tf (391B)


      1 resource "digitalocean_droplet" "zshtest" {
      2 	image = "freebsd-12-x64-zfs"
      3 	count = var.instance_count
      4 	name = "${var.hostname}0${count.index + 1}"
      5 	region = "lon1"
      6 	size = "s-1vcpu-1gb"
      7 	ssh_keys = [
      8 		data.digitalocean_ssh_key.pyrategpgssh.id
      9 	]
     10 
     11 	connection {
     12 		host = self.ipv4_address
     13 		user = "root"
     14 		type = "ssh"
     15 		agent = true
     16 		private_key = file(var.pvt_key)
     17 		timeout = "2m"
     18 	}
     19 }