Skip to content

Commit aa74ebb

Browse files
authored
Merge pull request #267 from pakio/specify-language-for-codeblock
Documentation: Specify languages for syntax highlighting
2 parents 5806186 + 9ab89d1 commit aa74ebb

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ resource "elasticsearch_kibana_object" "test_dashboard" {
142142

143143
Example watches (target notification actions must be setup manually before hand)
144144

145-
```
145+
```hcl
146146
# Monitor cluster status with auth being required
147147
resource "elasticsearch_xpack_watch" "cluster-status-red" {
148148
watch_id = "cluster-status-red"
@@ -282,7 +282,7 @@ Please see [the documentation](./docs/index.md#AWS-authentication) for details.
282282
* [Golang](https://golang.org/dl/) >= 1.13
283283

284284

285-
```
285+
```sh
286286
go build -o /path/to/binary/terraform-provider-elasticsearch
287287
```
288288

docs/guides/rollover.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For example, using ILM:
1313

1414
1. Create the following `main.tf` file:
1515

16-
```
16+
```hcl
1717
provider "elasticsearch" {
1818
url = "http://localhost:9200"
1919
}
@@ -73,7 +73,7 @@ resource "elasticsearch_index" "test" {
7373

7474
2. Start a new Elasticsearch Container:
7575

76-
```
76+
```sh
7777
$ export ES_OSS_IMAGE=elasticsearch:7.9.2
7878
$ docker-compose up -d elasticsearch
7979
Creating network "terraform-provider-elasticsearch_default" with the default driver
@@ -82,7 +82,7 @@ Creating terraform-provider-elasticsearch_elasticsearch_1 ... done
8282

8383
3. Create the example Index Lifecycle Policy, Index Template and Index:
8484

85-
```
85+
```sh
8686
$ terraform apply -auto-approve
8787
elasticsearch_xpack_index_lifecycle_policy.test: Creating...
8888
elasticsearch_xpack_index_lifecycle_policy.test: Creation complete after 0s [id=test]
@@ -96,14 +96,14 @@ Apply complete! Resources: 3 added, 0 changed, 0 destroyed.
9696

9797
4. Manually rollover the example index:
9898

99-
```
99+
```sh
100100
$ curl -X POST http://localhost:9200/test/_rollover
101101
{"acknowledged":true,"shards_acknowledged":true,"old_index":"test-000001","new_index":"test-000002","rolled_over":true,"dry_run":false,"conditions":{}}
102102
```
103103

104104
5. Delete the initial created index:
105105

106-
```
106+
```sh
107107
$ curl -X DELETE http://localhost:9200/test-000001
108108
{"acknowledged":true}
109109
```

docs/resources/opendistro_ism_policy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The following attributes are exported:
4545

4646
Elasticsearch Open Distro ISM policy can be imported using the `policy_id`, e.g.
4747

48-
```
48+
```sh
4949
$ terraform import elasticsearch_opendistro_ism_policy.cleanup delete_after_15d
5050
```
5151

docs/resources/opendistro_kibana_tenant.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following attributes are exported:
4141

4242
Elasticsearch Open Distro tenant can be imported using the `tenant_name`, e.g.
4343

44-
```
44+
```sh
4545
$ terraform import elasticsearch_opendistro_kibana_tenant.writer test
4646
```
4747

docs/resources/opendistro_monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following attributes are exported:
104104

105105
Elasticsearch Open Distro monitor can be imported using the `id`, e.g.
106106

107-
```
107+
```sh
108108
$ terraform import elasticsearch_opendistro_monitor.alert lgOZb3UB96pyyRQv0ppQ
109109
```
110110

docs/resources/opendistro_role.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The following attributes are exported:
9696

9797
Elasticsearch Open Distro security role can be imported using the `role_name`, e.g.
9898

99-
```
99+
```sh
100100
$ terraform import elasticsearch_opendistro_role.writer logs_writer
101101
```
102102

docs/resources/opendistro_roles_mapping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following attributes are exported:
5353

5454
Elasticsearch Open Distro security role mapping can be imported using the `role_name`, e.g.
5555

56-
```
56+
```sh
5757
$ terraform import elasticsearch_opendistro_roles_mapping.mapper logs_writer
5858
```
5959

docs/resources/opendistro_user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The following attributes are exported:
7474

7575
Elasticsearch Open Distro user can be imported using the `username`, e.g.
7676

77-
```
77+
```sh
7878
$ terraform import elasticsearch_opendistro_user.reader app_reader
7979
```
8080

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ the example's own directory.
99

1010
For example:
1111

12-
```
12+
```sh
1313
$ git clone https://github.com/phillbaker/terraform-provider-elasticsearch
1414
$ cd terraform-provider-elasticsearch/examples/ingest_pipeline
1515
$ terraform apply

0 commit comments

Comments
 (0)