Skip to content

Commit

Permalink
chore(docs): improve OpenSearch spelling (#141)
Browse files Browse the repository at this point in the history
Signed-off-by: Eugene Tolbakov <[email protected]>
  • Loading branch information
etolbakov authored Dec 22, 2023
1 parent 8774739 commit e970f87
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ jobs:
run: |
./script/test-mod-tidy
./script/test-terraform-fmt
- name: Wait for Opensearch
- name: Wait for OpenSearch
# ensure that OS has come up and is available
run: |
./script/wait-for-endpoint --timeout=20 http://localhost:9200
- name: Warm up OpenDistro/Opensearch
- name: Warm up OpenDistro/OpenSearch
# - OpenDistro lazily initializes its indexes, see
# https://github.com/opendistro-for-elasticsearch/alerting/issues/60
run: |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ This is a terraform provider to provision OpenSearch resources.

### Compatibility

This provider will target compatibility with major versions of Opensearch, each major version of this provider corresponding to the major version of Opensearch.
This provider will target compatibility with major versions of OpenSearch, each major version of this provider corresponding to the major version of Opensearch.

| Opensearch version | Supported |
| OpenSearch version | Supported |
| ----------- | --------- |
| 1.x | :white_check_mark: |
| 2.x | :x: |
Expand Down Expand Up @@ -53,7 +53,7 @@ If you discover a potential security issue in this project we ask that you notif

## License

This project is licensed under the [Apache v2.0 License](LICENSE.txt).
This project is licensed under the [Apache v2.0 License](LICENSE).

## Copyright

Expand Down
14 changes: 7 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "Opensearch Provider"
page_title: "OpenSearch Provider"
subcategory: ""
description: |-
The provider is used to interact with the resources supported by Opensearch.
The provider is used to interact with the resources supported by OpenSearch.
---

# Opensearch Provider
# OpenSearch Provider

The provider is used to interact with the resources supported by Opensearch.
The provider is used to interact with the resources supported by OpenSearch.
The provider needs to be configured with an endpoint URL before it can be
used.

AWS Opensearch Service domains and OpenSearch clusters deployed on Kubernetes
AWS OpenSearch Service domains and OpenSearch clusters deployed on Kubernetes
and other infrastructure are supported.

Use the navigation to the left to read about the available resources.

```terraform
# Configure the Opensearch provider
# Configure the OpenSearch provider
provider "opensearch" {
url = "http://127.0.0.1:9200"
}
Expand Down Expand Up @@ -58,7 +58,7 @@ EOF

### Required

- `url` (String) Opensearch URL
- `url` (String) OpenSearch URL

### Optional

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/cluster_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "opensearch_cluster_settings" "global" {
- `cluster_blocks_read_only` (Boolean) Make the whole cluster read only and metadata is not allowed to be modified
- `cluster_blocks_read_only_allow_delete` (Boolean) Make the whole cluster read only, but allows to delete indices to free up resources
- `cluster_indices_close_enable` (Boolean) If false, you cannot close open indices
- `cluster_info_update_interval` (String) A time string controlling how often Opensearch should check on disk usage for each node in the cluster
- `cluster_info_update_interval` (String) A time string controlling how often OpenSearch should check on disk usage for each node in the cluster
- `cluster_max_shards_per_node` (Number) The total number of primary and replica shards for the cluster, this number is multiplied by the number of non-frozen data nodes; shards for closed indices do not count toward this limit
- `cluster_max_shards_per_node_frozen` (Number) The total number of primary and replica frozen shards, for the cluster; Ssards for closed indices do not count toward this limit, a cluster with no frozen data nodes is unlimited.
- `cluster_no_master_block` (String) Specifies which operations are rejected when there is no active master in a cluster (all, write)
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/index_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "opensearch_index_template Resource - terraform-provider-opensearch"
subcategory: ""
description: |-
Provides an Opensearch index template resource.
Provides an OpenSearch index template resource.
---

# opensearch_index_template (Resource)

Provides an Opensearch index template resource.
Provides an OpenSearch index template resource.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/ingest_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "opensearch_ingest_pipeline Resource - terraform-provider-opensearch"
subcategory: ""
description: |-
Provides an Opensearch ingest pipeline resource.
Provides an OpenSearch ingest pipeline resource.
---

# opensearch_ingest_pipeline (Resource)

Provides an Opensearch ingest pipeline resource.
Provides an OpenSearch ingest pipeline resource.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/script.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "opensearch_script Resource - terraform-provider-opensearch"
subcategory: ""
description: |-
Provides an Opensearch script resource.
Provides an OpenSearch script resource.
---

# opensearch_script (Resource)

Provides an Opensearch script resource.
Provides an OpenSearch script resource.

## Example Usage

Expand Down
4 changes: 2 additions & 2 deletions docs/resources/snapshot_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
page_title: "opensearch_snapshot_repository Resource - terraform-provider-opensearch"
subcategory: ""
description: |-
Provides an Opensearch snapshot repository resource.
Provides an OpenSearch snapshot repository resource.
---

# opensearch_snapshot_repository (Resource)

Provides an Opensearch snapshot repository resource.
Provides an OpenSearch snapshot repository resource.

## Example Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/resources/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ resource "opensearch_roles_mapping" "reader" {
- `attributes` (Map of String) A map of arbitrary key value string pairs stored alongside of users.
- `backend_roles` (Set of String) A list of backend roles.
- `description` (String) Description of the user.
- `password` (String, Sensitive) The plain text password for the user, cannot be specified with `password_hash`. Some implementations may enforce a password policy. Invalid passwords may cause a non-descriptive HTTP 400 Bad Request error. For AWS Opensearch domains "password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character".
- `password` (String, Sensitive) The plain text password for the user, cannot be specified with `password_hash`. Some implementations may enforce a password policy. Invalid passwords may cause a non-descriptive HTTP 400 Bad Request error. For AWS OpenSearch domains "password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one digit, and one special character".
- `password_hash` (String, Sensitive) The pre-hashed password for the user, cannot be specified with `password`.

### Read-Only
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configure the Opensearch provider
# Configure the OpenSearch provider
provider "opensearch" {
url = "http://127.0.0.1:9200"
}
Expand Down
2 changes: 1 addition & 1 deletion provider/resource_opensearch_cluster_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func resourceOpensearchClusterSettings() *schema.Resource {
"cluster_info_update_interval": {
Type: schema.TypeString,
Optional: true,
Description: "A time string controlling how often Opensearch should check on disk usage for each node in the cluster",
Description: "A time string controlling how often OpenSearch should check on disk usage for each node in the cluster",
},
"cluster_routing_allocation_allow_rebalance": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion provider/resource_opensearch_ingest_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

func resourceOpensearchIngestPipeline() *schema.Resource {
return &schema.Resource{
Description: "Provides an Opensearch ingest pipeline resource.",
Description: "Provides an OpenSearch ingest pipeline resource.",
Create: resourceOpensearchIngestPipelineCreate,
Read: resourceOpensearchIngestPipelineRead,
Update: resourceOpensearchIngestPipelineUpdate,
Expand Down
2 changes: 1 addition & 1 deletion provider/resource_opensearch_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var scriptSchema = map[string]*schema.Schema{

func resourceOpensearchScript() *schema.Resource {
return &schema.Resource{
Description: "Provides an Opensearch script resource.",
Description: "Provides an OpenSearch script resource.",
Create: resourceOpensearchScriptCreate,
Read: resourceOpensearchScriptRead,
Update: resourceOpensearchScriptUpdate,
Expand Down
2 changes: 1 addition & 1 deletion provider/resource_opensearch_snapshot_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func resourceOpensearchSnapshotRepository() *schema.Resource {
return &schema.Resource{
Description: "Provides an Opensearch snapshot repository resource.",
Description: "Provides an OpenSearch snapshot repository resource.",
Create: resourceOpensearchSnapshotRepositoryCreate,
Read: resourceOpensearchSnapshotRepositoryRead,
Update: resourceOpensearchSnapshotRepositoryUpdate,
Expand Down
10 changes: 5 additions & 5 deletions templates/index.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "Opensearch Provider"
page_title: "OpenSearch Provider"
subcategory: ""
description: |-
The provider is used to interact with the resources supported by Opensearch.
The provider is used to interact with the resources supported by OpenSearch.
---

# Opensearch Provider
# OpenSearch Provider

The provider is used to interact with the resources supported by Opensearch.
The provider is used to interact with the resources supported by OpenSearch.
The provider needs to be configured with an endpoint URL before it can be
used.

AWS Opensearch Service domains and OpenSearch clusters deployed on Kubernetes
AWS OpenSearch Service domains and OpenSearch clusters deployed on Kubernetes
and other infrastructure are supported.

Use the navigation to the left to read about the available resources.
Expand Down

0 comments on commit e970f87

Please sign in to comment.