MON-91 - Update PR to follow recommandations

This commit is contained in:
Alexandre Gaillet 2018-02-19 15:37:11 +01:00
parent fa9a5c3b3d
commit eb3159a297
3 changed files with 20 additions and 21 deletions

View File

@ -1 +0,0 @@
../../../inputs.tf

19
cloud/aws/vpn/inputs.tf Normal file
View File

@ -0,0 +1,19 @@
variable env {}
variable "vpn_tunnel_address" {
description = "List the VPN tunnels you want to monitor"
type = "list"
default = []
}
variable "vpn_config" {
description = "Ok means that both tunnels are up, warning means only one tunnel is up and critical means that both tunnels are down "
type = "map"
default = {
delay = 900
warning = 1
critical = 0
ok = 2
}
}

View File

@ -24,7 +24,7 @@ resource "datadog_monitor" "VPN_status" {
} }
notify_no_data = true notify_no_data = true
renotify_interval = 15 renotify_interval = 0
evaluation_delay = "${var.vpn_config["delay"]}" evaluation_delay = "${var.vpn_config["delay"]}"
notify_audit = false notify_audit = false
timeout_h = 0 timeout_h = 0

View File

@ -109,25 +109,6 @@ variable "elb_backend_latency" {
} }
} }
## VPN
variable "vpn_tunnel_address" {
description = "List the VPN tunnels you want to monitor"
type = "list"
default = []
}
variable "vpn_config" {
description = "Ok means that both tunnels are up, warning means only one tunnel is up and critical means that both tunnels are down "
type = "map"
default = {
delay = 900
warning = 1
critical = 0
ok = 2
}
}
##apache nginx php ##apache nginx php
variable "dd_nginx" { variable "dd_nginx" {
default = "disabled" default = "disabled"