Skip to content

Instantly share code, notes, and snippets.

@cagedmantis
Created January 14, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cagedmantis/e9bd6bfb43d9f61e67fd to your computer and use it in GitHub Desktop.
Save cagedmantis/e9bd6bfb43d9f61e67fd to your computer and use it in GitHub Desktop.
why you no null
resource "null_resource" "init_serf" {
count = "${var.num_nodes}"
depends_on = [ "digitalocean_droplet.serf" ]
provisioner "remote-exec" {
connection {
user = "root"
}
inline = [
"/opt/serf join ${digitalocean_droplet.serf.0.ipv4_address}"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment