Issue #6845 has been updated by John Warburton.
This patch has not been applied to final release 2.6.8. I am now stuck 2
releases behind, cannot use new features like the Inventory because someone
decided to rewrite the mount provider in 2.6.7
FYI, the output of “puppet resource mount” in 2.6.6 (note 12) shows that
everything but swap is `ensure => 'mounted'`
# puppet --version
2.6.6
# puppet resource mount
mount { '-':
pass => '-',
blockdevice => '-',
ensure => 'unmounted',
device => '/dev/zvol/dsk/rpool/swap',
fstype => 'swap',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/dev/fd':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => 'fd',
fstype => 'fd',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/devices':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => '/devices',
fstype => 'devfs',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/etc/dfs/sharetab':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => 'sharefs',
fstype => 'sharefs',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/proc':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => '/proc',
fstype => 'proc',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/system/contract':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => 'ctfs',
fstype => 'ctfs',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/system/object':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => 'objfs',
fstype => 'objfs',
options => '-',
atboot => 'no',
target => '/etc/vfstab'
}
mount { '/tmp':
pass => '-',
blockdevice => '-',
ensure => 'mounted',
device => 'swap',
fstype => 'tmpfs',
options => 'size=512m',
atboot => 'yes',
target => '/etc/vfstab'
}
----------------------------------------
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
Affected Dashboard version:
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.