Issue #6845 has been updated by Stefan Schulte.
I think the issue is even worse: Because we parse `/etc/vfstab` (1 record = 7
fields) like an `/etc/fstab` (1 record = 6 fields). This may cause puppet to
destroy your whole `/etc/vfstab` when it changes at least one entry.
John, is it possible that you can run
puppet resource mount
on an affected puppet version (unpatched 2.6.7) and print the output of one
resource?
----------------------------------------
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.