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've had a look lib/puppet/type/mount.rb &
lib/puppet/provider/mount/parsed.rb and it isn't obvious how I can change
the provider to something that isn't refreshable.

I suspect this may end up as a feature request to turn off refreshable for
Solaris tmpfs fstypes

Thanks

John

-- 
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.

Reply via email to