Move vagrant related things to utils/
This commit is contained in:
parent
ba39bf7a68
commit
20e471e922
@ -1,4 +1,5 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
pushd utils/vagrant
|
||||||
vagrant up
|
vagrant up
|
||||||
vagrant ssh solar -c /vagrant/deploy/deploy.sh
|
vagrant ssh solar -c /vagrant/deploy/deploy.sh
|
||||||
|
8
Vagrantfile → utils/vagrant/Vagrantfile
vendored
8
Vagrantfile → utils/vagrant/Vagrantfile
vendored
@ -50,6 +50,10 @@ def shell_script(filename, env=[], args=[])
|
|||||||
"/bin/bash -c \"#{env.join ' '} #{filename} #{args.join ' '} \""
|
"/bin/bash -c \"#{env.join ' '} #{filename} #{args.join ' '} \""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not SYNC_TYPE
|
||||||
|
SYNC_TYPE = "rsync"
|
||||||
|
end
|
||||||
|
|
||||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||||
|
|
||||||
config.vm.define "solar", primary: true do |config|
|
config.vm.define "solar", primary: true do |config|
|
||||||
@ -85,10 +89,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||||||
end
|
end
|
||||||
|
|
||||||
if SYNC_TYPE == 'nfs'
|
if SYNC_TYPE == 'nfs'
|
||||||
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
config.vm.synced_folder "../../", "/vagrant", type: "nfs"
|
||||||
end
|
end
|
||||||
if SYNC_TYPE == 'rsync'
|
if SYNC_TYPE == 'rsync'
|
||||||
config.vm.synced_folder ".", "/vagrant", type: "rsync",
|
config.vm.synced_folder "../../", "/vagrant", type: "rsync",
|
||||||
rsync__args: ["--verbose", "--archive", "--delete", "-z"]
|
rsync__args: ["--verbose", "--archive", "--delete", "-z"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user