Issue #6845 has been updated by Stefan Schulte.
I was just worried that puppet can destroy your `/etc/vfstab`. Here's why: Let's say you have 10 entries in vfstab and you want to manage one entry with puppet. Each entry consists of 7 fields (device, blockdevice, name, fstype, pass, atboot, options). When (unpatched 2.7.1) puppet now parses vfstab, it parses EVERY line in 6 fields (device, name, fstype, options, dump, pass). My fear was, that puppet will just drop the last field (options). The problem here is that when puppet detects a change, it has to rewrite the whole file. And if puppet just stored the first 6 fields of every line found in vfstab, puppet would only be able to write the first 6 fields back to file. As a result you would destroy your whole vfstab (not just the entries you manage with puppet!). As I can see from your output, this is NOT the case because puppet stores the last 2 fields (atboot and options) in 1 field (pass). Was this understandable? ---------------------------------------- Bug #6845: mount tmpfs on Solaris fail https://projects.puppetlabs.com/issues/6845 Author: John Warburton Status: Ready For Testing Priority: High Assignee: Category: mount Target version: Affected Puppet version: 2.6.7 Keywords: Solaris mount /tmp tempfs tmpfs 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.
