2023-09-15 14:20:44 +00:00
|
|
|
Name: builtin/node
|
2023-09-14 20:14:55 +00:00
|
|
|
Input variables:
|
|
|
|
Name: String - Required - The node name.
|
|
|
|
Example usage:
|
|
|
|
consul acl token create -templated-policy builtin/node -var name:node-1
|
|
|
|
Schema:
|
|
|
|
{
|
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"name": { "type": "string", "$ref": "#/definitions/min-length-one" }
|
|
|
|
},
|
|
|
|
"required": ["name"],
|
|
|
|
"definitions": {
|
|
|
|
"min-length-one": {
|
|
|
|
"type": "string",
|
|
|
|
"minLength": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Raw Template:
|
|
|
|
|
|
|
|
node "{{.Name}}" {
|
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|