Skip to content

Commit

Permalink
Remove unnecessary quotes from HCL variables
Browse files Browse the repository at this point in the history
  • Loading branch information
blake committed May 13, 2022
1 parent ddc09b6 commit ab9c7d2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
36 changes: 18 additions & 18 deletions website/content/docs/discovery/checks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ A script check:
```hcl
check = {
id = "mem-util"
name = "Memory utilization"
name = "Memory utilization"
args = ["/usr/local/bin/check_mem.py", "-limit", "256MB"]
interval = "10s"
timeout = "1s"
Expand Down Expand Up @@ -186,12 +186,12 @@ check = {
tls_skip_verify = false
method = "POST"
header = {
Content-Type = ["application/json"]
Content-Type = ["application/json"]
}
body = "{\"method\":\"health\"}"
disable_redirects = true
interval = "10s"
timeout = "1s"
interval = "10s"
timeout = "1s"
}
```

Expand Down Expand Up @@ -248,11 +248,11 @@ A TTL check:
<CodeTabs heading="TTL Check">

```hcl
check = {
check = {
id = "web-app"
name = "Web App Status"
notes = "Web app does a curl internally every 10 seconds"
ttl = "30s"
ttl = "30s"
}
```

Expand Down Expand Up @@ -305,11 +305,11 @@ A gRPC check for the whole application:

```hcl
check = {
id = "mem-util"
id = "mem-util"
name = "Service health status"
grpc = "127.0.0.1:12345"
grpc = "127.0.0.1:12345"
grpc_use_tls = true
interval = "10s"
interval = "10s"
}
```

Expand Down Expand Up @@ -482,11 +482,11 @@ health check definition, like so:
<CodeTabs heading="Status Field Example">

```hcl
check = {
"id": "mem",
"args": ["/bin/check_mem", "-limit", "256MB"]
"interval": "10s"
"status": "passing"
check = {
id = "mem"
args = ["/bin/check_mem", "-limit", "256MB"]
interval = "10s"
status = "passing"
}
```

Expand Down Expand Up @@ -516,10 +516,10 @@ provided by adding a `service_id` field to a check configuration:
<CodeTabs heading="Status Field Example">

```hcl
check = {
check = {
id = "web-app"
name = "Web App Status"
service_id = "web-app"
name = "Web App Status"
service_id = "web-app"
ttl = "30s"
}
```
Expand Down Expand Up @@ -635,7 +635,7 @@ checks = [
name = "HTTP TCP on port 80"
tcp = "localhost:80"
interval = "10s"
timeout = "1s"
timeout = "1s"
success_before_passing = 3
failures_before_warning = 1
failures_before_critical = 3
Expand Down
8 changes: 4 additions & 4 deletions website/content/docs/security/acl/acl-policies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -460,19 +460,19 @@ In the following example, Vault is registered as a service and provided access t
```hcl
# Provide KV visibility to all agents.
agent_prefix "" {
"policy" = "read"
policy = "read"
}
# Enable resources prefixed with 'vault/' to write to the KV
key_prefix "vault/" {
"policy" = "write"
policy = "write"
}
# Enable the vault service to write to the KV
service "vault" {
"policy" = "write"
policy = "write"
}
# Enable the agent to initialize a new session.
session_prefix "" {
"policy" = "write"
policy = "write"
}
```

Expand Down
14 changes: 7 additions & 7 deletions website/content/docs/security/acl/acl-tokens.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ Specify the value of the `SecretID` attribute with the `token` parameter when co
<CodeBlockConfig lineNumbers highlight="6">

```hcl
"service" = {
"id" = "redis"
"name" = "redis"
service = {
id = "redis"
name = "redis"
...
"namespace" = "foo"
"token" = "233b604b-b92e-48c8-a253-5f11514e4b50"
namespace = "foo"
token = "233b604b-b92e-48c8-a253-5f11514e4b50"
}
```

Expand Down Expand Up @@ -86,8 +86,8 @@ In the following example, the agent is configured to use a default token:
<CodeTabs>

```hcl
"tokens" = {
"default" = "233b604b-b92e-48c8-a253-5f11514e4b50"
tokens = {
default = "233b604b-b92e-48c8-a253-5f11514e4b50"
}
```

Expand Down

0 comments on commit ab9c7d2

Please sign in to comment.