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 #208 from anouarchattouna/update_agent_configuration
Browse files Browse the repository at this point in the history
Update agent configuration
  • Loading branch information
brikis98 authored Feb 23, 2021
2 parents ae88203 + 8b89fb6 commit 34f7a20
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/consul-ami/consul.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"min_packer_version": "1.5.4",
"variables": {
"aws_region": "us-east-1",
"consul_version": "1.5.1",
"consul_version": "1.9.2",
"download_url": "{{env `CONSUL_DOWNLOAD_URL`}}"
},
"builders": [{
Expand Down
1 change: 0 additions & 1 deletion examples/example-with-custom-asg-role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,3 @@ data "aws_subnet_ids" "default" {

data "aws_region" "current" {
}

1 change: 0 additions & 1 deletion examples/example-with-custom-asg-role/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
output "consul_servers_cluster_tag_value" {
value = module.consul_servers.cluster_tag_value
}

1 change: 0 additions & 1 deletion examples/example-with-custom-asg-role/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ variable "consul_service_linked_role_suffix" {
type = string
default = "test-consul-service-linked-role"
}

1 change: 0 additions & 1 deletion examples/example-with-encryption/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ data "aws_subnet_ids" "default" {

data "aws_region" "current" {
}

1 change: 0 additions & 1 deletion examples/example-with-encryption/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
output "consul_servers_cluster_tag_value" {
value = module.consul_servers.cluster_tag_value
}

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"min_packer_version": "0.12.0",
"min_packer_version": "1.5.4",
"variables": {
"aws_region": "us-east-1",
"consul_version": "1.0.5",
"consul_version": "1.9.2",
"ca_public_key_path": "{{template_dir}}/ca.crt.pem",
"tls_public_key_path": "{{template_dir}}/consul.crt.pem",
"tls_private_key_path": "{{template_dir}}/consul.key.pem"
Expand Down
1 change: 0 additions & 1 deletion examples/example-with-encryption/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,3 @@ variable "key_file_path" {
type = string
default = "/opt/consul/tls/consul.key.pem"
}

1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,3 @@ data "aws_subnet_ids" "default" {

data "aws_region" "current" {
}

12 changes: 9 additions & 3 deletions modules/run-consul/run-consul
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ function generate_consul_config {
local instance_id=""
local instance_ip_address=""
local instance_region=""
local ui="false"
# https://www.consul.io/docs/agent/options#ui-1
local ui_config_enabled="false"

instance_id=$(get_instance_id)
instance_ip_address=$(get_instance_ip_address)
Expand Down Expand Up @@ -274,7 +275,7 @@ EOF
cluster_size=$(get_cluster_size "$instance_tags" "$instance_region")

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

local autopilot_configuration
Expand Down Expand Up @@ -327,7 +328,12 @@ EOF
$gossip_encryption_configuration
$rpc_encryption_configuration
$autopilot_configuration
"ui": $ui
"telemetry": {
"disable_compat_1.9": true
},
"ui_config": {
"enabled": $ui_config_enabled
}
}
EOF
)
Expand Down
1 change: 0 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
output "consul_servers_cluster_tag_value" {
value = module.consul_servers.cluster_tag_value
}

0 comments on commit 34f7a20

Please sign in to comment.