EOX GitLab Instance

Skip to content
Snippets Groups Projects
Vagrantfile 2.55 KiB
Newer Older
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant::Config.run do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  # This box is a minimal install of centos 6.3  
  config.vm.box = "centos63"
  config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-63-x64.box'
  config.vm.host_name = "centos-63-64-rpmbuild.vagrant"
  config.vm.customize ["modifyvm", :id, "--memory", 1024]

  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  # config.vm.box_url = "http://domain.com/path/to/above.box"

  # Boot with a GUI so you can see the screen. (Default is headless)
  # config.vm.boot_mode = :gui

  # Assign this VM to a host-only network IP, allowing you to access it
  # via the IP. Host-only networks can talk to the host machine as well as
  # any other machines on the same network, but cannot be accessed (through this
  # network interface) by any external networks.
  # config.vm.network :hostonly, "192.168.33.10"

  # Assign this VM to a bridged network, allowing you to connect directly to a
  # network using the host's network device. This makes the VM appear as another
  # physical device on your network.
  # config.vm.network :bridged

  # Forward a port from the guest to the host, which allows for outside
  # computers to access the VM, whereas host only networking does not.
   config.vm.forward_port 80, 8088

  # Share an additional folder to the guest VM. The first argument is
  # an identifier, the second is the path on the guest to mount the
  # folder, and the third is the path on the host to the actual folder.
  # config.vm.share_folder "v-data", "/vagrant_data", "../data"

  # Enable provisioning with Puppet stand alone.  Puppet manifests
  # are contained in a directory path relative to this Vagrantfile.
  # You will need to create the manifests directory and a manifest in
  # the file rpmbuild.pp in the manifests_path directory.
  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "puppet/manifests"
    puppet.manifest_file  = "rpmbuild.pp"
    puppet.module_path = "puppet/modules"
  end

  # Auto update guest additions, to use this, please install vagrant-vbguest
  # vagrant gem install vagrant-vbguest
  Vagrant::Config.run do |config|
    # set auto_update to false, if do NOT want to check the correct additions
    # version when booting this machine
    #config.vbguest.auto_update = false
  end
end