代码拉取完成,页面将自动刷新
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile used largely for cross-platform testing of
# piksi_firmware dependency installation.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box definitions for different targets
# Ubuntu 14.04 LTS
config.vm.define "trusty" do |trusty64|
trusty64.vm.box = "trusty64"
trusty64.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
end
# Debian 7.6
config.vm.define "wheezy" do |wheezy|
wheezy.vm.box = "wheezy"
wheezy.vm.box_url = "https://github.com/jose-lpa/packer-debian_7.6.0/releases/download/1.0/packer_virtualbox-iso_virtualbox.box"
end
# Networking and memory configuration
config.vm.network "private_network", ip: "192.168.10.200"
config.vm.network :forwarded_port, guest: 22, host: 1234
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |vb|
vb.memory = 1024
vb.cpus = 2
end
# Provisioner definitions
config.vm.provision "ansible" do |ansible|
ansible.playbook = "setup/ansible/provision.yml"
ansible.verbose = "v"
ansible.host_key_checking = false
end
# Shared directory
share_prefix = "share-"
Dir['../*/'].each do |fname|
basename = File.basename(fname)
if basename.start_with?(share_prefix)
mount_path = "/" + basename[share_prefix.length..-1]
puts "Mounting share for #{fname} at #{mount_path}"
config.vm.synced_folder fname, mount_path
end
end
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。