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
This issue was originally opened by @o0Nitan0o as hashicorp/terraform#23571. It was migrated here as a result of the provider split. The original body of the issue is below.
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
@N1tan hey! i recently added the feature to edit display_name on hostgroups to a dependency. I have to make the PR here to update the version and it should be good to go!
This issue was originally opened by @o0Nitan0o as hashicorp/terraform#23571. It was migrated here as a result of the provider split. The original body of the issue is below.
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: