Go to
previous page /
next page of Tier3 site log
20. 12. 2013 Installing Puppet 2.7.21 on each T3 Solaris server ver. 10/13
Today I was upgrading
puppet
to version
2.7.21,REV=2013.03.15
on each T3 Solaris server but
facter
version
1.6.18,REV=2013.03.21
wasn't working because of this
known error in the swap management ;
I fixed
facter
by applying
this patch file to
/opt/csw/lib/ruby/site_ruby/1.8/facter/memory.rb
[root@t3fs15 tmp]# pkginfo -l CSWpuppet
PKGINST: CSWpuppet
NAME: puppet - System configuration management tool, client daemon
CATEGORY: application
ARCH: all
VERSION: 2.7.21,REV=2013.03.15
BASEDIR: /
VENDOR: http://puppetlabs.com/ packaged for CSW by Mark Phillips
PSTAMP: markp@unstable10s-20130315144048
INSTDATE: Dec 20 2013 15:31
HOTLINE: http://www.opencsw.org/bugtrack/
EMAIL: markp@opencsw.org
STATUS: completely installed
FILES: 947 installed pathnames
7 shared pathnames
142 directories
11 executables
5544 blocks used (approx)
[root@t3fs15 tmp]# pkginfo -l CSWfacter
PKGINST: CSWfacter
NAME: facter - A system fact gatherer
CATEGORY: application
ARCH: all
VERSION: 1.6.18,REV=2013.03.21
BASEDIR: /
VENDOR: http://puppetlabs.com/ packaged for CSW by Mark Phillips
PSTAMP: markp@unstable10s-20130321145031
INSTDATE: Dec 20 2013 15:31
HOTLINE: http://www.opencsw.org/bugtrack/
EMAIL: markp@opencsw.org
STATUS: completely installed
FILES: 92 installed pathnames
4 shared pathnames
8 directories
1 executables
335 blocks used (approx)
[root@t3fs15 tmp]# cat facter-1.8.patch
--- /opt/csw/lib/ruby/site_ruby/1.8/facter/memory.rb.orig Wed Dec 14 11:38:07 2011
+++ /opt/csw/lib/ruby/site_ruby/1.8/facter/memory.rb Tue Mar 27 13:41:34 2012
@@ -165,10 +165,12 @@
if Facter.value(:kernel) == "SunOS"
swap = Facter::Util::Resolution.exec('/usr/sbin/swap -l')
swapfree, swaptotal = 0, 0
- swap.each_line do |dev|
- if dev =~ /^\/\S+\s.*\s+(\d+)\s+(\d+)$/
- swaptotal += $1.to_i / 2
- swapfree += $2.to_i / 2
+ if not swap.nil?
+ swap.each_line do |dev|
+ if dev =~ /^\/\S+\s.*\s+(\d+)\s+(\d+)$/
+ swaptotal += $1.to_i / 2
+ swapfree += $2.to_i / 2
+ end
end
end
--
FabioMartinelli - 2013-12-20
Go to
previous page /
next page of Tier3 site log