Skip to content

Commit

Permalink
Fix output inconsistent result (default_integrations/monitoring) (#841)
Browse files Browse the repository at this point in the history
* Fix output inconsistent result (default_integrations/monitoring)

* Update changelog
  • Loading branch information
daemitus authored Oct 14, 2024
1 parent 87ee457 commit 83354ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Changes

- Fix inconsistent output errors in `elasticstack_fleet_output` for `default_integrations` and `default_monitoring`. ([#841](https://github.com/elastic/terraform-provider-elasticstack/pull/841))
- Fix secret handling `elasticstack_fleet_integration_policy` resource. ([#821](https://github.com/elastic/terraform-provider-elasticstack/pull/821))
- Fix merge values for `elasticstack_kibana_synthetics_monitor` monitor locations ([#823](https://github.com/elastic/terraform-provider-elasticstack/pull/823))
- Migrate to a v8 Elasticsearch client ([#832](https://github.com/elastic/terraform-provider-elasticstack/pull/832))
Expand All @@ -15,7 +16,6 @@
- Fix merge values for `elasticstack_kibana_synthetics_monitor` monitor locations ([#823](https://github.com/elastic/terraform-provider-elasticstack/pull/823)
- Add `elasticstack_elasticsearch_index_template` data source ([#828](https://github.com/elastic/terraform-provider-elasticstack/pull/828))


## [0.11.8] - 2024-10-02

- Add key_id to the `elasticstack_elasticsearch_api_key` resource. ([#789](https://github.com/elastic/terraform-provider-elasticstack/pull/789))
Expand Down
5 changes: 5 additions & 0 deletions internal/fleet/output/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/attr"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
Expand Down Expand Up @@ -67,11 +68,15 @@ func getSchema() schema.Schema {
},
"default_integrations": schema.BoolAttribute{
Description: "Make this output the default for agent integrations.",
Computed: true,
Optional: true,
Default: booldefault.StaticBool(false),
},
"default_monitoring": schema.BoolAttribute{
Description: "Make this output the default for agent monitoring.",
Computed: true,
Optional: true,
Default: booldefault.StaticBool(false),
},
"config_yaml": schema.StringAttribute{
Description: "Advanced YAML configuration. YAML settings here will be added to the output section of each agent policy.",
Expand Down

0 comments on commit 83354ce

Please sign in to comment.