diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-28 23:40:50 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-28 23:40:50 +0000 |
| commit | dd502db3a976ef6b5091d9cb514427a5de21ff8f (patch) | |
| tree | 1ee5bfcc22ba025b5c73f39a012794026221b7b8 /lib/puppet/provider | |
| parent | bf46e7d363bbedc683abd63ab159ed170803009a (diff) | |
| download | puppet-dd502db3a976ef6b5091d9cb514427a5de21ff8f.tar.gz puppet-dd502db3a976ef6b5091d9cb514427a5de21ff8f.tar.xz puppet-dd502db3a976ef6b5091d9cb514427a5de21ff8f.zip | |
Fixing #113. I added support in the transaction for self-refreshing, which just creates a special trigger for resources that have self-refreshing enabled. Logging is a bit different for them, so it is clear why they are refreshing. I still need to verify the remount methods work in the providers.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2107 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/provider')
| -rw-r--r-- | lib/puppet/provider/mount.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/provider/mount.rb b/lib/puppet/provider/mount.rb index fc3e5acef..bd8693e7d 100644 --- a/lib/puppet/provider/mount.rb +++ b/lib/puppet/provider/mount.rb @@ -11,6 +11,16 @@ module Puppet::Provider::Mount mountcmd @model[:name] end + def remount + info "Remounting" + if @model[:remounts] == :true + mountcmd "-o", "remount", @model[:name] + else + unmount() + mount() + end + end + # This only works when the mount point is synced to the fstab. def unmount umount @model[:name] |
