Skip to content

Instantly share code, notes, and snippets.

@ianblenke
Created March 1, 2015 07:56
Show Gist options
  • Save ianblenke/323fbbf2607500736443 to your computer and use it in GitHub Desktop.
Save ianblenke/323fbbf2607500736443 to your computer and use it in GitHub Desktop.
Update the discovery URL in a CoreUS user-data file
eval sed -i -e "'s%discovery: .*\$%discovery: $(echo -n $(curl -sL https://discovery.etcd.io/new))%'" user-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment