HeavyHorst / remco

remco is a lightweight configuration management tool

Home Page:https://heavyhorst.github.io/remco/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The key don't start with "/" can not find by remco

elysiumHL opened this issue · comments

config
log_format = "text"

[[resource]]
  name = "disconf"

[[resource.template]]
  src = "/root/remco/templates/t.tmpl"
  dst = "/root/remco/t.yaml"

[resource.backend]
  [resource.backend.etcd]
    nodes = ["x.x.x.x:2379"]
    keys = ["disconf","registry"]
    watch = true
    interval = 60
    username = "xxxxx"
    password = "xxxxx"
    version = 3
t.tmpl
a
{% for i in gets("disconf/*") %}
    key: {{i.Key}}
    value: {{i.Value}}
{% endfor %}
b
{% for i in ls("disconf") %}
   value: {{i}}
{% endfor %}
c
t.yaml
a
b
c

Could you try /disconf/*?

You can also try
{{ getallkvs() | toPrettyJSON }} to see all key value pairs.