Issue #14718 has been reported by Sander Hollaar.
----------------------------------------
Feature #14718: Module puppetlabs/lvm: size 'undef' doesn't work when creating
a new logical volume
https://projects.puppetlabs.com/issues/14718
Author: Sander Hollaar
Status: Unreviewed
Priority: Normal
Assignee:
Category: modules
Target version:
Affected Puppet version:
Keywords: lvm
Branch:
I would like to propose this patch to make it possible to create a logical
volume which takes up all space in the volume group:
<pre>
--- a/lib/puppet/provider/logical_volume/lvm.rb
+++ b/lib/puppet/provider/logical_volume/lvm.rb
@@ -16,6 +16,8 @@
args.push('--size', @resource[:size])
elsif @resource[:initial_size]
args.push('--size', @resource[:initial_size])
+ else
+ args.push('-l100%FREE')
end
args << @resource[:volume_group]
lvcreate(*args)
</pre>
Recipe:
<pre>
logical_volume { 'vhosts':
ensure => present,
volume_group => 'vg00',
size => undef,
require => Volume_group['vg00'],
}
</pre>
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.