Hey all, I want to write a NFS module. Before I start, I thought I''d ask: Does someone already have such a module? May that person share it? What I want to do (have) is: - configure (different) exports on many NFS-Servers - configure NFS-Clients to mount some or all of those. Thanks, udo.
On Aug 28, 2007, at 4:15 AM, Udo Waechter wrote:> Hey all, > I want to write a NFS module. Before I start, I thought I''d ask: Does > someone already have such a module? May that person share it? > > What I want to do (have) is: > > - configure (different) exports on many NFS-Servers > - configure NFS-Clients to mount some or all of those.Shouldn''t this second ability be possible using the existing mount type? -- It has recently been discovered that research causes cancer in labratory rats. --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Hi Luke, Luke Kanies wrote:> On Aug 28, 2007, at 4:15 AM, Udo >> - configure (different) exports on many NFS-Servers >> - configure NFS-Clients to mount some or all of those. > > Shouldn''t this second ability be possible using the existing mount type?Yes, this is of course possible, what I would like to do is to define the exports on the NFS-Server(s) and use those definitions to also mount those on all (or some) of the clients. I would then have nfs::server classes which export directories, something like nfs::server::export { directory => "/bla", target => "/mountpoint-on-client" } and nfs::server::export { directory => "/blubb", target => "mountpoint2onclient" } export those as virtual resources, which can then be mounted by nfs::client machines... Excuse the possibly wrong syntax, I hope you get the idea. Bye, udo.
On Aug 28, 2007, at 11:50 AM, Udo Waechter wrote:> Yes, this is of course possible, what I would like to do is to define > the exports on the NFS-Server(s) and use those definitions to also > mount > those on all (or some) of the clients. > I would then have nfs::server classes which export directories, > something like > nfs::server::export { directory => "/bla", target => > "/mountpoint-on-client" } and > nfs::server::export { directory => "/blubb", target => > "mountpoint2onclient" } > > export those as virtual resources, which can then be mounted by > nfs::client machines... > > Excuse the possibly wrong syntax, I hope you get the idea.Yeah, that''s exactly the kind of thing export/collect was created for, what I call configuration normalization -- you put all of the configuration data for a given resource in one place and everyone who needs it gets it from there. -- We''re not surrounded, we''re in a target-rich environment! --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com