Skip to content

Commit 32e95a2

Browse files
removing enrichment, pinning config, and updating readme (#19)
1 parent deb6865 commit 32e95a2

File tree

3 files changed

+22
-51
lines changed

3 files changed

+22
-51
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,16 @@ module "sensor" {
1818
sensor_ssh_public_key = "<path to ssh public key>"
1919
management_subnet_id = "<full management NIC subnet resource ID>"
2020
monitoring_subnet_id = "<full management NIC subnet resource ID>"
21-
21+
22+
fleet_token = "<the pairing token from the Fleet UI>"
23+
fleet_url = "<the URL of the fleet instance from the Fleet UI>"
24+
fleet_server_sslname = "<the ssl name provided by Fleet>"
25+
2226
tags = {
2327
foo: bar,
2428
terraform: true,
2529
purpose: Corelight
2630
}
27-
28-
# Optional - Fleet Manager
29-
fleet_token = "<the pairing token from the Fleet UI>"
30-
fleet_url = "<the URL of the fleet instance from the Fleet UI>"
31-
32-
# (Optional) Cloud Enrichment Variables
33-
enrichment_storage_account_name = "<name of the enrichment storage account>"
34-
enrichment_storage_container_name = "<name of the enrichment container in the storage account>"
3531
}
3632
```
3733

sensor_config.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "sensor_config" {
2-
source = "github.com/corelight/terraform-config-sensor?ref=v0.3.0"
2+
source = "github.com/corelight/terraform-config-sensor?ref=v1.0.0"
33

44
fleet_community_string = var.community_string
55
fleet_token = var.fleet_token
@@ -17,8 +17,4 @@ module "sensor_config" {
1717
subnetwork_monitoring_cidr = data.azurerm_subnet.mon_subnet.address_prefix
1818
gzip_config = true
1919
base64_encode_config = true
20-
enrichment_enabled = var.enrichment_storage_account_name != "" && var.enrichment_storage_container_name != ""
21-
enrichment_cloud_provider_name = "azure"
22-
enrichment_storage_account_name = var.enrichment_storage_account_name
23-
enrichment_bucket_name = var.enrichment_storage_container_name
2420
}

variables.tf

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ variable "sensor_ssh_public_key" {
4646
type = string
4747
}
4848

49+
variable "fleet_token" {
50+
type = string
51+
sensitive = true
52+
description = "The pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
53+
}
54+
55+
variable "fleet_url" {
56+
type = string
57+
description = "URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
58+
}
59+
60+
variable "fleet_server_sslname" {
61+
type = string
62+
description = "SSL hostname for the fleet server"
63+
}
64+
4965
## Variables with defaults
5066
variable "sensor_admin_username" {
5167
description = "The name of the admin user on the corelight sensor VM in the VMSS"
@@ -95,18 +111,6 @@ variable "virtual_machine_os_disk_size" {
95111
default = 500
96112
}
97113

98-
variable "enrichment_storage_account_name" {
99-
description = "(optional) the azure storage account where enrichment data is stored"
100-
type = string
101-
default = ""
102-
}
103-
104-
variable "enrichment_storage_container_name" {
105-
description = "(optional) the container where enrichment data is stored"
106-
type = string
107-
default = ""
108-
}
109-
110114
variable "lb_management_frontend_ip_config_name" {
111115
description = "Name of the internal load balancer management backend pool frontend ip configuration"
112116
type = string
@@ -149,12 +153,6 @@ variable "lb_vxlan_rule_name" {
149153
default = "vxlan-lb-rule"
150154
}
151155

152-
variable "lb_health_check_rule_name" {
153-
description = "Name of the load balancer rule for health check traffic"
154-
type = string
155-
default = "healthcheck-lb-rule"
156-
}
157-
158156
variable "lb_ssh_rule_name" {
159157
description = "Name of the load balancer rule for SSH traffic"
160158
type = string
@@ -167,25 +165,6 @@ variable "tags" {
167165
default = {}
168166
}
169167

170-
variable "fleet_token" {
171-
type = string
172-
default = ""
173-
sensitive = true
174-
description = "(optional) the pairing token from the Fleet UI. Must be set if 'fleet_url' is provided"
175-
}
176-
177-
variable "fleet_url" {
178-
type = string
179-
default = ""
180-
description = "(optional) the URL of the fleet instance from the Fleet UI. Must be set if 'fleet_token' is provided"
181-
}
182-
183-
variable "fleet_server_sslname" {
184-
type = string
185-
default = "1.broala.fleet.product.corelight.io"
186-
description = "(optional) the SSL hostname for the fleet server"
187-
}
188-
189168
variable "fleet_http_proxy" {
190169
type = string
191170
default = ""

0 commit comments

Comments
 (0)