Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #19 from semantic-lee/ui
Browse files Browse the repository at this point in the history
changing UI default to false
  • Loading branch information
brikis98 authored Oct 23, 2017
2 parents c2f8d5e + 13a8288 commit ee980b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/run-consul/run-consul
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ function generate_consul_config {
local instance_id=""
local instance_ip_address=""
local instance_region=""
local ui="false"

instance_id=$(get_instance_id)
instance_ip_address=$(get_instance_ip_address)
Expand All @@ -185,6 +186,7 @@ EOF
cluster_size=$(get_cluster_size "$instance_tags" "$instance_region")

bootstrap_expect="\"bootstrap_expect\": $cluster_size,"
ui="true"
fi

log_info "Creating default Consul config file in $config_path"
Expand All @@ -198,7 +200,7 @@ EOF
"node_name": "$instance_id",
$retry_join_json
"server": $server,
"ui": true
"ui": $ui
}
EOF
chown "$user:$user" "$config_path"
Expand Down

0 comments on commit ee980b4

Please sign in to comment.