On Tue, 09 Feb 2010, Frederik Wagner wrote: > I just tried using the define, and hit a problem which I would avoid > (and actually need to avoid) by using the not implemented feature. > Realizing the virtual define across modules forces me to give the > namespace of the define explicitly, i.e. creating the virtual define > @mymount in a class nas-1::virtual (in the Module nas-1) forces me to > realize it in a second module as Nas-1::Virtual::Mymount<| |>, instead > of just Mymount<| |>.
Could you put the define in a common module, rather than a NAS-specific module? For example: /* In the "util" module */ define mymount ($mountpoint) { realize File[$mountpoint] mount { $mountpoint: require => File[$mountpoint], } } /* In the nas-1::virtual class */ @util::mymount { "foo": } /* Wherever you want to instantiate the mount: */ include nas-1::virtual realize Util::Mymount["foo"] --apb (Alan Barrett) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.