We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Terraform terraform only allows to use the templates = [ "template" ] notation. Unfortunately it seems that it doesn't have any effect.
I can reproduce this with config files:
template Host "foo" { vars.foo = "bar" } object Host "bar" { templates = [ "foo" ] check_command = "dummy" }
Restarting Icinga and asking the API, tells me that the template is defined:
http -a root:$ICINGA_PASSWORD --verify no https://localhost:5665/v1/objects/hosts | jq ".results[].attrs.templates" [ "foo" ]
But:
http -a root:$ICINGA_PASSWORD --verify no https://localhost:5665/v1/objects/hosts | jq ".results[].attrs.vars" null
When using import we get the interestring effect that there is also a template defined like the host:
http -a root:$ICINGA_PASSWORD --verify no https://localhost:5665/v1/objects/hosts | jq ".results[].attrs.templates" [ "bar", "foo" ]
And now we have:
http -a root:$ICINGA_PASSWORD --verify no https://localhost:5665/v1/objects/hosts | jq ".results[].attrs.vars" { "foo": "bar" }
Also adding the hostname to the list of templates doesn't have any effect.
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
icinga2 feature list
The text was updated successfully, but these errors were encountered:
You have to import the template explicitly.
Sorry, something went wrong.
That doesn't help me. This should work as documented, why doesn't it work?
No branches or pull requests
Describe the bug
The Terraform terraform only allows to use the templates = [ "template" ] notation. Unfortunately it seems that it doesn't have
any effect.
To Reproduce
I can reproduce this with config files:
Restarting Icinga and asking the API, tells me that the template is defined:
But:
When using import we get the interestring effect that there is also a template defined like the host:
And now we have:
Also adding the hostname to the list of templates doesn't have any effect.
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): 2.11.4icinga2 feature list
): api checker debuglog mainlog notificationThe text was updated successfully, but these errors were encountered: