Reputation: 6124
Is there any options available to create multiple nested KEY/VALUE in consul using some static file. Now if any mistake happens I am recreating the entire folder from root. Is there any way, just to upload a file in single command need to create a key/value structure in consul.
Upvotes: 0
Views: 2169
Reputation: 529
Currently Consul (ver 0.6.3) does not support such an option .
Yet you can easily do so by a script that :
curl -X PUT -d 'yourValue' http://localhost:8500/v1/kv/$yourKey
Upvotes: 4