Puppet Class: lvm

Defined in:
modules/lvm/manifests/init.pp

Overview

Class: lvm

Parameters:

  • package_ensure (Enum['installed', 'present', 'latest', 'absent']) (defaults to: 'installed')
  • manage_pkg (Boolean) (defaults to: false)
  • volume_groups (Hash) (defaults to: {})


3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/lvm/manifests/init.pp', line 3

class lvm (
  Enum['installed', 'present', 'latest', 'absent'] $package_ensure = 'installed',
  Boolean $manage_pkg                                              = false,
  Hash $volume_groups                                              = {},
) {

  if $manage_pkg {
    package { 'lvm2':
      ensure   => $package_ensure
    }
  }

  create_resources('lvm::volume_group', $volume_groups)
}