debugging vagrant
This commit is contained in:
parent
74dadfff5d
commit
e604576990
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue