Remove unnecessary quotes from HCL variables

This commit is contained in:
Blake Covarrubias 2022-05-08 17:48:37 -07:00
parent ddc09b661c
commit ab9c7d2dd4
3 changed files with 29 additions and 29 deletions

View File

@ -483,10 +483,10 @@ health check definition, like so:
```hcl ```hcl
check = { check = {
"id": "mem", id = "mem"
"args": ["/bin/check_mem", "-limit", "256MB"] args = ["/bin/check_mem", "-limit", "256MB"]
"interval": "10s" interval = "10s"
"status": "passing" status = "passing"
} }
``` ```

View File

@ -460,19 +460,19 @@ In the following example, Vault is registered as a service and provided access t
```hcl ```hcl
# Provide KV visibility to all agents. # Provide KV visibility to all agents.
agent_prefix "" { agent_prefix "" {
"policy" = "read" policy = "read"
} }
# Enable resources prefixed with 'vault/' to write to the KV # Enable resources prefixed with 'vault/' to write to the KV
key_prefix "vault/" { key_prefix "vault/" {
"policy" = "write" policy = "write"
} }
# Enable the vault service to write to the KV # Enable the vault service to write to the KV
service "vault" { service "vault" {
"policy" = "write" policy = "write"
} }
# Enable the agent to initialize a new session. # Enable the agent to initialize a new session.
session_prefix "" { session_prefix "" {
"policy" = "write" policy = "write"
} }
``` ```

View File

@ -38,12 +38,12 @@ Specify the value of the `SecretID` attribute with the `token` parameter when co
<CodeBlockConfig lineNumbers highlight="6"> <CodeBlockConfig lineNumbers highlight="6">
```hcl ```hcl
"service" = { service = {
"id" = "redis" id = "redis"
"name" = "redis" name = "redis"
... ...
"namespace" = "foo" namespace = "foo"
"token" = "233b604b-b92e-48c8-a253-5f11514e4b50" token = "233b604b-b92e-48c8-a253-5f11514e4b50"
} }
``` ```
@ -86,8 +86,8 @@ In the following example, the agent is configured to use a default token:
<CodeTabs> <CodeTabs>
```hcl ```hcl
"tokens" = { tokens = {
"default" = "233b604b-b92e-48c8-a253-5f11514e4b50" default = "233b604b-b92e-48c8-a253-5f11514e4b50"
} }
``` ```