Resource Type: libvirt_pool

Defined in:
lib/puppet/type/libvirt_pool.rb
Providers:
virsh

Overview

Manages libvirt pools

Examples:

libvirt_pool { 'default' :
  ensure => absent
}
libvirt_pool { 'mydirpool' :
  ensure    => present,
  active    => true,
  autostart => true,
  type      => 'dir',
  target    => '/tmp/mypool',
}
libvirt_pool { 'mydirpool2' :
  ensure       => present,
  active       => true,
  autostart    => true,
  type         => 'dir',
  target       => '/tmp/mypool2',
  target_owner => 107,
  target_group => 107,
  target_mode  => '0755',
}

libvirt_pool { 'vm_storage':
  ensure    => 'present',
  active    => 'true',
  type      => 'logical',
  sourcedev => ['/dev/sdb', '/dev/sdc'],
  target    => '/dev/vg0'
}

Properties

  • active (defaults to: true)

    Whether the pool should be started.

    Supported values:
    • true
    • false
  • autostart (defaults to: false)

    Whether the pool should be autostarted.

    Supported values:
    • true
    • false
  • ensure (defaults to: present)

    Manages the creation or the removal of a pool present means that the pool will be defined and created absent means that the pool will be purged from the system

    Supported values:
    • present
    • absent

Parameters

  • name (namevar)

    The pool name.

    Supported values:
    • %r{^\S+$}
  • sourcedev

    The source device.

    Supported values:
    • %r{(\/)?(\w)}
  • sourceformat

    The source format.

    Supported values:
    • auto
    • nfs
    • glusterfs
    • cifs
  • sourcehost

    The source host.

    Supported values:
    • %r{^\S+$}
  • sourcename

    The source name.

    Supported values:
    • %r{^\S+$}
  • sourcepath

    The source path.

    Supported values:
    • %r{(\/)?(\w)}
  • target

    The target.

    Supported values:
    • %r{(\/)?(\w)}
  • target_group

    The group of the target dir or filesystem

    Supported values:
    • %r{^\S+$}
  • target_mode

    The mode of the target dir or filesystem

    Supported values:
    • %r{^[0-7]{4}$}
  • target_owner

    The owner of the target dir or filesystem

    Supported values:
    • %r{^\S+$}
  • type

    The pool type.

    Supported values:
    • dir
    • netfs
    • fs
    • logical
    • disk
    • iscsi
    • mpath
    • rbd
    • sheepdog