Created
February 5, 2015 19:25
-
-
Save debrouwere/361c4fb4bc482c1cc1c8 to your computer and use it in GitHub Desktop.
Etcd snapshot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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