Method: Puppet::Provider::Mount#mount
- Defined in:
- lib/puppet/provider/mount.rb
#mount ⇒ Object
This only works when the mount point is synced to the fstab.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/puppet/provider/mount.rb', line 7 def mount args = [] # In general we do not have to pass mountoptions because we always # flush /etc/fstab before attempting to mount. But old code suggests # that MacOS always needs the mount options to be explicitly passed to # the mount command if Facter.value(:kernel) == 'Darwin' args << '-o' << if && != :absent end args << resource[:name] mountcmd(*args) case get(:ensure) when :absent then set(ensure: :ghost) when :unmounted then set(ensure: :mounted) end end |