On Thu, Sep 30, 2010 at 1:31 AM, Felix Frank <[email protected]> wrote: > On 09/30/2010 08:57 AM, John Warburton wrote: >> Hi All >> >> I am not sure if I am doing this right, or just meeting some Solaris >> specific thing that hasn't been catered for. >> >> Solaris 10, with puppet 0.25.5, and trying to manage /tmp. Note that /tmp >> can't be remounted on a live system ( >> http://wikis.sun.com/display/BigAdmin/Talking+about+RAM+disks+in+the+Solaris+OS >> ) >> >> mount{ "/tmp": >> atboot => "yes", >> device => "swap", >> ensure => present, >> pass => "-", >> fstype => "tmpfs", >> options => "size=4096m", >> } >> >> Changes /etc/vfstab as expected, but yields this error: >> >> err: //solaris/Mount[/tmp]/ensure: change from mounted to present failed: >> Execution of '/usr/sbin/umount /tmp' returned 1: umount: /tmp busy >> >> notice: //solaris/Mount[/tmp]: Refreshing self >> info: Mount[/tmp](provider=parsed): Remounting >> err: //solaris/Mount[/tmp]: Failed to call refresh on Mount[/tmp]: Execution >> of '/usr/sbin/umount /tmp' returned 1: umount: /tmp busy >> >> Seems that ensure => present (Set to present to add to fstab but not change >> mount/unmount status) is being overridden by the fact the provider is deemed >> refreshable. > > I noticed similar behaviour in Linux, with catastrophic results. > Ensure => present apparently always means "in fstab, but not mounted", > which not only doesn't make much sense to me, but led me to never use > any ensure setting besides "mounted".
Anyone bug reported this yet? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
