Hi,

site.pp

manifests]$ cat site.pp
import "nodes"
import "modules"

----------------

manifests]$ cat modules.pp
import "lvm"
----------------

cat nodes.pp
node 'luketest.mgmt.mydomain.local' {

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

---------------

The module was originally named puppet-lvm I tried renaming to lvm

but it doesn't matter get the same results

Does the following:

When I name the module lvm. I applys the config but doesn't do
anything.
info: Caching catalog for luketest.mgmt.mydomain.local
info: Applying configuration version '1328241141'
notice: Finished catalog run in 0.03 seconds
----------------

manifests]$ cat modules.pp
import "puppet-lvm"
----------------

cat nodes.pp
node 'luketest.mgmt.mydomain.local' {

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

------------
I also tried the following:

cat nodes.pp
node 'luketest.mgmt.mydomain.local' {

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

---------

but got the following error:

err: Could not retrieve catalog from remote server: Error 400 on
SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type puppet-lvm::lvm::volume at /srv/puppet/manifests/
nodes.pp:10 on node luketest.mgmt.mydomain.local
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run


On Feb 3, 8:59 am, Felix Frank <felix.fr...@alumni.tu-berlin.de>
wrote:
> Hi,
>
> On 02/03/2012 01:33 PM, Luke wrote:
>
> > Hmmm that is what I have been doing but for some reason it keeps
> > messing up. Do I have to do an include or something for the puppet-lvm
> > module? I mean I already have an import statement for it in my
> > sites.pp.
>
> please share a relevant excerpt from your manifest.
>
> Is an error generated? Please share that as well.
>
> Thanks,
> Felix

-- 
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