> like shouldn't something like this work??
>
> puppet-lvm {'setvolume':
>        vg => 'myvg',
>        pv => '/dev/sdb',
>        fstype => 'ext3',
>        name => 'mylv',
>        size =>'8G',
>        }
>
>
> https://github.com/puppetlabs/puppet-lvm

The module is has a define like this:
define lvm::volume($vg, $pv, $fstype = undef, $size = undef, $ensure) { ..

which means $ensure has no default value

also, it has a snip
"default: {
      fail ( 'puppet-lvm::volume: ensure parameter can only be set to
cleaned, absent or present' )
    }"

So if you dont provide an $ensure, it will fail with the above error.


Adding to Walter's snip ..

lvm::volume {'setvolume':
         vg => 'myvg',
         pv => '/dev/sdb',
         fstype => 'ext3',
         name => 'mylv',
         size =>'8G',
         ensure => 'present',
         }



-- 
Krish
www.toonheart.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to