Re: [Puppet Users] Facter variable $puppetversion

2011-09-13 Thread Ken Barber
> I don't know what pbcopy is locate can't find it. Never heard of > it, Yeah never mind - its a convenient Mac OS X tool for copying something into the clipboard. Not critical. > but, after removing the rpm and wiping /var/lib/puppet and running > 'locate puppet', I get: (you really should

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 3:28 PM, Eric Shamow wrote: > Douglas, > > This is a long shot, but if you have your locate database being updated > nightly, as is the default for RH-based OSes, can you run "locate puppet | > pbcopy" and paste the results into a pastebin/pastie/your paste of choice? I

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Eric Shamow
Douglas, This is a long shot, but if you have your locate database being updated nightly, as is the default for RH-based OSes, can you run "locate puppet | pbcopy" and paste the results into a pastebin/pastie/your paste of choice? I'd like to see where this shows up on your system. I think ther

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 1:41 PM, Douglas Garstang wrote: > On Mon, Sep 12, 2011 at 1:28 PM, Eric Shamow wrote: >> You haven't imported the public key for that repository. Ken was probably >> assuming that you'd add the repo to your list of repositories and use yum to >> install. If you aren't g

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 1:28 PM, Eric Shamow wrote: > You haven't imported the public key for that repository. Ken was probably > assuming that you'd add the repo to your list of repositories and use yum to > install. If you aren't going to do that, you need the GPG key: > > RPM-GPG-KEY-puppetla

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Eric Shamow
You haven't imported the public key for that repository. Ken was probably assuming that you'd add the repo to your list of repositories and use yum to install. If you aren't going to do that, you need the GPG key: RPM-GPG-KEY-puppetlabs (http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs) -Eric

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 1:17 PM, Douglas Garstang wrote: > On Mon, Sep 12, 2011 at 1:08 PM, Ken Barber wrote: >>> 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 >> >> (I keep asking this bu

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 1:08 PM, Ken Barber wrote: >> 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 > > (I keep asking this but ...) What OS are you running and version? > Where did you get t

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Ken Barber
> 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 (I keep asking this but ...) What OS are you running and version? Where did you get the RPM's for 0.25? Also ... why don't you try these RPM's f

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 12:35 PM, Ken Barber 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 replica

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Ken Barber
>> 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. One thing was troubling me ... and its probably a long

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 11:24 AM, Ken Barber wrote: >> On Client: >> service puppet stop >> yum clean all >> rpm --erase puppet >> rpm --erase facter >> rm -fR /var/lib/puppet >> yum upgrade puppet >> >> On server: >> puppetca --clean hproxy11.h.foo.com >> >> On Client: >> service puppet start > >

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Ken Barber
> On Client: > service puppet stop > yum clean all > rpm --erase puppet > rpm --erase facter > rm -fR /var/lib/puppet > yum upgrade puppet > > On server: > puppetca --clean hproxy11.h.foo.com > > On Client: > service puppet start Where are the RPM's from that you are using for both 0.25.5 and 2.7.

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Mon, Sep 12, 2011 at 10:50 AM, Ken Barber wrote: I'm launching puppet with 'service puppet restart'. > > Do you get any different results if you run it like: > > puppet agent -t warning: You have configuration parameter $localconfig specified in [puppetd], which is a deprecated section. I

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Ken Barber
>>> I'm launching puppet with 'service puppet restart'. Do you get any different results if you run it like: puppet agent -t Instead of using that service? Are you absolutely certain there isn't a stray ruby process running your old 0.25 puppet agent? > Well, I can't seem to work out what's go

Re: [Puppet Users] Facter variable $puppetversion

2011-09-12 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 5:50 PM, R.I.Pienaar wrote: > > > - Original Message - >> On Fri, Sep 9, 2011 at 5:18 PM, Eric Shamow >> wrote: >> > Notify is a resource, notice() is a function. So notice() is >> > evaluated on the server, whereas notify{} is evaluated on the >> > client. >> > >>

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread R.I.Pienaar
- Original Message - > On Fri, Sep 9, 2011 at 5:18 PM, Eric Shamow > wrote: > > Notify is a resource, notice() is a function. So notice() is > > evaluated on the server, whereas notify{} is evaluated on the > > client. > > > > My suspicion is that you somehow have two versions of the cli

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Eric Shamow
> I know that notice() is a function, and notify{} is a resource. The > documentation says that much. However, it doesn't really go beyond > that. The documentation > provides examples of how to use notify{} to notify another resource > when it changes, but I don't believe it gives you any indicati

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 5:18 PM, Eric Shamow wrote: > Notify is a resource, notice() is a function. So notice() is evaluated on the > server, whereas notify{} is evaluated on the client. > > My suspicion is that you somehow have two versions of the client binary > hanging around. Perhaps one that

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread R.I.Pienaar
- Original Message - > On Fri, Sep 9, 2011 at 4:55 PM, R.I.Pienaar wrote: > > > > > > - Original Message - > >> On Fri, Sep 9, 2011 at 4:50 PM, R.I.Pienaar wrote: > >> > > >> > > >> > - Original Message - > >> >> On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber > >> >> wrote:

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Eric Shamow
Notify is a resource, notice() is a function. So notice() is evaluated on the server, whereas notify{} is evaluated on the client. My suspicion is that you somehow have two versions of the client binary hanging around. Perhaps one that is running when you execute "puppet" at the shell, and anot

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:55 PM, R.I.Pienaar wrote: > > > - Original Message - >> On Fri, Sep 9, 2011 at 4:50 PM, R.I.Pienaar wrote: >> > >> > >> > - Original Message - >> >> On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber >> >> wrote: >> >> > What does: >> >> > >> >> > puppet -e 'noti

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Gary Larizza
Crap...nevermind - that's a dashboard issue. On Fri, Sep 9, 2011 at 5:00 PM, Ken Barber wrote: > Out of morbid curiosity - how are you running the puppet client on > that client box? You aren't running an agent are you and using kick or > some such? > > On Sat, Sep 10, 2011 at 12:56 AM, Ken Barb

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Gary Larizza
I remember seeing a bug that's somewhat similar to this, but I don't know if it's related --> https://projects.puppetlabs.com/issues/9289 On Fri, Sep 9, 2011 at 5:00 PM, Ken Barber wrote: > Out of morbid curiosity - how are you running the puppet client on > that client box? You aren't running

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
Out of morbid curiosity - how are you running the puppet client on that client box? You aren't running an agent are you and using kick or some such? On Sat, Sep 10, 2011 at 12:56 AM, Ken Barber wrote: >> I assume you mean't to use notify(), not notify{} ? > > No - he meant what he said. Its

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
> I assume you mean't to use notify(), not notify{} ? No - he meant what he said. Its a resource for client notifications. Give it a try can't hurt. Can you send your puppet.conf from both boxes (via pastie or somesuch)? Maybe there is something there. I'm tempted to suggest running the pupp

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread R.I.Pienaar
- Original Message - > On Fri, Sep 9, 2011 at 4:50 PM, R.I.Pienaar wrote: > > > > > > - Original Message - > >> On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber > >> wrote: > >> > What does: > >> > > >> > puppet -e 'notice("$puppetversion")' > >> > > >> > Show on the _client_? I know

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:52 PM, Eric Shamow wrote: >  Right, so your client is running 2.7.3, not 0.25. That's why faster is > returning 2.7.3. > > On the master try running the same. If it doesn't work try You got that a bit mixed up... The server and client are both running 2.7.3, but the $pup

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:50 PM, R.I.Pienaar wrote: > > > - Original Message - >> On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber >> wrote: >> > What does: >> > >> > puppet -e 'notice("$puppetversion")' >> > >> > Show on the _client_? I know its probably obvious but you never >> > know. >> > >>

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Eric Shamow
Right, so your client is running 2.7.3, not 0.25. That's why faster is returning 2.7.3. On the master try running the same. If it doesn't work try puppetd --version -Eric On Friday, September 9, 2011 at 7:50 PM, Douglas Garstang wrote: > On Fri, Sep 9, 2011 at 4:48 PM, Eric Shamow (mailto:

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
>> puppet -e 'notice("$puppetversion")' >> >> Show on the _client_? I know its probably obvious but you never know. >> > > Actually, it's not obvious. I didn't know you could do that. Never > seen it documented anywhere... puppet help apply (I really should use puppet apply these days as that way

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:48 PM, Eric Shamow wrote: > On the same box, what does > > puppet agent --version > > give you? > That gives me: [root@hproxy10 ~]# puppet agent --version 2.7.3 Doug -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread R.I.Pienaar
- Original Message - > On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber > wrote: > > What does: > > > > puppet -e 'notice("$puppetversion")' > > > > Show on the _client_? I know its probably obvious but you never > > know. > > > > Actually, it's not obvious. I didn't know you could do that. N

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Eric Shamow
On the same box, what does puppet agent --version give you? -Eric On Friday, September 9, 2011 at 7:47 PM, Douglas Garstang wrote: > On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber (mailto:k...@puppetlabs.com)> wrote: > > What does: > > > > puppet -e 'notice("$puppetversion")' > > > > Show on

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:43 PM, Ken Barber wrote: > What does: > > puppet -e 'notice("$puppetversion")' > > Show on the _client_? I know its probably obvious but you never know. > Actually, it's not obvious. I didn't know you could do that. Never seen it documented anywhere... But, [root@hprox

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
What does: puppet -e 'notice("$puppetversion")' Show on the _client_? I know its probably obvious but you never know. ken. On Sat, Sep 10, 2011 at 12:39 AM, Douglas Garstang wrote: > On Fri, Sep 9, 2011 at 4:36 PM, Ken Barber wrote: 'notice' is a function. It runs on the server. Try usin

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:36 PM, Ken Barber wrote: >>> 'notice' is a function. It runs on the server. Try using the 'notify' >>> resource instead. >> >> but surely those two variables would be based on the facts and not some >> master state? >> >> notify would run on the node yes, but the resolutio

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
>> 'notice' is a function. It runs on the server. Try using the 'notify' >> resource instead. > > but surely those two variables would be based on the facts and not some > master state? > > notify would run on the node yes, but the resolution of variable to string > would still happen on the master

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread R.I.Pienaar
- Original Message - > 'notice' is a function. It runs on the server. Try using the 'notify' > resource instead. but surely those two variables would be based on the facts and not some master state? notify would run on the node yes, but the resolution of variable to string would still h

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
On Fri, Sep 9, 2011 at 4:27 PM, Ken Barber wrote: > 'notice' is a function. It runs on the server. Try using the 'notify' > resource instead. I think you misunderstood my question. I'm using notice() just for debugging purposes, and it's always behaved in the past as if running on the client. The

Re: [Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Ken Barber
'notice' is a function. It runs on the server. Try using the 'notify' resource instead. ken. On Sat, Sep 10, 2011 at 12:24 AM, Douglas Garstang wrote: > Maybe it's because it's Friday, but I'm suddenly not sure if I am > going crazy or not... > > I have a server running 2.7.3, and clients runnin

[Puppet Users] Facter variable $puppetversion

2011-09-09 Thread Douglas Garstang
Maybe it's because it's Friday, but I'm suddenly not sure if I am going crazy or not... I have a server running 2.7.3, and clients running 0.25.5. As part of my attempt to upgrade the clients, I'm using mcollective to upgrade the puppet package. After doing that, I'm using the $puppetversion facte