diff --git a/README.md b/README.md index 494d6e4ac73fa2332cfb4791a7616696a246c171..d48083151a5337ff6f4a129ae8fa7ed4f90b362b 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ work). ## Prerequisites to work on this project using vagrant: - [vagrant](http://www.vagrantup.com/) - [virtualbox](https://www.virtualbox.org/) +- nfs + - run `apt-get install nfs-kernel-server` or your OS equivalent - optional: [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) - run `vagrant plugin install vagrant-hostsupdater` to install diff --git a/Vagrantfile b/Vagrantfile index fe2500e1e2c9f12cbe298fdd3a09289b63ea0eae..bbc38d6dd2c3a7f1fac0f8c19c5b980c7523b86c 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -44,10 +44,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| core.vm.network :private_network, ip: "#{BASE_IP_ADDR}.#{i+1}" core.vm.synced_folder ".", "/data/indiehosters", id: "coreos-indiehosters", :nfs => true, :mount_options => ['nolock,vers=3,udp'] core.vm.provision :file, source: "./cloud-config", destination: "/tmp/vagrantfile-user-data" - core.vm.provision :shell, inline: "cp /data/indiehosters/scripts/unsecure-certs/*.pem /data/server-wide/haproxy/approved-certs" core.vm.provision :shell, path: "./scripts/setup.sh", args: [HOSTNAME] + core.vm.provision :shell, inline: "cp /data/indiehosters/scripts/unsecure-certs/*.pem /data/server-wide/haproxy/approved-certs" core.vm.provision :shell, inline: "etcdctl set /services/default '{\"app\":\"nginx\", \"hostname\":\"#{HOSTNAME}\"}'" - core.vm.provision :shell, path: "./scripts/approve-user.sh", args: [HOSTNAME, "nginx"] + core.vm.provision :shell, path: "./scripts/activate-user.sh", args: [HOSTNAME, "nginx"] end end end