Skip to content

Instantly share code, notes, and snippets.

@termie
Created November 25, 2014 03:10
Show Gist options
  • Save termie/37e542231d46ed24bda2 to your computer and use it in GitHub Desktop.
Save termie/37e542231d46ed24bda2 to your computer and use it in GitHub Desktop.
# Ensure that etcd is starting fresh
config.vm.provision :shell, :inline => "systemctl stop etcd"
config.vm.provision :shell, :inline => "rm -rf /var/lib/etcd/*", :privileged => true
$script = <<SCRIPT
for x in $(cat /etc/environment); do
export $x
done
coreos-cloudinit --from-file /var/lib/coreos-vagrant/vagrantfile-user-data
SCRIPT
config.vm.provision :shell, :inline => $script, :privileged => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment