mirror of https://github.com/status-im/consul.git
Remove unnecessary quotes from HCL variables
This commit is contained in:
parent
ddc09b661c
commit
ab9c7d2dd4
|
@ -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"
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue