On Mon, Sep 12, 2011 at 12:35 PM, Ken Barber <k...@puppetlabs.com> wrote: >>> Where are the RPM's from that you are using for both 0.25.5 and 2.7.3? >>> I wonder if this can be replicated elsewhere ... what OS distribution >>> and version are you using? > > If you can let me know this info I can probably try to replicate.
The RPM for the puppet client came from the Puppet Labs website. I downloaded the source for 2.7.3, and had to make a few changes to the SPEC file because Puppet Labs seems to think it's not their job to maintain this file. I'll probably get in trouble for saying that. > > One thing was troubling me ... and its probably a long shot. (I'm not > even certain its possible). > > I notice you had a fact called 'release_ver' being synced ... can you > confirm there is no overlap anywhere with puppetversion? The release_ver fact sets version information on our proprietary application. It's got stuff like this: # Test if the symlink exists for the lb_status module Facter.add("current-diffd") do setcode do target = File.readlink("/var/foo/releases/current-diffd") target end end No mention of the puppet version. > > Do something like: > > grep -r 'puppetversion' /var/lib/puppet/ In /var/lib/puppet/client_yaml/catalog/hproxy11.h.sharpcast.com.yaml: !ruby/sym content: "--- \n kernelmajversion: \"2.6\"\n processor1: Intel(R) Xeon(R) CPU L5520 @ 2.27GHz\n hardwareisa: x86_64\n clientversion: &id001 0.25.5\n processor11: I That file is fresh though. It was created after I installed puppet 2.7.3. Why is puppet saying the client version is 0.25.5? > > Maybe even try clearing /var/lib/puppet/lib and disabling pluginsync > on the client just for kicks. I've been blowing away /var/lib/puppet when I remove the RPM before installing the new one. > > Also my puppet version looks something like this - can you confirm it > looks the same: > > Facter.add(:puppetversion) do > setcode do > begin > require 'puppet' > Puppet::PUPPETVERSION.to_s > rescue LoadError > nil > end > end > end > > Its in /usr/lib/ruby/vendor_ruby/facter/puppetversion.rb ... but > probably different on centos or whatever. > # Fact: puppetversion # # Purpose: Return the version of puppet installed. # # Resolution: # Requres puppet via Ruby and returns it's version constant. # # Caveats: # /usr/lib/ruby/site_ruby/1.8/facter/puppetversion.rb: Facter.add(:puppetversion) do setcode do begin require 'puppet' Puppet::PUPPETVERSION.to_s rescue LoadError nil end end end -- 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.