<!-- keep this as a security measure: #uncomment if the subject should only be modifiable by the listed groups * Set ALLOWTOPICCHANGE = Main.TWikiAdminGroup,Main.CMSAdminGroup * Set ALLOWTOPICRENAME = Main.TWikiAdminGroup,Main.CMSAdminGroup #uncomment this if you want the page only be viewable by the listed groups # * Set ALLOWTOPICVIEW = Main.TWikiAdminGroup,Main.CMSAdminGroup --> %TOC% %ICON{arrowleft}% Go to [[CMSTier3LogXX][previous page]] / [[CMSTier3LogXX][next page]] of Tier3 site log %M% ---+ 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 [[http://projects.puppetlabs.com/issues/8963][known error in the swap management]] ; I fixed =facter= by applying [[http://projects.puppetlabs.com/attachments/download/1938/facter-1.8.patch][this patch file]] to =/opt/csw/lib/ruby/site_ruby/1.8/facter/memory.rb= <pre> [root@t3fs15 tmp]# pkginfo -l %BLUE%CSWpuppet%ENDCOLOR% PKGINST: CSWpuppet NAME: puppet - System configuration management tool, client daemon CATEGORY: application ARCH: all VERSION: %BLUE%2.7.21,REV=2013.03.15%ENDCOLOR% 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 %BLUE%CSWfacter%ENDCOLOR% PKGINST: CSWfacter NAME: facter - A system fact gatherer CATEGORY: application ARCH: all VERSION: %BLUE%1.6.18,REV=2013.03.21%ENDCOLOR% 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 %BLUE%facter-1.8.patch%ENDCOLOR% --- /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 </pre> -- Main.FabioMartinelli - 2013-12-20 ---------------- %ICON{arrowleft}% Go to [[CMSTier3LogXX][previous page]] / [[CMSTier3LogXX][next page]] of Tier3 site log %M%
This topic: CmsTier3
>
WebHome
>
CMSTier3Log
>
CMSTier3Log57
Topic revision: r1 - 2013-12-20 - FabioMartinelli
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback