Sha256: ef24b119a0a332a9959e43d6ba62bcba103e08259c5059fad74076f0416d366a
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
# Manage NetInfo POSIX objects. Probably only used on OS X, but I suppose # it could be used elsewhere. require 'puppet/provider/nameservice/netinfo' require 'puppet/provider/mount' # Puppet::Type.type(:mount).provide :netinfo, :parent => Puppet::Provider::NameService::NetInfo do # include Puppet::Provider::Mount # desc "Mount management in NetInfo. This provider is highly experimental and is known # not to work currently." # commands :nireport => "nireport", :niutil => "niutil" # commands :mountcmd => "mount", :umount => "umount", :df => "df" # # options :device, :key => "name" # options :name, :key => "dir" # options :dump, :key => "dump_freq" # options :pass, :key => "passno" # options :fstype, :key => "vfstype" # options :options, :key => "opts" # # defaultfor :operatingsystem => :darwin # # def initialize(resource) # warning "The NetInfo mount provider is highly experimental. Use at your own risk." # super # end # # def mount # cmd = [] # if opts = @resource.should(:options) # cmd << opts # end # cmd << @resource.should(:device) # cmd << @resource[:name] # mountcmd cmd # end # end # $Id: netinfo.rb 2501 2007-05-09 23:08:42Z luke $
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.23.0 | lib/puppet/provider/mount/netinfo.rb |
puppet-0.23.2 | lib/puppet/provider/mount/netinfo.rb |
puppet-0.23.1 | lib/puppet/provider/mount/netinfo.rb |