Sha256: 3eb6238bfd69c83a69ebd9944c2d4b29705c8dcc10150a107cbca6e6b577b864
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
module VagrantMutate module Converter class Libvirt < Converter def generate_metadata { 'provider' => @output_box.provider_name, 'format' => @output_box.image_format, 'virtual_size' => ( @input_box.virtual_size.to_f / (1024 * 1024 * 1024)).ceil } end def generate_vagrantfile if @force_virtio == true disk_bus = 'virtio' else disk_bus = @input_box.disk_interface end <<-EOF config.vm.provider :libvirt do |libvirt| libvirt.disk_bus = '#{disk_bus}' end EOF end def write_specific_files # nothing to do here end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-mutate-1.2.0 | lib/vagrant-mutate/converter/libvirt.rb |
vagrant-mutate-1.1.0 | lib/vagrant-mutate/converter/libvirt.rb |