mirror of https://github.com/status-im/consul.git
35 lines
613 B
Plaintext
35 lines
613 B
Plaintext
Name: builtin/service
|
|
Input variables:
|
|
Name: String - Required - The name of the service.
|
|
Example usage:
|
|
consul acl token create -templated-policy builtin/service -var name:api
|
|
Schema:
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"name": { "type": "string", "$ref": "#/definitions/min-length-one" }
|
|
},
|
|
"required": ["name"],
|
|
"definitions": {
|
|
"min-length-one": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
}
|
|
|
|
Raw Template:
|
|
|
|
service "{{.Name}}" {
|
|
policy = "write"
|
|
}
|
|
service "{{.Name}}-sidecar-proxy" {
|
|
policy = "write"
|
|
}
|
|
service_prefix "" {
|
|
policy = "read"
|
|
}
|
|
node_prefix "" {
|
|
policy = "read"
|
|
}
|