[bug-notifications] [facter 0004924]: Are Facter and Puppet missing a dependency?J

Mantis Bug Tracker noreply at opencsw.org
Wed Mar 21 23:33:43 CET 2012


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4924 
====================================================================== 
Reported By:                dcjackson
Assigned To:                
====================================================================== 
Project:                    facter
Issue ID:                   4924
Category:                   packaging
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-03-21 01:14 CET
Last Modified:              2012-03-21 23:33 CET
====================================================================== 
Summary:                    Are Facter and Puppet missing a dependency?J
Description: 
I am a newbie to opencsw.  Used Blastwave for a long time....

Anyway, I install my OS via JumpStart
Solaris10 u10 x86.

First I install pkgutil, then puppet (within my jumpstart finish script)

I then try to use faster within my finish script, and get this:

/opt/csw/lib/ruby/site_ruby/1.8/facter/util/config.rb:4:in `require': no
such file to load -- rbconfig (LoadError)
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/util/config.rb:4
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/util/resolution.rb:7:in
`require'
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/util/resolution.rb:7
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/util/fact.rb:2:in `require'
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/util/fact.rb:2
	from /opt/csw/lib/ruby/site_ruby/1.8/facter.rb:21:in `require'
	from /opt/csw/lib/ruby/site_ruby/1.8/facter.rb:21
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/application.rb:5:in `require'
	from /opt/csw/lib/ruby/site_ruby/1.8/facter/application.rb:5:in `run'
	from /opt/csw/bin/facter:60

This problem also occurs after I reboot the machine and log in.

I then did a pkgutil --install ruby18_gcc4

After that completed, faster worked fine.

I am wondering if puppet/facter are missing a dependency?

Of course, I could be doing something wrong, in general, or WRT installing
this stuff within jumpstart.
====================================================================== 

---------------------------------------------------------------------- 
 (0009756) dcjackson (reporter) - 2012-03-21 23:33
 https://www.opencsw.org/mantis/view.php?id=4924#c9756 
---------------------------------------------------------------------- 
During the install of puppet/facter/ruby during the jumpstart finish
script, I see this:

> Installing CSWruby18-1.8.7p334,REV=2011.03.24 (35/38) ...
Registering 'ruby' alternative /opt/csw/bin/ruby18 ...
sort: getexecname() failed
/opt/csw/sbin/alternatives: Error 52: should not be in this code section.
Inconsistency with files in /opt/csw/share/alternatives ?
Registering 'rbconfig18' alternative
/opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb.sun ...
sort: getexecname() failed
/opt/csw/sbin/alternatives: Error 52: should not be in this code section.
Inconsistency with files in /opt/csw/share/alternatives ?

Installation of <CSWruby18> was successful.

I finally figured out that what I needed was for 

/opt/csw/lib/ruby/1.8/i386-solaris2.9/rbconfig.rb to symlink the the
rbconfig.rb.sun file.
I hacked that into my finish script, and it works now, at least after
reboot.

The other thing I have found is that running svccfg on the (puppet)
manifest doesn't work from jumpstart.
What does work is to take the manifest, change it to enabled='True', and
put that manifest xml file into the /var/svc/manifest/network folder.  When
the machine reboots, it finds that, and enables the service.

There are a lot of tricks/hacks to get things working during
jumpstart/finish.  one is to launch things under chroot e.g. "chroot /a
the-command", so that command will have a view of the mounted filesystems 
without the /a where they are mounted during jumpstart/install....

So to summarize:

It would be nice if ruby/alternative installed correctly under jumpstart.

It would be nice if there was an an alternate smf manifest provided with
enabled=true, that jumpstart users could find easily after pkg install, and
stick into the /var/svc/manifest tree.

I really appreciate the help and info here, and of course, the
puppet/facter packages!!!!



More information about the bug-notifications mailing list