mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-01-08 15:03:06 -06:00
18ebb9d9ed
Turn on frozen string support in all files by using a comment to avoid enabling across dependencies where it may not work. Fixes: #1177
63 lines
1.8 KiB
Ruby
63 lines
1.8 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
Vagrant.configure("2") do |config|
|
|
|
|
# Example configuration of new VM..
|
|
#
|
|
#config.vm.define :test_vm do |test_vm|
|
|
# Box name
|
|
#
|
|
#test_vm.vm.box = "centos64"
|
|
|
|
# Domain Specific Options
|
|
#
|
|
# See README for more info.
|
|
#
|
|
#test_vm.vm.provider :libvirt do |domain|
|
|
# domain.memory = 2048
|
|
# domain.cpus = 2
|
|
#end
|
|
|
|
# Interfaces for VM
|
|
#
|
|
# Networking features in the form of `config.vm.network`
|
|
#
|
|
#test_vm.vm.network :private_network, :ip => '10.20.30.40'
|
|
#test_vm.vm.network :public_network, :ip => '10.20.30.41'
|
|
#end
|
|
|
|
# Options for Libvirt Vagrant provider.
|
|
config.vm.provider :libvirt do |libvirt|
|
|
|
|
# A hypervisor name to access. Different drivers can be specified, but
|
|
# this version of provider creates KVM machines only. Some examples of
|
|
# drivers are KVM (QEMU hardware accelerated), QEMU (QEMU emulated),
|
|
# Xen (Xen hypervisor), lxc (Linux Containers),
|
|
# esx (VMware ESX), vmwarews (VMware Workstation) and more. Refer to
|
|
# documentation for available drivers (http://libvirt.org/drivers.html).
|
|
libvirt.driver = "kvm"
|
|
|
|
# The name of the server, where Libvirtd is running.
|
|
# libvirt.host = "localhost"
|
|
|
|
# If use ssh tunnel to connect to Libvirt.
|
|
libvirt.connect_via_ssh = false
|
|
|
|
# The username and password to access Libvirt. Password is not used when
|
|
# connecting via ssh.
|
|
libvirt.username = "root"
|
|
#libvirt.password = "secret"
|
|
|
|
# Libvirt storage pool name, where box image and instance snapshots will
|
|
# be stored.
|
|
libvirt.storage_pool_name = "default"
|
|
|
|
# Set a prefix for the machines that's different than the project dir name.
|
|
#libvirt.default_prefix = ''
|
|
end
|
|
end
|
|
|