open-consul/ui/packages/consul-ui/app/components/consul/node-identity/template/index.hbs

43 lines
660 B
Handlebars
Raw Normal View History

{{#if (can "use partitions")~}}
partition "{{or @partition 'default'}}" {
{{#if (can "use nspaces")}}
namespace "default" {
node "{{@name}}" {
policy = "write"
}
}
namespace_prefix "" {
service_prefix "" {
policy = "read"
}
}
{{else}}
node "{{@name}}" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
{{/if}}
}
{{~else~}}
{{~#if (can "use nspaces")~}}
namespace "default" {
2020-11-30 18:42:59 +00:00
node "{{@name}}" {
policy = "write"
}
}
namespace_prefix "" {
service_prefix "" {
policy = "read"
}
}
{{else}}
2020-11-30 18:42:59 +00:00
node "{{@name}}" {
policy = "write"
}
service_prefix "" {
policy = "read"
}
{{~/if~}}
{{~/if~}}