Skip to content

Instantly share code, notes, and snippets.

@debrouwere
Created February 5, 2015 19:25
Show Gist options
  • Save debrouwere/361c4fb4bc482c1cc1c8 to your computer and use it in GitHub Desktop.
Save debrouwere/361c4fb4bc482c1cc1c8 to your computer and use it in GitHub Desktop.
Etcd snapshot
ExecStartPre=etcdctl ls /mydir \
| cut -d / -f 3 \
| xargs -I {} echo 'echo {}=$(etcdctl get /mydir/{})' \
| bash > mydir.env
EnvironmentFile=/home/core/mydir.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment