Guest User

Untitled

a guest
Mar 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3.  
  4. # All Vagrant configuration is done below. The "2" in Vagrant.configure
  5. # configures the configuration version (we support older styles for
  6. # backwards compatibility). Please don't change it unless you know what
  7. # you're doing.
  8. Vagrant.configure("2") do |c|
  9. c.vm.define 'r10k-install-test', primary: true do |v|
  10. v.vm.box = 'centos/7'
  11.  
  12. v.vm.provider :virtualbox do |vb|
  13. vb.gui = 'true'
  14. vb.customize([
  15. 'modifyvm', :id,
  16. '--memory', '4096',
  17. '--cpus', '2',
  18. '--natdnshostresolver1', 'on',
  19. # this is to stop VirtualBox from blocking ALSA on the local host
  20. '--audio', 'null'
  21. ])
  22. end
  23. end
  24.  
  25. # Disable automatic box update checking. If you disable this, then
  26. # boxes will only be checked for updates when the user runs
  27. # `vagrant box outdated`. This is not recommended.
  28. # config.vm.box_check_update = false
  29.  
  30. # Create a forwarded port mapping which allows access to a specific port
  31. # within the machine from a port on the host machine. In the example below,
  32. # accessing "localhost:8080" will access port 80 on the guest machine.
  33. # NOTE: This will enable public access to the opened port
  34. # config.vm.network "forwarded_port", guest: 80, host: 8080
  35.  
  36. # Create a forwarded port mapping which allows access to a specific port
  37. # within the machine from a port on the host machine and only allow access
  38. # via 127.0.0.1 to disable public access
  39. # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
  40.  
  41. # Create a private network, which allows host-only access to the machine
  42. # using a specific IP.
  43. # config.vm.network "private_network", ip: "192.168.33.10"
  44.  
  45. # Create a public network, which generally matched to bridged network.
  46. # Bridged networks make the machine appear as another physical device on
  47. # your network.
  48. # config.vm.network "public_network"
  49.  
  50. # Share an additional folder to the guest VM. The first argument is
  51. # the path on the host to the actual folder. The second argument is
  52. # the path on the guest to mount the folder. And the optional third
  53. # argument is a set of non-required options.
  54. # config.vm.synced_folder "../data", "/vagrant_data"
  55.  
  56. # Provider-specific configuration so you can fine-tune various
  57. # backing providers for Vagrant. These expose provider-specific options.
  58. # Example for VirtualBox:
  59. #
  60. # config.vm.provider "virtualbox" do |vb|
  61. # # Display the VirtualBox GUI when booting the machine
  62. # vb.gui = true
  63. #
  64. # # Customize the amount of memory on the VM:
  65. # vb.memory = "1024"
  66. # end
  67. #
  68. # View the documentation for the provider you are using for more
  69. # information on available options.
  70.  
  71. # Enable provisioning with a shell script. Additional provisioners such as
  72. # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
  73. # documentation for more information about their specific syntax and use.
  74. # config.vm.provision "shell", inline: <<-SHELL
  75. # apt-get update
  76. # apt-get install -y apache2
  77. # SHELL
  78. end
Add Comment
Please, Sign In to add comment