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

Commit 34f7a20

Browse files
authored
Merge pull request #208 from anouarchattouna/update_agent_configuration
Update agent configuration
2 parents ae88203 + 8b89fb6 commit 34f7a20

File tree

11 files changed

+12
-14
lines changed

11 files changed

+12
-14
lines changed

examples/consul-ami/consul.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"min_packer_version": "1.5.4",
33
"variables": {
44
"aws_region": "us-east-1",
5-
"consul_version": "1.5.1",
5+
"consul_version": "1.9.2",
66
"download_url": "{{env `CONSUL_DOWNLOAD_URL`}}"
77
},
88
"builders": [{

examples/example-with-custom-asg-role/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,3 @@ data "aws_subnet_ids" "default" {
159159

160160
data "aws_region" "current" {
161161
}
162-

examples/example-with-custom-asg-role/outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
5757
output "consul_servers_cluster_tag_value" {
5858
value = module.consul_servers.cluster_tag_value
5959
}
60-

examples/example-with-custom-asg-role/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,3 @@ variable "consul_service_linked_role_suffix" {
101101
type = string
102102
default = "test-consul-service-linked-role"
103103
}
104-

examples/example-with-encryption/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,3 @@ data "aws_subnet_ids" "default" {
149149

150150
data "aws_region" "current" {
151151
}
152-

examples/example-with-encryption/outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
5757
output "consul_servers_cluster_tag_value" {
5858
value = module.consul_servers.cluster_tag_value
5959
}
60-

examples/example-with-encryption/packer/consul-with-certs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"min_packer_version": "0.12.0",
2+
"min_packer_version": "1.5.4",
33
"variables": {
44
"aws_region": "us-east-1",
5-
"consul_version": "1.0.5",
5+
"consul_version": "1.9.2",
66
"ca_public_key_path": "{{template_dir}}/ca.crt.pem",
77
"tls_public_key_path": "{{template_dir}}/consul.crt.pem",
88
"tls_private_key_path": "{{template_dir}}/consul.key.pem"

examples/example-with-encryption/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,3 @@ variable "key_file_path" {
9595
type = string
9696
default = "/opt/consul/tls/consul.key.pem"
9797
}
98-

main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,3 @@ data "aws_subnet_ids" "default" {
176176

177177
data "aws_region" "current" {
178178
}
179-

modules/run-consul/run-consul

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ function generate_consul_config {
239239
local instance_id=""
240240
local instance_ip_address=""
241241
local instance_region=""
242-
local ui="false"
242+
# https://www.consul.io/docs/agent/options#ui-1
243+
local ui_config_enabled="false"
243244

244245
instance_id=$(get_instance_id)
245246
instance_ip_address=$(get_instance_ip_address)
@@ -274,7 +275,7 @@ EOF
274275
cluster_size=$(get_cluster_size "$instance_tags" "$instance_region")
275276

276277
bootstrap_expect="\"bootstrap_expect\": $cluster_size,"
277-
ui="true"
278+
ui_config_enabled="true"
278279
fi
279280

280281
local autopilot_configuration
@@ -327,7 +328,12 @@ EOF
327328
$gossip_encryption_configuration
328329
$rpc_encryption_configuration
329330
$autopilot_configuration
330-
"ui": $ui
331+
"telemetry": {
332+
"disable_compat_1.9": true
333+
},
334+
"ui_config": {
335+
"enabled": $ui_config_enabled
336+
}
331337
}
332338
EOF
333339
)

outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,3 @@ output "consul_servers_cluster_tag_key" {
5757
output "consul_servers_cluster_tag_value" {
5858
value = module.consul_servers.cluster_tag_value
5959
}
60-

0 commit comments

Comments
 (0)