Skip to content

Commit

Permalink
allowing mutliple instances to bootstrap to chef correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Chamberland committed Dec 21, 2018
1 parent 2384dbc commit a3edf25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resource "null_resource" "provision_instances" {
]
connection {
type = "ssh"
host = "${element(local.ip_for_conn, 0)}"
host = "${element(local.ip_for_conn, count.index)}"
user = "${var.default_system_user}"
private_key = "${var.ssh_private_key}"
timeout = "15m"
Expand Down Expand Up @@ -151,7 +151,7 @@ resource "null_resource" "provision_instances" {

connection {
type = "ssh"
host = "${element(local.ip_for_conn, 0)}"
host = "${element(local.ip_for_conn, count.index)}"
user = "${var.default_system_user}"
private_key = "${var.ssh_private_key}"

Expand Down

0 comments on commit a3edf25

Please sign in to comment.