Welcome, Guest. Please login or register.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - malber-jss

Pages: [1]
1
General Questions / Development Environment using Vagrant?
« on: September 05, 2016, 09:00:35 PM »
I was trying to setup a development environment using Vagrant. Will the Vagrant config below work? The shared folder is based on the source code being checkout on the local / host system. Thanks for any help...

Vagrant.configure(2) do |config|
  config.vm.guest = :freebsd
  config.vm.box = "freebsd/FreeBSD-10.3-RELEASE"
  config.ssh.shell = "sh"
  config.ssh.forward_agent = true
  config.vm.base_mac = "080027D14C66"
  config.vm.network "private_network", ip: "192.168.33.10"
  
  config.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root", disabled: false
  
  config.vm.synced_folder "./t1n1wall-code/branches/freebsd10", "/var/freebsd10", :nfs => true, id: "t1n1wall-root", disabled: false

  config.vm.provider "virtualbox" do |vb|
    vb.name = "pfSense FreeBSD-10.3"
    vb.customize ["modifyvm", :id, "--memory", "2048"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
    vb.customize ["modifyvm", :id, "--audio", "none"]
    vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
    vb.customize ["modifyvm", :id, "--nictype2", "virtio"]
  end

  config.vm.provision "shell" do |s|
    s.inline = <<-SHELL
      # pkg install --yes git
    SHELL
  end
end


Pages: [1]