暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Vagrantfile 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # -*- mode: ruby -*-
  2. Vagrant.configure('2') do |config|
  3. config.vm.hostname = 'sovereign.local'
  4. config.vm.network 'private_network', ip: '172.16.100.2'
  5. config.vm.provision :ansible do |ansible|
  6. ansible.playbook = 'site.yml'
  7. ansible.host_key_checking = false
  8. ansible.extra_vars = { ansible_ssh_user: 'vagrant', testing: true }
  9. ansible.groups = {
  10. "testing" => ["jessie"]
  11. }
  12. # ansible.tags = ['blog']
  13. # ansible.skip_tags = ['openvpn']
  14. # ansible.verbose = 'vvvv'
  15. end
  16. config.vm.provider :virtualbox do |v|
  17. v.memory = 512
  18. end
  19. config.vm.provider :vmware_fusion do |v|
  20. v.vmx['memsize'] = '512'
  21. end
  22. # vagrant-cachier
  23. #
  24. # Install the plugin by running: vagrant plugin install vagrant-cachier
  25. # More information: https://github.com/fgrehm/vagrant-cachier
  26. if Vagrant.has_plugin? 'vagrant-cachier'
  27. config.cache.enable :apt
  28. config.cache.scope = :box
  29. end
  30. # Debian 8 64-bit (officially supported)
  31. config.vm.define 'jessie', primary: true do |jessie|
  32. jessie.vm.box = 'box-cutter/debian81'
  33. end
  34. # Ubuntu 16.04 (LTS) 64-bit (currently unavailable)
  35. config.vm.define 'xenial', autostart: false do |xenial|
  36. xenial.vm.box = 'box-cutter/ubuntu1604'
  37. end
  38. end