ha/doozerd

Find depth or list at path

Closed this issue · 0 comments

We have quite a few groups or roles for machines in our infrastructure and I would like to use doozer to interact with those roles. A couple examples would be to list all services for a specific role in DNS lookups or to build a list of nodes to send a command to from another service. Currently if I were to doozer find /services/production/east/web it would like the following:

/services/production/east/web
/services/production/east/web/001
/services/production/east/web/001/ip
/services/production/east/web/001/status
/services/production/east/web/001/instance-id
/services/production/east/web/002
/services/production/east/web/002/ip
/services/production/east/web/002/status
/services/production/east/web/002/instance-id
/services/production/east/web/003
/services/production/east/web/003/ip
/services/production/east/web/003/status
/services/production/east/web/003/instance-id

What I would love to be able to do is provide a depth option for find or to add a new command list that would only list the items I want for a given directory. It would be the equivalent of get, but for a directory and not a file. With this I would be able to see this instead:

/services/production/east/web/001
/services/production/east/web/002
/services/production/east/web/003

Thoughts? Am I going about this the wrong way? Or would this be a welcomed feature?