Hi all, I wonder if anyone know whether or not it is possible to issue a custom mount command via the mount resource? My issue is that we are running a gpfs file system which uses the commands mmmount and mmumount for file system mounting and re-mounting. The standard mount resource does not work. Any suggestions would be greatly appreciated! Rick -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
George Brown
2013-May-02 09:32 UTC
[Puppet Users] Re: IBM gpfs file system and mount resource
Hi, I don''t think you can do this using the standard mount recourse as it seems to be tightly coupled to the mount command itself from looking in the below files. /usr/lib/ruby/site_ruby/1.8/puppet/provider/mount.rb /usr/lib/ruby/site_ruby/1.8/puppet/provider/mount/parsed.rb I think the best way to achieve this would be to create a new provider specifically for GPFS. I''m afraid I don''t have any code that would directly be of assistance hopefully the following documentation will be of help http://docs.puppetlabs.com/guides/custom_types.html http://docs.puppetlabs.com/guides/complete_resource_example.html I''d be interested to know how you get on as this is likely something I will be doing in the near future myself. George On Wednesday, May 1, 2013 9:56:50 PM UTC+2, rjl wrote:> > Hi all, > I wonder if anyone know whether or not it is possible to issue a custom > mount command via the mount resource? > > My issue is that we are running a gpfs file system which uses the commands > mmmount and mmumount for file system mounting and re-mounting. The standard > mount resource does not work. > > Any suggestions would be greatly appreciated! > > Rick >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
jcbollinger
2013-May-02 13:18 UTC
[Puppet Users] Re: IBM gpfs file system and mount resource
On Thursday, May 2, 2013 4:32:53 AM UTC-5, George Brown wrote:> > Hi, > > I don''t think you can do this using the standard mount recourse as it > seems to be tightly coupled to the mount command itself from looking in the > below files. > > /usr/lib/ruby/site_ruby/1.8/puppet/provider/mount.rb > /usr/lib/ruby/site_ruby/1.8/puppet/provider/mount/parsed.rb > > I think the best way to achieve this would be to create a new provider > specifically for GPFS. I''m afraid I don''t have any code that would directly > be of assistance hopefully the following documentation will be of help > > http://docs.puppetlabs.com/guides/custom_types.html > http://docs.puppetlabs.com/guides/complete_resource_example.html > > I''d be interested to know how you get on as this is likely something I > will be doing in the near future myself. > >A Mount provider supporting GPFS may indeed be the best option, but be aware that you will probably need to explicitly tell the appropriate resources to use it (i.e. "provider => ''gpfs''). As you consider whether to work on this, do take into account that the Mount resource is somewhat misnamed for at least two reasons: 1. Although "mount" can be used as a noun, it is more commonly used as a verb. This can lead to confusion, because the Mount resource does not model the *action* of (un)mounting, but rather a mountable filesystem. 2. There was a much more appropriate name available: "filesystem". You may also find that your custom provider could extend the existing "parsed" provider in a relatively simple way (the file that is parsed, by the way, is /etc/fstab). The alternative is to create a defined type for managing GPFS filesystems, instead of the built-in Mount resource type. That would probably be quicker if you''re not already a Puppet hacker, or at least proficient in Ruby, but it''s more a hack than a bona fide solution. There exist scenarios for which it would not be sufficient. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.