Class: Beaker::VagrantLibvirt
- Inherits:
-
Vagrant
- Object
- Hypervisor
- Vagrant
- Beaker::VagrantLibvirt
- Defined in:
- lib/beaker/hypervisor/vagrant_libvirt.rb
Constant Summary
Constants inherited from Hypervisor
Constants included from HostPrebuiltSteps
HostPrebuiltSteps::APT_CFG, HostPrebuiltSteps::ARCHLINUX_PACKAGES, HostPrebuiltSteps::CUMULUS_PACKAGES, HostPrebuiltSteps::DEBIAN_PACKAGES, HostPrebuiltSteps::ETC_HOSTS_PATH, HostPrebuiltSteps::ETC_HOSTS_PATH_SOLARIS, HostPrebuiltSteps::FREEBSD_PACKAGES, HostPrebuiltSteps::IPS_PKG_REPO, HostPrebuiltSteps::NTPSERVER, HostPrebuiltSteps::OPENBSD_PACKAGES, HostPrebuiltSteps::PSWINDOWS_PACKAGES, HostPrebuiltSteps::ROOT_KEYS_SCRIPT, HostPrebuiltSteps::ROOT_KEYS_SYNC_CMD, HostPrebuiltSteps::ROOT_KEYS_SYNC_CMD_AIX, HostPrebuiltSteps::SLEEPWAIT, HostPrebuiltSteps::SLES10_PACKAGES, HostPrebuiltSteps::SLES_PACKAGES, HostPrebuiltSteps::SOLARIS10_PACKAGES, HostPrebuiltSteps::SOLARIS11_PACKAGES, HostPrebuiltSteps::TRIES, HostPrebuiltSteps::UNIX_PACKAGES, HostPrebuiltSteps::WINDOWS_PACKAGES
Class Attribute Summary collapse
-
.memory ⇒ Object
readonly
Returns the value of attribute memory.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Vagrant
#cleanup, cpus, #get_ip_from_vagrant_file, #initialize, #make_vfile, memsize, #private_network_generator, #rand_chunk, #randip, #randmac, #set_ssh_config, #vagrant_cmd
Methods inherited from Hypervisor
#cleanup, #configure, create, #generate_host_name, #initialize, #proxy_package_manager, #validate
Methods included from HostPrebuiltSteps
#add_el_extras, #additive_hash_merge, #apt_get_update, #check_and_install_packages_if_needed, #construct_env, #copy_file_to_remote, #copy_ssh_to_root, #disable_iptables, #disable_se_linux, #disable_updates, #enable_root_login, #get_domain_name, #get_ip, #hack_etc_hosts, #install_one_of_packages, #package_proxy, #proxy_config, #set_env, #set_etc_hosts, #sync_root_keys, #timesync, #validate_host
Methods included from DSL::Patterns
Constructor Details
This class inherits a constructor from Beaker::Vagrant
Class Attribute Details
.memory ⇒ Object (readonly)
Returns the value of attribute memory.
8 9 10 |
# File 'lib/beaker/hypervisor/vagrant_libvirt.rb', line 8 def memory @memory end |
Class Method Details
.build_options_str(options) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/beaker/hypervisor/vagrant_libvirt.rb', line 23 def self.() = '' if ['libvirt'] = [] ['libvirt'].each do |k, v| << " node.#{k} = '#{v}'" end = .join("\n") end "#{}\n" end |
.provider_vfile_section(host, options) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/beaker/hypervisor/vagrant_libvirt.rb', line 15 def self.provider_vfile_section(host, ) " v.vm.provider :libvirt do |node|\n" + " node.cpus = #{cpus(host, )}\n" + " node.memory = #{memsize(host, )}\n" + () + " end\n" end |
Instance Method Details
#provision(provider = 'libvirt') ⇒ Object
11 12 13 |
# File 'lib/beaker/hypervisor/vagrant_libvirt.rb', line 11 def provision(provider = 'libvirt') super end |