Skip to content

Commit be7d46d

Browse files
fix: Fixed zabbix rules (#261)
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
1 parent c0d92f5 commit be7d46d

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.74.1
3+
rev: v1.75.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

modules/wazuh/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All automatic values **wazuh module** is using are available [here](https://gith
1919
| Name | Version |
2020
|------|---------|
2121
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
22-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
22+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.29 |
2323

2424
## Providers
2525

@@ -111,6 +111,7 @@ No resources.
111111

112112
| Name | Description |
113113
|------|-------------|
114+
| <a name="output_security_group_arn"></a> [security\_group\_arn](#output\_security\_group\_arn) | The ARN of the security group |
114115
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | The description of the security group |
115116
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | The ID of the security group |
116117
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | The name of the security group |

modules/wazuh/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
output "security_group_arn" {
2+
description = "The ARN of the security group"
3+
value = module.sg.security_group_arn
4+
}
5+
16
output "security_group_id" {
27
description = "The ID of the security group"
38
value = module.sg.security_group_id

modules/wazuh/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.0"
7+
version = ">= 3.29"
88
}
99
}
1010
}

rules.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ variable "rules" {
183183
winrm-http-tcp = [5985, 5985, "tcp", "WinRM HTTP"]
184184
winrm-https-tcp = [5986, 5986, "tcp", "WinRM HTTPS"]
185185
# Zabbix
186-
zabbix-server = [10051, "tcp", "Zabbix Server"]
187-
zabbix-proxy = [10051, "tcp", "Zabbix Proxy"]
188-
zabbix-agent = [10050, "tcp", "Zabbix Agent"]
186+
zabbix-server = [10051, 10051, "tcp", "Zabbix Server"]
187+
zabbix-proxy = [10051, 10051, "tcp", "Zabbix Proxy"]
188+
zabbix-agent = [10050, 10050, "tcp", "Zabbix Agent"]
189189
# Zipkin
190190
zipkin-admin-tcp = [9990, 9990, "tcp", "Zipkin Admin port collector"]
191191
zipkin-admin-query-tcp = [9901, 9901, "tcp", "Zipkin Admin port query"]

update_groups.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ check_dependencies() {
3030
}
3131

3232
auto_groups_data() {
33-
hcl2json rules.tf | jq -r '..|.auto_groups?|values|.[0].default'
33+
hcl2json rules.tf | jq -r '..|.auto_groups?|values|.default'
3434
}
3535

3636
auto_groups_keys() {

0 commit comments

Comments
 (0)