infrastructure/consul/restore_configuration.sh
2019-07-11 09:33:07 +02:00

7 lines
210 B
Bash
Executable file

#!/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