Re: [Puppet Users] Puppet runs in test mode but hangs as service

2011-11-10 Thread Len Rugen
I think this is the same problem as one I posted about earlier today. On Thu, Nov 10, 2011 at 3:23 PM, Chip Schweiss wrote: > This is on Centos 5.7 with puppet 2.6.9. This installation has been > running for about a year and now nearly all my hosts are hanging. > > Running 'puppetd --test' or 'p

[Puppet Users] Puppet runs in test mode but hangs as service

2011-11-10 Thread Chip Schweiss
This is on Centos 5.7 with puppet 2.6.9. This installation has been running for about a year and now nearly all my hosts are hanging. Running 'puppetd --test' or 'puppetd --test --debug' executes successfully every time. However when the puppet service is started it will create the lock file (/v

[Puppet Users] Re: How to debug intermittent puppet catalog failure

2011-11-10 Thread Len Rugen
It seems like I have two sets of similar symptoms. I have another set of servers where puppetd -tv runs fine, but the daemon will never finish a catalog run. Again, puppetdlock lingers. I think the first problem may track to a database backup. The clients with similar timestamps are near that t

[Puppet Users] Re: NFS clients - puppet hang when mount point

2011-11-10 Thread jcbollinger
On Nov 10, 6:02 am, madAndroid wrote: > That sounds a little heavy handed ... > > also, I feel that it would probably stop the mount from happening at > all? > how would the fstab initiate the nfs mount if it's not able to resolve > the address of the nfs server correctly? > unless I'm missing s

[Puppet Users] Re: Managing Network Interfaces

2011-11-10 Thread jcbollinger
On Nov 9, 2:01 pm, Christopher Lee wrote: > Hello, > > I am trying to figure out a way to manage my network interfaces, > specifically additional ip aliases on a single interface.  We run RedHat. >  On many of our servers we need to bring up additional IP address on the > same interface and crea

[Puppet Users] Re: How to debug intermittent puppet catalog failure

2011-11-10 Thread Len Rugen
Also, the timestamp on several clients puppetdlock file will be within minutes of each other, so it appears to be some sort of infrastructure issue. The puppet master is a VM and the backend mysql server physical. On Thu, Nov 10, 2011 at 8:24 AM, Len Rugen wrote: > We've recently developed a pr

Re: [Puppet Users] service status doing strange stuff

2011-11-10 Thread Adrian Casajús
Hi, Thanks for the info. I found why the service was returning 0 when status was stopped. But the /sbin/service ypbind status is still getting puppet stuck. If I run it by hand it works perfectly. But puppet gets stuck after doing it. Cheers, Adri On 10 November 2011 13:04, Dick Davies wrot

[Puppet Users] How to debug intermittent puppet catalog failure

2011-11-10 Thread Len Rugen
We've recently developed a problem where a puppetd scheduled catalog run will hang or fail, then never resume. The puppetdlock file is present, but I can't find any logged errors. If I stop the daemon, it will restart and run the catalog without problem. Any suggestions on how to identify the pr

[Puppet Users] Re: "namevar" in a custo define

2011-11-10 Thread jcbollinger
On Nov 10, 5:12 am, Davide Ferrari wrote: > On Thu, 2011-11-10 at 11:09 +0100, Davide Ferrari wrote: > > I mean, with File if you set path to a value, the path has value, but if > > you don't set a value, then it uses the "name" value. I'd like to do the > > same with my own defines, is it possi

Re: [Puppet Users] Re: "namevar" in a custo define

2011-11-10 Thread Nan Liu
On Thu, Nov 10, 2011 at 11:12 AM, Davide Ferrari wrote: > On Thu, 2011-11-10 at 11:09 +0100, Davide Ferrari wrote: > >> I mean, with File if you set path to a value, the path has value, but if >> you don't set a value, then it uses the "name" value. I'd like to do the >> same with my own defines,

[Puppet Users] Re: Starting puppet on fedora - mixed init.d and systemd

2011-11-10 Thread jcbollinger
On Nov 10, 7:20 am, C R Ritson wrote: > Fedora 15 uses a mix of init.d and systemd to start services. Our systems > also use NetworkManager. When a client machine is rebooted, NetworkManager is > still initialising (and has sometimes not yet updated /etc/resolv.conf) by > the time puppetd is

Re: [Puppet Users] so close to getting new type to work!!

2011-11-10 Thread Guy Matz
Fudge!! Thanks for the pointer, Stefan . . . Yeah, the lines in match_providers_with_resources that says: if resource = match(record, matchers) # Remove this resource from circulation so we don’t unnecessarily try to match matchers.delete(resource.title) . . . Means that it can never match two l

Re: [Puppet Users] Re: NFS clients - puppet hang when mount point

2011-11-10 Thread Len Rugen
If you can reproduce this, you might try adding the "bg" option to the mount options (via options => in puppet). I suspect that when puppet tries to do the nfs mount with the nfs server unavailable, it will hang for 120 seconds or more. I think it you tried the same mount command at that time out

[Puppet Users] Starting puppet on fedora - mixed init.d and systemd

2011-11-10 Thread C R Ritson
Fedora 15 uses a mix of init.d and systemd to start services. Our systems also use NetworkManager. When a client machine is rebooted, NetworkManager is still initialising (and has sometimes not yet updated /etc/resolv.conf) by the time puppetd is started. puppetd can then not look up its master

Re: [Puppet Users] service status doing strange stuff

2011-11-10 Thread Dick Davies
Is yum-updatesd status returning true? That would act as you describe. If so, you could either push out a fixed init script or set 'hasstatus => false' and use the pattern parameter instead. (I prefer the former myself, since I have other things (monit etc.) that I want to use service scripts wit

[Puppet Users] Re: NFS clients - puppet hang when mount point

2011-11-10 Thread madAndroid
That sounds a little heavy handed ... also, I feel that it would probably stop the mount from happening at all? how would the fstab initiate the nfs mount if it's not able to resolve the address of the nfs server correctly? unless I'm missing something .. On Nov 9, 7:12 pm, Guy Matz wrote: > OK

[Puppet Users] Re: "namevar" in a custo define

2011-11-10 Thread Davide Ferrari
On Thu, 2011-11-10 at 11:09 +0100, Davide Ferrari wrote: > I mean, with File if you set path to a value, the path has value, but if > you don't set a value, then it uses the "name" value. I'd like to do the > same with my own defines, is it possible? I'll detail a bit more: right now I do somethi

[Puppet Users] service status doing strange stuff

2011-11-10 Thread Adrian Casajús
Hi all,   Puppet gets stuck in one machine after the line debug: Service[nis](provider=redhat): Executing '/sbin/service ypbind status' if I run by hand '/sbin/service ypbind status' it works properly: [root@host ~]# /sbin/service ypbind status ypbind (pid  12605) is running... [root@host ~]# e

[Puppet Users] AW: nagios_service does not replace target file

2011-11-10 Thread Bernd Adamowicz
Well, it turned out that I was not able to create a Puppet configuration which does a reliable re-creation of the Nagios configuration files. My workaround is now to restart the Puppet agent with a cron job and before restarting I delete the old configuration files like this: /bin/logger "$0: P

[Puppet Users] "namevar" in a custo define

2011-11-10 Thread Davide Ferrari
Hi is there a way to replicate, in a custom define, the behavior of the "path" parameter in a File resource (for instance)? I mean, with File if you set path to a value, the path has value, but if you don't set a value, then it uses the "name" value. I'd like to do the same with my own defines, is

[Puppet Users] Re: Variable not working in a define

2011-11-10 Thread imase
Oh man, I found the mistake. It is in the template: TOMCAT_VER="<%= scope.lookupvar('tcserver::params::instance_version') %>" should be: TOMCAT_VER="<%= scope.lookupvar('version')%>" Because it is called out of tcserver::instance. Kind regards On 10 Nov., 09:24, imase wrote: > Hello togeth

AW: [Puppet Users] puppet client can not pull configurat​ion from puppetmast​er

2011-11-10 Thread Bernd Adamowicz
Can you be a little bit more precise please? What are you doing exactly, which commands? What is not working? Any error messages in syslog? Bernd > -Ursprüngliche Nachricht- > Von: puppet-users@googlegroups.com [mailto:puppet- > us...@googlegroups.com] Im Auftrag von Javid Mehraban > Ges

[Puppet Users] Variable not working in a define

2011-11-10 Thread imase
Hello together, I have a define which was written by someone else and I am trying to extend it by the $version variable. My Module is called tcserver and it's a type of an apache tomcat. The package of tcserver will be deployed by an rpm via the module. After the installation there are two version