1 # put a lvm.conf file on the host,
2 # optionally with the global_filter attribute set,
3 # with issue_discards set as configured.
5 Optional[String] $global_filter = undef,
6 Boolean $issue_discards = false,
8 if (versioncmp($::lsbmajdistrelease, '10') >= 0) {
9 $template = 'lvm/lvm.conf-buster.erb'
11 $template = 'lvm/lvm.conf-stretch.erb'
14 file { '/etc/lvm/lvm.conf':
16 content => template($template),
17 notify => [ Exec['update-initramfs -u'], Exec['vgscan'] ];
21 path => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin',