aboutsummaryrefslogtreecommitdiff
path: root/consul/restore_configuration.sh
blob: ba4d353821f454867142124e0bb2fb68bd4f6b07 (plain) (blame)
1
2
3
4
5
6
7
#!/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