Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested Host / Service variables #21

Open
claudekenni opened this issue Sep 7, 2018 · 2 comments
Open

Nested Host / Service variables #21

claudekenni opened this issue Sep 7, 2018 · 2 comments

Comments

@claudekenni
Copy link

Is it possible to extend the variables so they can be nested?
So we can do something like this?

vars.partition["/"] = { warn = "90%", crit = "95%" }
@claudekenni
Copy link
Author

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%", "/" ]
  }

}

@lazzurs
Copy link
Member

lazzurs commented Jul 6, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants