Frederik Wagner a écrit :
Hi .*,I'm wondering if there is a way to have a virtual resource realize other virtual resources which it requires. Background: I want to create a module which provides all possible mountpoints from a NAS Filer as virtual resources, like @mount{xyz}. These mounts depend on some directory which must exists, and should only be created if the mount is realized (furthermore some nfs client options are only needed to be set if a nfs mount takes place at all). I would think that something like the following would do the job, but it doesn't. in some class: @file{"/mountpoint": ensure => directory } @mount{"/mountpoint": ..., require => File["/mountpoint"] } in some other class: Mount<| title == "/mountpoint" |> What am I missing? Or is this not possible at all?
Hello I never really played with virtual ressources but it seems you forgot to also realize the file object for your mountpoint? -- Aurelien Degremont CEA -- 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.
