You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
icinga2_host object must be newly created, because the displayname changes with forceNew.
Terraform will perform the following actions:
# icinga2_host.host must be replaced
-/+ resource "icinga2_host" "host" {
address = "10.10.10.1"
check_command = "hostalive"
~ groups = [ # forces replacement
- "terraform-group-11",
+ "terraform-group-12",
]
hostname = "terraformTEST1"
~ id = "terraformTEST1" -> (known after apply)
templates = [
"bp-host-web",
]
vars = {
"allowance" = "none"
"os" = "linux"
"osver" = "2"
}
}
# icinga2_hostgroup.hostgroup1 must be replaced
-/+ resource "icinga2_hostgroup" "hostgroup1" {
~ display_name = "Terraform_Test_HostGroup1" -> "Terraform_Test_HostGroup2" # forces replacement
~ id = "terraform-group-11" -> (known after apply)
~ name = "terraform-group-11" -> "terraform-group-11"
}
Plan: 2 to add, 0 to change, 2 to destroy.
Actual Behavior
only icinga2_hostgroup will be rebuilt:
Terraform will perform the following actions:
# icinga2_hostgroup.hostgroup1 must be replaced
-/+ resource "icinga2_hostgroup" "hostgroup1" {
~ display_name = "Terraform_Test_HostGroup1" -> "Terraform_Test_HostGroup2" # forces replacement
~ id = "terraform-group-11" -> (known after apply)
name = "terraform-group-11"
}
Plan: 1 to add, 0 to change, 1 to destroy.
Steps to Reproduce
terraform init
Insert the config
terraform apply
Confirm apply
Change "icinga2_hostgroup.hostgroup1.display_name" value
This issue has been automatically migrated to terraform-providers/terraform-provider-icinga2#38 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-icinga2#38.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 28, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
No Crash
Expected Behavior
icinga2_host object must be newly created, because the displayname changes with forceNew.
Actual Behavior
only icinga2_hostgroup will be rebuilt:
Steps to Reproduce
terraform init
terraform apply
terraform apply
Additional Context
icinga2_host Schema:
icinga2_hostgroup Schema:
References
https://github.com/terraform-providers/terraform-provider-icinga2/tree/master/icinga2
The text was updated successfully, but these errors were encountered: