Hi,

I've been having trouble with this resource type on Solaris using the
packages from the OpenCSW repository.

Delving into the code, I've found that the operatingsystem fact isn't being
retrieved correctly by the parsed.rb code for the resource type.  This
results in the default fields being used to populate /etc/vfstab and this
causes mounts to fail owing to incorrectly formatted lines.

My workaround has been to change the following code fragment:

case Facter["operatingsystem"]
  when "Solaris"
    @fields = [:device, :blockdevice, :name, :fstype, :pass, :atboot,
:options]
  else

(blah blah blah)

to

case Facter.value(:operatingsystem)
  when "Solaris"
    @fields = [:device, :blockdevice, :name, :fstype, :pass, :atboot,
:options]
  else

And everything seems to work just fine.

My questions are as follows:

1. Is this a known issue?
2. If so, is it a problem with Puppet 2.6.x, all Puppet versions (I don't
recall having issues with 0.25.x, for example) or just the OpenCSW packages?
3. How do I raise a bug report if it turns out that I have some kind of
clue?

Note that I do _not_ speak Ruby and what I've done has been based on a
combination of some tactical use of Google and educated guesswork.  I fully
expect to be told that I've got this whole issue completely wrong.  If
that's the case, I'd appreciate any pointers as to where my error(s)
lies/lie.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to