Update Vagrantfile

Update to use Ubuntu 18.04
pull/11/head
Manabu Niseki 2019-08-04 15:08:45 +09:00
parent 39250bf897
commit c589d991c3
1 changed files with 12 additions and 12 deletions

24
Vagrantfile vendored
View File

@ -12,9 +12,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# please see the online documentation at vagrantup.com. # please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of. # Every Vagrant virtual environment requires a box to build off of.
#config.vm.box = "ubuntu/artful64" # config.vm.box = "ubuntu/artful64"
config.vm.box = "fso/artful64" config.vm.box = "ubuntu/bionic64"
config.vm.provision :shell, path: "bootstrap.sh", args: "#{MISP_ENV}" config.vm.provision :shell, path: "bootstrap.sh", args: MISP_ENV.to_s
# Disable automatic box update checking. If you disable this, then # Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs # boxes will only be checked for updates when the user runs
@ -45,23 +45,23 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# the path on the guest to mount the folder. And the optional third # the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options. # argument is a set of non-required options.
disabled = true disabled = true
vm_name = "MISP - Ubuntu 17.10" vm_name = "MISP - Ubuntu 18.04"
if "#{MISP_ENV}" == "dev" if MISP_ENV.to_s == "dev"
disabled = false disabled = false
vm_name.concat(" - DEV") vm_name.concat(" - DEV")
end end
config.vm.synced_folder "..", "/var/www/MISP", config.vm.synced_folder "..", "/var/www/MISP",
owner: "www-data", group: "www-data", disabled: disabled owner: "www-data", group: "www-data", disabled: disabled
# Provider-specific configuration so you can fine-tune various # Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options. # backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox: # Example for VirtualBox:
# #
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
# # Don't boot with headless mode # # Don't boot with headless mode
# vb.gui = true # vb.gui = true
# #
# # Use VBoxManage to customize the VM. For example to change memory: # # Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"] vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--name", vm_name] vb.customize ["modifyvm", :id, "--name", vm_name]
end end