-
Notifications
You must be signed in to change notification settings - Fork 19
/
Vagrantfile
50 lines (41 loc) · 1.53 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.synced_folder '.', '/vagrant', type: 'nfs'
# VMware Fusion.
# `vagrant up vmware --provider=vmware_fusion`
config.vm.define "vmware" do |vmware|
vmware.vm.hostname = "rhel7-vmware"
vmware.vm.box = "file://builds/vmware-rhel7.box"
vmware.vm.network :private_network, ip: "192.168.3.2"
config.vm.provider :vmware_fusion do |v, override|
v.gui = false
v.vmx["memsize"] = 1024
v.vmx["numvcpus"] = 1
end
config.vm.provision "shell", inline: "echo Hello, World"
end
# VirtualBox.
# `vagrant up virtualbox --provider=virtualbox`
config.vm.define "virtualbox" do |virtualbox|
virtualbox.vm.hostname = "virtualbox-rhel7"
virtualbox.vm.box = "file://builds/virtualbox-rhel7.box"
virtualbox.vm.network :private_network, ip: "172.16.3.2"
config.vm.provider :virtualbox do |v|
v.gui = false
v.memory = 1024
v.cpus = 1
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
if Vagrant.has_plugin?('vagrant-registration')
config.registration.manager = 'subscription_manager'
config.registration.name = virtualbox.vm.hostname
config.registration.username = ENV['rhsm_username']
config.registration.password = ENV['rhsm_password']
config.registration.pools = ENV['rhsm_pool']
end
config.vm.provision "shell", inline: "echo Hello, World"
end
end