EOX GitLab Instance

Commit 4df4788e authored by Marko Locher's avatar Marko Locher
Browse files

Updated to latest version of Vagrant & Vagrantfile

parent b810fb62
......@@ -10,58 +10,59 @@ project = "eox-release"
# You should not need to change anything below this line!
#
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.
Vagrant.configure("2") 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.4, built using veewee
# See https://gitlab.eox.at/vagrant/veewee/ for more information
config.vm.box = "centos64"
config.vm.host_name = "centos6-rpmbuild.vagrant"
# The box needs a bit more RAM than the default vagrant box
config.vm.customize ["modifyvm", :id, "--memory", 1024]
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "centos64"
# 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://downloads.eox.at/boxes/centos64.box"
# 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://downloads.eox.at/boxes/centos64.box"
# Boot with a GUI so you can see the screen. (Default is headless)
#config.vm.boot_mode = :gui
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network :forwarded_port, guest: 80, host: 8080
# 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"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network :private_network, ip: "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
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network :public_network
# 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
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.synced_folder "build/SPECS", "/home/vagrant/rpmbuild/SPECS"
config.vm.synced_folder "build/SOURCES", "/home/vagrant/rpmbuild/SOURCES"
config.vm.synced_folder "build/RPMS", "/home/vagrant/rpmbuild/RPMS"
config.vm.synced_folder "build/SRPMS", "/home/vagrant/rpmbuild/SRPMS"
# 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"
config.vm.share_folder "specs", "/home/vagrant/rpmbuild/SPECS", "build/SPECS"
config.vm.share_folder "sources", "/home/vagrant/rpmbuild/SOURCES", "build/SOURCES"
config.vm.share_folder "rpms", "/home/vagrant/rpmbuild/RPMS", "build/RPMS"
config.vm.share_folder "srpms", "/home/vagrant/rpmbuild/SRPMS", "build/SRPMS"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# View the documentation for the provider you're using for more
# information on available options.
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 1024]
end
# 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, :facter => { "project" => project } do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "rpmbuild.pp"
puppet.module_path = "puppet/modules"
puppet.facter
end
end
\ No newline at end of file
# 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 ..pp in the manifests_path directory.
config.vm.provision :puppet, :facter => { "project" => project } do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.manifest_file = "rpmbuild.pp"
puppet.module_path = "puppet/modules"
puppet.facter
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment