Commit 1c215257 authored by Kerim Satirli's avatar Kerim Satirli

updates variable notation to Terraform 0.7

parent 223c322a
resource "digitalocean_ssh_key" "opstheater" {
name = "OpsTheater"
public_key = "${file(concat(var.meta_key_material.global, ".pub"))}"
public_key = "${file("${var.meta_key_material["global"]}.pub")}"
}
resource "digitalocean_droplet" "host" {
image = "${var.do_droplet_images.centos}"
image = "${var.do_droplet_images["centos"]}"
name = "${var.opstheater_host}.${var.opstheater_domain}"
region = "${var.do_regions.global}"
region = "${var.do_regions["global"]}"
size = "512mb"
backups = "${var.do_droplet_settings.backups}"
ipv6 = "${var.do_droplet_settings.ipv6}"
private_networking = "${var.do_droplet_settings.private_networking}"
backups = "${var.do_droplet_settings["backups"]}"
ipv6 = "${var.do_droplet_settings["ipv6"]}"
private_networking = "${var.do_droplet_settings["private_networking"]}"
ssh_keys = [
"${digitalocean_ssh_key.opstheater.fingerprint}"
]
connection {
user = "${var.do_droplet_ssh_users.centos}"
user = "${var.do_droplet_ssh_users["centos"]}"
type = "ssh"
key_file = "${file(var.meta_key_material.global)}"
timeout = "${var.do_droplet_settings.private_networking}"
key_file = "${file(var.meta_key_material["global"])}"
timeout = "${var.do_droplet_settings["private_networking"]}"
}
provisioner "remote-exec" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment