Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / lvm / manifests / init.pp
1 # put a lvm.conf file on the host,
2 #   optionally with the global_filter attribute set,
3 #   with issue_discards set as configured.
4 class lvm(
5   Optional[String] $global_filter = undef,
6   Boolean          $issue_discards = false,
7 ) {
8   if (versioncmp($::lsbmajdistrelease, '10') >= 0) {
9     $template = 'lvm/lvm.conf-buster.erb'
10   } else {
11     $template = 'lvm/lvm.conf-stretch.erb'
12   }
13
14   file { '/etc/lvm/lvm.conf':
15     ensure  => file,
16     content => template($template),
17     notify  => [ Exec['update-initramfs -u'], Exec['vgscan'] ];
18   }
19
20   exec { 'vgscan':
21       path        => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin',
22       refreshonly => true;
23   }
24 }