Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Winkler authored and Scott Winkler committed Feb 7, 2021
1 parent 2fe9a4f commit b57fc2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module "nomad_clients" {
mode = "client"
}

associate_public_ips = false
associate_public_ips = true
namespace = module.resourcegroup.namespace
vpc = module.networking.vpc
security_group_id = module.networking.sg.nomad_client
Expand Down
6 changes: 3 additions & 3 deletions modules/cluster/templates/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ installDependencies
PRIVATE_IP=$(lookupPathInMetadata ".network.interface[0].ipv4.ipAddress[0].privateIpAddress")

# Consul Server also needs public IP
if [[ ${consul_mode} == "server" ]]; then
PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
fi
#if [[ ${consul_mode} == "server" ]]; then
PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com)
#fi

if [[ ${consul_mode} != "disabled" ]]; then
installConsul ${consul_version}
Expand Down

0 comments on commit b57fc2b

Please sign in to comment.