EOX GitLab Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vagrant
Builder
Commits
4df4788e
Commit
4df4788e
authored
Apr 02, 2013
by
Marko Locher
Browse files
Updated to latest version of Vagrant & Vagrantfile
parent
b810fb62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Vagrantfile
View file @
4df4788e
...
...
@@ -10,58 +10,59 @@ project = "eox-release"
# You should not need to change anything below this line!
#
Vagrant
::
C
onfig
.
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
.
c
onfig
ure
(
"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. Thi
s make
s
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 network
s 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment