File tree 2 files changed +37
-8
lines changed
2 files changed +37
-8
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,20 @@ resource "tls_private_key" "this" {
5
5
6
6
module "vmss" {
7
7
source = " data-platform-hq/vmss/azurerm"
8
- version = " 1.2.1 "
8
+ version = " 1.2.3 "
9
9
10
10
scale_set_name = var. vm_scale_set_name
11
11
location = var. location
12
12
resource_group = var. resource_group
13
- tags = var. tags
14
13
admin_ssh_key = { public_key = tls_private_key.this.public_key_openssh }
15
14
subnet_id = var. subnet_id
16
15
public_ip_prefix_enabled = var. ado_vmss_public_ip_prefix_enabled
16
+
17
+ enable_data_collection_rule = var. drc_enabled
18
+ analytics_workspace_id = var. analytics_workspace_id
19
+ facility_names = var. drc_facility_names
20
+ log_levels = var. drc_log_levels
21
+ datasource_name = var. drc_datasource_name
17
22
}
18
23
19
24
data "azuredevops_project" "this" {
Original file line number Diff line number Diff line change @@ -18,12 +18,6 @@ variable "subnet_id" {
18
18
type = string
19
19
}
20
20
21
- variable "tags" {
22
- type = map (any )
23
- description = " Resource tags"
24
- default = {}
25
- }
26
-
27
21
variable "ado_project_name" {
28
22
description = " Target Azure DevOps Project name where VMSS agent pool would be provisioned"
29
23
type = string
@@ -61,3 +55,33 @@ variable "create_ado_resources" {
61
55
type = bool
62
56
default = true
63
57
}
58
+
59
+ variable "analytics_workspace_id" {
60
+ type = string
61
+ description = " Resource ID of Log Analytics Workspace"
62
+ default = null
63
+ }
64
+
65
+ variable "drc_enabled" {
66
+ type = bool
67
+ description = " Enable data collection rule. var.analytics_workspace_id must be provided"
68
+ default = false
69
+ }
70
+
71
+ variable "drc_datasource_name" {
72
+ type = string
73
+ description = " Datasource syslog name"
74
+ default = " datasource-syslog"
75
+ }
76
+
77
+ variable "drc_facility_names" {
78
+ type = list (string )
79
+ description = " List of Facility names"
80
+ default = [" daemon" , " syslog" , " user" ]
81
+ }
82
+
83
+ variable "drc_log_levels" {
84
+ type = list (string )
85
+ description = " List of Log levels"
86
+ default = [" Debug" ]
87
+ }
You can’t perform that action at this time.
0 commit comments