- firewall move to vpc.tf
This commit is contained in:
20
main.tf
20
main.tf
@@ -1,23 +1,3 @@
|
|||||||
#===============================================
|
|
||||||
# Create firefall for all
|
|
||||||
#===============================================
|
|
||||||
resource "google_compute_firewall" "firewall_vpn" {
|
|
||||||
name = "allow-zabbix"
|
|
||||||
|
|
||||||
# name of net
|
|
||||||
network = "default"
|
|
||||||
|
|
||||||
allow {
|
|
||||||
protocol = "tcp"
|
|
||||||
ports = [
|
|
||||||
"443", "80", "10050"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
source_ranges = ["0.0.0.0/0"]
|
|
||||||
target_tags = ["${var.zabbix_tag}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Create zabbix server
|
# Create zabbix server
|
||||||
#===============================================
|
#===============================================
|
||||||
|
19
scripts/agents/vpc.tf
Normal file
19
scripts/agents/vpc.tf
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#===============================================
|
||||||
|
# Create firefall for all
|
||||||
|
#===============================================
|
||||||
|
resource "google_compute_firewall" "firewall_vpn" {
|
||||||
|
name = "allow-zabbix"
|
||||||
|
|
||||||
|
# name of net
|
||||||
|
network = "default"
|
||||||
|
|
||||||
|
allow {
|
||||||
|
protocol = "tcp"
|
||||||
|
ports = [
|
||||||
|
"443", "80", "10050"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
source_ranges = ["0.0.0.0/0"]
|
||||||
|
target_tags = ["${var.zabbix_tag}"]
|
||||||
|
}
|
Reference in New Issue
Block a user