Open claudekenni opened 6 years ago
For Services something like this in Terraform:
resource "icinga2_service" "my-service" {
name = "dfdsafdsafds"
hostname = "${icinga2_host.host.hostname}"
check_command = "nrpe"
vars {
nrpe_port = "6666"
nrpe_timeout = 35
dummy_state = 1
dummy_text = "UNKNOWN SERVICE STATUS"
nrpe_command = "check_disk_auto"
nrpe_arguments = [ "90%", "95%", "/" ]
}
}
With the current Terraform datatypes this would be possible but requires some work on the lib as well as this provider.
Will look to impliment this shortly.
Is it possible to extend the variables so they can be nested? So we can do something like this?