Vagrantfile 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. # Hostname
  27. config.vm.host_name = "zf1.dev"
  28. # Pass custom arguments to VBoxManage before booting VM
  29. config.vm.customize [
  30. # 'modifyvm', :id, '--chipset', 'ich9', # solves kernel panic issue on some host machines
  31. # '--uartmode1', 'file', 'C:\\base6-console.log' # uncomment to change log location on Windows
  32. "setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"
  33. ]
  34. # Share an additional folder to the guest VM. The first argument is
  35. # an identifier, the second is the path on the guest to mount the
  36. # folder, and the third is the path on the host to the actual folder.
  37. # config.vm.share_folder "v-data", "/vagrant_data", "../data"
  38. # Enable provisioning with Puppet stand alone. Puppet manifests
  39. # are contained in a directory path relative to this Vagrantfile.
  40. # You will need to create the manifests directory and a manifest in
  41. # the file lucid32.pp in the manifests_path directory.
  42. #
  43. # An example Puppet manifest to provision the message of the day:
  44. #
  45. # # group { "puppet":
  46. # # ensure => "present",
  47. # # }
  48. # #
  49. # # File { owner => 0, group => 0, mode => 0644 }
  50. # #
  51. # # file { '/etc/motd':
  52. # # content => "Welcome to your Vagrant-built virtual machine!
  53. # # Managed by Puppet.\n"
  54. # # }
  55. #
  56. # config.vm.provision :puppet do |puppet|
  57. # puppet.manifests_path = "manifests"
  58. # puppet.manifest_file = "lucid32.pp"
  59. # end
  60. config.vm.provision :puppet do |puppet|
  61. puppet.manifests_path = "puppet/manifests"
  62. puppet.manifest_file = "default.pp"
  63. end
  64. # config.vm.provision :puppet do |puppet|
  65. # puppet.manifests_path = "puppet/manifests"
  66. # puppet.module_path = "puppet/modules"
  67. # puppet.manifest_file = "zf1.pp"
  68. # puppet.options = [
  69. # '--verbose',
  70. # #'--debug',
  71. # # '--graph',
  72. # # '--graphdir=/vagrant/puppet/graphs'
  73. # ]
  74. # end
  75. end