Hi John, I did exactly what you said and got the same result:
debug: Creating default schedules debug: Loaded state in 0.00 seconds debug: /Stage[main]//Node[luketest.mgmt.mydomain.local]/ Lvm::Volume[setvolume]/Volume_group[myvg]/require: requires Physical_volume[/dev/sdb] debug: /Stage[main]//Node[luketest.mgmt.mydomain.local]/ Lvm::Volume[setvolume]/Logical_volume[mylv]/require: requires Volume_group[myvg] debug: /Stage[main]//Node[luketest.mgmt.mydomain.local]/ Lvm::Volume[setvolume]/Filesystem[/dev/myvg/mylv]/require: requires Logical_volume[mylv] On Feb 3, 10:58 am, jcbollinger <john.bollin...@stjude.org> wrote: > On Feb 3, 7:37 am, Luke <lutay...@gmail.com> wrote: > > > Hi, > > > site.pp > > > manifests]$ cat site.pp > > import "nodes" > > That import is appropriate. > > > import "modules" > > That one should not be needed. > > > ---------------- > > > manifests]$ cat modules.pp > > import "lvm" > > That whole manifest should not be need. > > > ---------------- > > > cat nodes.pp > > node 'luketest.mgmt.mydomain.local' { > > > lvm::volume {'setvolume': > > vg => 'myvg', > > pv => '/dev/sdb', > > fstype => 'ext3', > > name => 'mylv', > > size =>'8G', > > ensure => 'present', > > } > > > } > > That node definition is fine. > > The other part of the problem is likely your module structure and > location. The name of your defined type places it in module "lvm", > but for Puppet to automatically *find* that module -- and within it > that definition -- you need to structure your module correctly and put > it in the right place. With the default module path, the structure > should look like this: > > (puppet base dir)/ > L manifests/ > L nodes.pp > L site.pp > L modules/ > L lvm/ > L manifests/ > L init.pp (may be empty) > L volume.pp (contains lvm::volume) > > John -- 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.