Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resubmitting from a newly rebased branch with a single commit. I retracted the previous pull request which was submitted 4 months ago.
Example for mirrors:
package { "lvm2":
ensure => "installed"
}
#-----------------------------------------------------------------
LVM (Logical Volume Manager) mirrors in puppet by Martin Wangel.
Tested locally, and with Amazon EBS volumes on EC2 instances.
#-----------------------------------------------------------------
$lvm_file_system="ext4" # ext4 or xfs, xfs can not be resized by this version of this puppet module
$vgname="mmvg" # name of Volume Group
$lvname="mmlv" # name of Logical Volume
$devices=["/dev/sdb1","/dev/sdb2"] # Physical Devices
$lv_fs_size="2G" # Size of Logical Volume
physical_volume { [$devices]:
ensure => present
}
volume_group { "${vgname}":
ensure => present,
physical_volumes => $devices,
require => [ Physical_volume[$devices] ]
} ->
logical_volume { "${lvname}":
ensure => present,
volume_group => $vgname,
size => $lv_fs_size,
mirror => 1,
mirrorlog => core,
region_size => 4,
alloc => normal,
no_sync => 1
} ->
filesystem { "/dev/${vgname}/${lvname}":
ensure => present,
fs_type => $lvm_file_system,
} ->
mount { "lvm-${vgname}-${lvname}":
name => "/u",
ensure => mounted,
device => "/dev/${vgname}/${lvname}",
fstype => $lvm_file_system,
options => "defaults"
}