Jeffrey Ollie
2011-Oct-06 17:15 UTC
[Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?
Having this feature would be very useful to me... Other than doing the work myself, is there any hope of getting this any time soon? -- Jeff Ollie -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Adam Gibbins
2011-Oct-06 17:17 UTC
Re: [Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?
On 6 October 2011 18:15, Jeffrey Ollie <jeff@ocjtech.us> wrote:> Having this feature would be very useful to me... Other than doing > the work myself, is there any hope of getting this any time soon? > > -- > Jeff Ollie >This doesn''t really seem the work of a provider, but rather a define. Could you not just wrap a file block and a mount inside a define? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jeffrey Ollie
2011-Oct-06 20:00 UTC
Re: [Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?
On Thu, Oct 6, 2011 at 12:17 PM, Adam Gibbins <adam@adamgibbins.com> wrote:> On 6 October 2011 18:15, Jeffrey Ollie <jeff@ocjtech.us> wrote: >> >> Having this feature would be very useful to me... Other than doing >> the work myself, is there any hope of getting this any time soon? > > This doesn''t really seem the work of a provider, but rather a define. > Could you not just wrap a file block and a mount inside a define?I think that the problem with that is that you are dealing with two different directories that have the same name. There''s the original directory that is used as a mount point and then there''s the directory that is mounted on top of that. AFAIK puppet can''t deal with that situation using only a define. -- Jeff Ollie -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Stefan Schulte
2011-Oct-07 04:22 UTC
Re: [Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?
On Thu, Oct 06, 2011 at 03:00:29PM -0500, Jeffrey Ollie wrote:> On Thu, Oct 6, 2011 at 12:17 PM, Adam Gibbins <adam@adamgibbins.com> wrote: > > On 6 October 2011 18:15, Jeffrey Ollie <jeff@ocjtech.us> wrote: > >> > >> Having this feature would be very useful to me... Other than doing > >> the work myself, is there any hope of getting this any time soon? > > > > This doesn''t really seem the work of a provider, but rather a define. > > Could you not just wrap a file block and a mount inside a define? > > I think that the problem with that is that you are dealing with two > different directories that have the same name. There''s the original > directory that is used as a mount point and then there''s the directory > that is mounted on top of that. AFAIK puppet can''t deal with that > situation using only a define.You could create the mountpoint with an exec resource. Like define mymount (.....) { exec { "create_${name}": command => "/bin/mkdir -m 0755 ${name}", creates => $name, } mount { $name: ... require => Exec["create_${name}"], } } You can now use a file resource to set e.g. owner and group on the mounted path. -Stefan
Jeffrey Ollie
2011-Oct-07 13:26 UTC
Re: [Puppet Users] Feature 4815: Allow Mount to create a mount point and set the under lying permission?
On Thu, Oct 6, 2011 at 11:22 PM, Stefan Schulte <stefan.schulte@taunusstein.net> wrote:> > You could create the mountpoint with an exec resource. Like > > define mymount (.....) { > exec { "create_${name}": > command => "/bin/mkdir -m 0755 ${name}", > creates => $name, > } > mount { $name: > ... > require => Exec["create_${name}"], > } > } > > You can now use a file resource to set e.g. owner and group on the > mounted path.Ah, yes that would work well, at least in the short term. -- Jeff Ollie -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.