On Tue, Feb 9, 2010 at 11:35 AM, Alan Barrett <[email protected]> wrote: > On Tue, 09 Feb 2010, Frederik Wagner wrote: >> >> @file{"/mountpoint": ensure => directory } >> >> >> >> @mount{"/mountpoint": >> >> ..., >> >> require => File["/mountpoint"] >> >> } >> >> >> >> in some other class: >> >> Mount<| title == "/mountpoint" |> >> >> I would like to automatically realize all resources required by the >> mount without explicitly stating it in the module realizing the >> mount. All requirements should be encapsulated in the module providing >> the @mount.
thanks for the information! > There is a feature request for this: > <http://projects.reductivelabs.com/issues/2084>. Until that is > implemented, I think you'll need to work around it using a define. very good, i suppose there is no time schedule for this yet? 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<| |>. But this I have to avoid - and would be avoided by the feature request - since I use a versioning of the modules which should not be part of the realize statement, as well as the modules should not know about each others classnames anyway. Any idea to work around this? Thanks a whole lot! Bye Frederik > > --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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
