Forge Home

libvirt

Puppet module for libvirt management

10,803 downloads

8,500 latest version

2.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.5 (latest)
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Sep 4th 2015

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'desalvo-libvirt', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add desalvo-libvirt
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install desalvo-libvirt --version 0.1.5

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download
Tags: kvm, libvirt

Documentation

desalvo/libvirt — version 0.1.5 Sep 4th 2015

puppet-libvirt

Puppet module for managing libvirt configurations.

Table of Contents

  1. Overview - What is the libvirt module?
  2. Usage

Overview

This module is used to install and configure libvirt.

Usage

Parameters:

  • virt_type: the virtualization type, currently only 'kvm' is supported
  • vnc_listen: set this to '0.0.0.0' to enable public VNC access
  • vnc_password: set the VNC password
  • live_migration: set this to true to enable the live migration
  • qemu_user: user for qemu images
  • qemu_group: group for qemu images
  • rhev: Use the ovirt rhev binaries for KVM
  • sanlock: Set this to true if you want to use sanlock
  • sanlock_wd: Set this to false if you do not want to use the sanlock watchdoghdog
  • sanlock_host_id: Unique host id, must be set
  • sanlock_auto_disk_leases: The default sanlock configuration requires the management application to manually define < lease > elements in the guest configuration, typically one lease per disk. An alternative is to enable "auto disk lease" mode. In this usage, libvirt will automatically create a lockspace and lease for each fully qualified disk path. This works if you are able to ensure stable, unique disk paths across all hosts in a network
  • sanlock_require_lease_for_disks: Flag to determine whether we allow starting of guests which do not have any < lease > elements defined in their configuration. If 'sanlock_auto_disk_leases' is false, this setting defaults to true, otherwise it defaults to false
  • sanlock_disk_lease_dir: Custom sanlock lease dir, defaults to /var/lib/libvirt/sanlock
  • sanlock_user: Custom sanlock user, defaults to root
  • sanlock_group: Custom sanlock group, defaults to root

Configuring libvirt

class {'libvirt':
    virt_type    => 'kvm',
    vnc_listen   => "0.0.0.0",
    vnc_password => "mysafepass",
}

Contributors

Release Notes

0.1.5

  • Add sanlock support

0.1.4

  • Fix qemu-img package when RHEV is enabled

0.1.3

  • Support for oVirt RHEV binaries

0.1.2

  • Fix missing option to allow listening to incoming connection

0.1.1

  • New options for live migration and ownership of qemu images

0.1.0

  • Initial version