Issue #6845 has been updated by John Warburton.
Sorry, only just saw the attached patch. Applied it (see note below) and all is
fine:
# puppet apply --verbose --color true /tmp/mount.pp
info: Applying configuration version '1301278683'
notice: /Stage[main]//Mount[/tmp]/options: options changed '-' to
'size=512m'
info: FileBucket adding {md5}b9b230b37f82cccbff0c704201365f89
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
notice: /Stage[main]//Mount[/tmp]: Triggered 'refresh' from 1 events
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
notice: Finished catalog run in 0.24 seconds
Note that I am patching my puppet installation with the patch in issue #4904 to
deal with the remount/refresh issue. I don't particularly mind which way the
mount & fstab providers go - as long as they work with esoteric operating
systems like solaris
----------------------------------------
Bug #6845: mount tmpfs on Solaris fail
https://projects.puppetlabs.com/issues/6845
Author: John Warburton
Status: Investigating
Priority: High
Assignee:
Category:
Target version:
Affected Puppet version: 2.6.7
Keywords: Solaris mount /tmp tempfs
Branch: https://github.com/stschulte/puppet/tree/ticket/2.6.x/6845
The newly released 2.6.7 mount provider fails on Solaris 10 U9, and does not
modify the /etc/vfstab, but just adds another (wrong) line
mount.pp:
mount{ "/tmp":
device => "swap",
blockdevice => "-",
fstype => "tmpfs",
pass => "-",
atboot => "yes",
options => "size=512m",
# http://projects.puppetlabs.com/issues/4904
ensure => $puppetversion ? {
/0\.25/ => mounted,
default => present,
},
}
/etc/vfstab before:
swap - /tmp tmpfs - yes -
Apply the change
# puppet apply --verbose --color true /tmp/mount.pp
info: Applying configuration version '1301028968'
notice: /Stage[main]//Mount[/tmp]/ensure: ensure changed 'ghost' to
'defined'
info: FileBucket adding {md5}de855ac78119686e92d519e9068c3e70
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
notice: /Stage[main]//Mount[/tmp]: Triggered 'refresh' from 1 events
info: /Stage[main]//Mount[/tmp]: Scheduling refresh of Mount[/tmp]
notice: Finished catalog run in 0.22 seconds
/etc/vfstab after:
swap - /tmp tmpfs - yes -
swap /tmp tmpfs size=512m 0 -
Expected result:
swap - /tmp tmpfs - yes size=512m
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.