infrastructure/consul/restore_configuration.sh

8 lines
210 B
Bash
Raw Normal View History

2019-06-01 14:02:49 +00:00
#!/bin/bash
find {configuration,secrets} -type f \
| grep --perl-regexp --invert-match "\.sample$|\.gen$|/.gitignore$" \
| while read filename; do
consul kv put "${filename}" "@${filename}"
done