modules/gcve-monitoring/variables.tf (86 lines of code) (raw):

/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ variable "project" { description = "The GCP project that will be used for GCVE monitoring" type = string } variable "vm_mon_name" { description = "GCE VM name where GCVE monitoring agent will run" type = string } variable "vm_mon_type" { description = "GCE VM machine type" type = string default = "e2-small" } variable "vm_mon_zone" { description = "GCP zone where GCE VM will be deployed" type = string } variable "subnetwork" { description = "Subnetwork where the VM will be deployed to" type = string } variable "sa_gcve_monitoring" { description = "Service account for GCVE monitoring agent" type = string } variable "secret_vsphere_server" { type = string description = "The secret name conatining the FQDN of the vSphere vCenter server" } variable "secret_vsphere_user" { type = string description = "The secret name containing the user for the vCenter server. Must be an admin user" } variable "secret_vsphere_password" { type = string description = "The secret name containing the password for the vCenter admin user" } variable "gcve_region" { description = "Region where the Private Cloud is deployed" type = string } variable "hc_interval_sec" { description = "Healthcheck interval in seconds" type = number default = 5 } variable "hc_timeout_sec" { description = "Healthcheck timeout in seconds" type = number default = 5 } variable "hc_healthy_threshold" { description = "How many consecutive success checks to consider the VM as healthy" type = number default = 2 } variable "hc_unhealthy_threshold" { description = "How many consecutive success checks to consider the VM as unhealthy" type = number default = 2 } variable "initial_delay_sec" { description = "How long to delay checking for healthcheck upon initialization" type = number default = 180 } variable "create_dashboards" { description = "Define if sample GCVE monitoring dashboards should be installed" type = bool default = true }