Skip to content

Commit 9080cae

Browse files
Merge pull request #6 from danhiris/main
Fix issue 4 and 5. Remove netplan
2 parents 2d324d9 + f2b8fcb commit 9080cae

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ resource "google_compute_instance_template" "accesstier_template" {
125125
"echo '65536' > /proc/sys/net/netfilter/nf_conntrack_buckets \n",
126126
"echo '262144' > /proc/sys/net/netfilter/nf_conntrack_max \n",
127127
var.datadog_api_key != null ? "curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script.sh | DD_AGENT_MAJOR_VERSION=7 DD_API_KEY=${var.datadog_api_key} DD_SITE=datadoghq.com bash -v \n" : "",
128-
"netplan set ethernets.ens4.addresses=[${google_compute_address.external.address}/32] && netplan apply\n", // needed for direct server response, lb doesn't change ip address to the vm's so netagent ignores it
129-
"for i in {1..3}; do curl https://www.banyanops.com/onramp/deb-repo/banyan.key | apt-key add - && break || sleep 3; done \n",
128+
"curl https://www.banyanops.com/onramp/deb-repo/banyan.key | apt-key add -\n",
130129
var.staging_repo != null ? "apt-add-repository \"deb https://www-stage.bnntest.com/onramp/deb-repo xenial main\" \n" : "apt-add-repository \"deb https://www.banyanops.com/onramp/deb-repo xenial main\" \n",
131130
var.netagent_version != null ? "apt-get update && apt-get install -y banyan-netagent2=${var.netagent_version} \n" : "apt-get update && apt-get install -y banyan-netagent2 \n",
132131
"cd /opt/banyan-packages \n",

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ variable "enable_hsts" {
4242

4343
variable "netagent_version" {
4444
type = string
45-
description = "Override to use a specific version of netagent (e.g. `1.49.1`). Omit for the latest version available"
45+
description = "Override to use a specific version of netagent (e.g. `v2.2.0`). Omit for the latest version available. This version of the provider requires netagent v2.2.0 or higher"
4646
default = null
4747
}
4848

0 commit comments

Comments
 (0)