forked from projectatomic/adb-vagrant-registration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
44 lines (35 loc) · 1.09 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
# BEING USED FOR TESTING, REMOVE BEFORE RELEASE
#
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
# Example configuration of new VM..
config.vm.define :default do |vagrant_host|
# Box name
vagrant_host.vm.box = 'rhel-7.0'
# Domain Specific Options
vagrant_host.vm.provider :libvirt do |domain|
domain.memory = 2048
domain.cpus = 1
end
config.vm.synced_folder './', '/vagrant', type: 'rsync'
# vagrant_host.vm.network :private_network,
# :libvirt__network_name => 'either_nat'
end
# config.vm.provision "ansible" do |ansible|
# ansible.playbook = "playbook.yml"
# ansible.extra_vars = "vagrant-config.yml"
# end
# config.vm.provision "ansible" do |ansible|
# ansible.playbook = "playbook.yml"
# ansible.extra_vars = "vagrant-config.yml"
# ansible.sudo = "true"
# end
# Options for libvirt vagrant provider.
config.vm.provider :libvirt do |libvirt|
libvirt.driver = 'kvm'
libvirt.connect_via_ssh = false
libvirt.username = 'root'
libvirt.storage_pool_name = 'mnt_vms'
end
end