Closed hashibot closed 5 years ago
This has been vendor'd out to a release which did not require it. Also https://github.com/lrsmith/go-icinga2-api has been modified and versioned as v0.2.x to support not requiring having groups. So this should be resolved.
@lrsmith I'm running into the groups = null error when trying to create hosts in Icinga. I see it looks like you fixed in the underlying go-icinga2-api library - did this not get released yet in the provider?
@lrsmith Any word on this one mate?
@rayterrill This has been merged into master ( https://github.com/terraform-providers/terraform-provider-icinga2/pull/14 ) but a release has not been cut yet for it. I hope to cut a release soon with all the recent PRs.
@lrsmith any news on a new release?
@jc1arke @rayterrill I am working on getting a new release. Right now the build pipeline is failing and I'm don't have the needed permissions to make the needed changes and I'm working to get the needed changes made.
Should be resolved with todays 0.2.0 release
This issue was originally opened by @robrankin as hashicorp/terraform#14819. It was migrated here as part of the provider split. The original body of the issue is below.
The Icinga2 Host resource creates an Icinga2 Host object as follows:
The
groups = null
syntax does not appear to be valid. When attempting to use Icinga2's group assign functionality,assign where
, to assign the above Host object to Hostgroup object, thegroups = null
entry causes Icinga2 to segfault.As far as I can tell so far it's only acceptable for the
groups
parameter to have a non-empty list of 1 or more members.groups = ["",]
does not work for example.Icinga2 bug report here: Icinga2 Issue hashicorp/terraform#5288
Terraform Version
Terraform v0.9.4
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
The Icinga2 Host resource creates correct Icinga2 object syntax
Actual Behavior
The Icinga2 Host resource creates incorrect Icinga2 object syntax
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
References
https://github.com/Icinga/icinga2/issues/5288