2
0

Vagrantfile 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant::Config.run do |config|
  4. # All Vagrant configuration is done here. The most common configuration
  5. # options are documented and commented below. For a complete reference,
  6. # please see the online documentation at vagrantup.com.
  7. # Every Vagrant virtual environment requires a box to build off of.
  8. config.vm.box = "lucid32"
  9. # The url from where the 'config.vm.box' box will be fetched if it
  10. # doesn't already exist on the user's system.
  11. config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
  12. # Boot with a GUI so you can see the screen. (Default is headless)
  13. #config.vm.boot_mode = :gui
  14. # Assign this VM to a host-only network IP, allowing you to access it
  15. # via the IP. Host-only networks can talk to the host machine as well as
  16. # any other machines on the same network, but cannot be accessed (through this
  17. # network interface) by any external networks.
  18. # config.vm.network :hostonly, "192.168.33.10"
  19. # Assign this VM to a bridged network, allowing you to connect directly to a
  20. # network using the host's network device. This makes the VM appear as another
  21. # physical device on your network.
  22. # config.vm.network :bridged
  23. # Forward a port from the guest to the host, which allows for outside
  24. # computers to access the VM, whereas host only networking does not.
  25. config.vm.forward_port 80, 8081
  26. # Pass custom arguments to VBoxManage before booting VM
  27. config.vm.customize [
  28. # 'modifyvm', :id, '--chipset', 'ich9', # solves kernel panic issue on some host machines
  29. # '--uartmode1', 'file', 'C:\\base6-console.log' # uncomment to change log location on Windows
  30. "setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"
  31. ]
  32. # Share an additional folder to the guest VM. The first argument is
  33. # an identifier, the second is the path on the guest to mount the
  34. # folder, and the third is the path on the host to the actual folder.
  35. # config.vm.share_folder "v-data", "/vagrant_data", "../data"
  36. # Enable provisioning with Puppet stand alone. Puppet manifests
  37. # are contained in a directory path relative to this Vagrantfile.
  38. # You will need to create the manifests directory and a manifest in
  39. # the file lucid32.pp in the manifests_path directory.
  40. #
  41. # An example Puppet manifest to provision the message of the day:
  42. #
  43. # # group { "puppet":
  44. # # ensure => "present",
  45. # # }
  46. # #
  47. # # File { owner => 0, group => 0, mode => 0644 }
  48. # #
  49. # # file { '/etc/motd':
  50. # # content => "Welcome to your Vagrant-built virtual machine!
  51. # # Managed by Puppet.\n"
  52. # # }
  53. #
  54. # config.vm.provision :puppet do |puppet|
  55. # puppet.manifests_path = "manifests"
  56. # puppet.manifest_file = "lucid32.pp"
  57. # end
  58. config.vm.provision :puppet do |puppet|
  59. puppet.manifests_path = "puppet/manifests"
  60. puppet.manifest_file = "default.pp"
  61. end
  62. # config.vm.provision :puppet do |puppet|
  63. # puppet.manifests_path = "puppet/manifests"
  64. # puppet.module_path = "puppet/modules"
  65. # puppet.manifest_file = "zf1.pp"
  66. # puppet.options = [
  67. # '--verbose',
  68. # #'--debug',
  69. # # '--graph',
  70. # # '--graphdir=/vagrant/puppet/graphs'
  71. # ]
  72. # end
  73. end