Skip to content

Installs libvirt with ruby bindings. Provides several resources for manipulating libvirt objects.

Notifications You must be signed in to change notification settings

vpslab/libvirt-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Installs libvirt with Ruby bindings. Provides set of resources to manage domain, network and several devices.

Usage

libvirt_network 'fake_network' do
  netmask    '255.255.0.0'
  gateway    '192.168.42.1'
  bridge     'fakebr'
  forward    'nat'
  dhcp_range :start => '192.168.42.100', :end => '192.168.42.200'

  action [:define, :create, :autostart]
end

libvirt_domain 'fake_dummy' do
  provider 'libvirt_domain_kvm'
  vcpu     '2'
  memory   '512M'
  arch     'amd64'

  action [:define, :create, :autostart]
end

libvirt_disk_device 'vda' do
  source '/dev/mapper/vdisk-vm--dummy'
  domain 'fake_dummy'

  action :nothing
  subscribes :attach, resources(:libvirt_domain => 'fake_dummy'), :immediately
end

libvirt_network_interface '00:57:20:f8:94:cf' do
  source 'fakebr'
  domain 'fake_dummy'

  action :nothing
  subscribes :attach, resources(:libvirt_domain => 'fake_dummy'), :immediately
end

About

Installs libvirt with ruby bindings. Provides several resources for manipulating libvirt objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages