Sha256: c817382ae28d1d46d0ba08c16a87cba0243cb1a95aff2a9de0fc8477d2bb238a
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 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(model) # warning "The NetInfo mount provider is highly experimental. Use at your own risk." # super # end # # def mount # cmd = [] # if opts = @model.should(:options) # cmd << opts # end # cmd << @model.should(:device) # cmd << @model[:name] # mountcmd cmd # end # end # $Id: netinfo.rb 2171 2007-02-07 17:29:19Z luke $
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.22.4 | lib/puppet/provider/mount/netinfo.rb |