Thank you for your help.

I am pretty new to puppet but am making some progress.

One question how do I get the:

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

To work within a node? I can pass variables to classes easy enough
within nodes but I can't seem to be able to get the nodes to do
anything with  defined resource types.

Thanks again for the help.

On Jan 21, 2:13 am, krish <das.srikris...@gmail.com> wrote:
> > 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:
> definelvm::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',
>          }
>
> --
> Krishwww.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