2021-12-06 10:33:44 +00:00
|
|
|
{{#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")~}}
|
2020-06-23 16:58:43 +00:00
|
|
|
namespace "default" {
|
2020-11-30 18:42:59 +00:00
|
|
|
node "{{@name}}" {
|
2020-06-23 16:58:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
namespace_prefix "" {
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{{else}}
|
2020-11-30 18:42:59 +00:00
|
|
|
node "{{@name}}" {
|
2020-06-23 08:59:43 +00:00
|
|
|
policy = "write"
|
|
|
|
}
|
|
|
|
service_prefix "" {
|
|
|
|
policy = "read"
|
2020-06-23 16:58:43 +00:00
|
|
|
}
|
2021-12-06 10:33:44 +00:00
|
|
|
{{~/if~}}
|
|
|
|
{{~/if~}}
|