This one-liner traverses a directory tree, reads the files and PUTs them into Consul Key/Value Store using the filename as the key and it’s contents as the value.

 

Tagged on: