Re: [Puppet Users] Re: puppet apply stops with message Killed

2014-04-30 Thread Len Rugen
Did puppet hit a ulimit? On Wed, Apr 30, 2014 at 8:44 AM, jcbollinger john.bollin...@stjude.orgwrote: On Tuesday, April 29, 2014 2:53:18 PM UTC-5, Ádám Sándor wrote: I managed to solve the problem :) First we added more memory to the machine. With 1GB of memory the script ran further but

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-28 Thread Len Rugen
Look at the creates = option, I use that to drop an initial /etc/my.cnf, but then it can be modified and not regressed by puppet. On Mon, Apr 28, 2014 at 3:41 AM, Paul Tötterman paul.totter...@gmail.comwrote: For files in user's home directories I would manage the skeleton files using puppet

Re: [Puppet Users] Re: Painful packages

2013-09-25 Thread Len Rugen
That is correct, normally... this one won't upgrade via yum due to dependencies, puppet isn't the problem, but I think it's going to be the solution :-) On Wed, Sep 25, 2013 at 2:06 AM, Rahul Khengare rahulk1...@gmail.comwrote: Hi LenR, You do not required to uninstalled the package if

[Puppet Users] Painful packages

2013-09-24 Thread Len Rugen
I need to upgrade a package, but it's later versions are packaged differently, can I do something like package { zabbix-agent.1.8.15: ensure = absent } some repo ensured present... package {zabbix-agent, zabbix-sender, zabbix-get: ensure = latest } The problem is that a prior repo had

Re: [Puppet Users] Puppet and RH chkconfig

2013-09-11 Thread Len Rugen
Try ensure disabled, On Sep 11, 2013 5:24 PM, Forrie for...@gmail.com wrote: I've been trying to follow several threads around Google about Puppet and it's use (or non-use) of chkconfig on RH Linux. What prompted me to do this is I noticed that Puppet is, correctly, repeatedly logging that

Re: [Puppet Users] using GIT for environments

2013-08-18 Thread Len Rugen
Git push? On Aug 18, 2013 1:01 AM, me 1 solarflo...@gmail.com wrote: I have created a git clone and have been using this to test changes without affecting the modules in production. The problem is, when I commit the change it stays in the closed branch, never pushing the change to the master

Re: [Puppet Users] History of fact inventory

2013-05-17 Thread Len Rugen
I have made selected facts items in our monitor (zabbix), mostly for use in monitoring, ex. how many proc's influences what is high load, but this also makes the history available in the monitor. It's a one-liner zabbix.conf line UserParameter=local.fact[*],facter $1 On Fri, May 17, 2013 at

Re: [Puppet Users] Re: Installing a tarball using Puppet

2013-03-15 Thread Len Rugen
For example: file {/usr/local/src/suphp-0.7.1.tar.gz: owner = root, group = root, mode= 0775, ensure = present, source = puppet:///modules/lamp/suphp-0.7.1.tar.gz, notify =

Re: [Puppet Users] Facter Puppet disagree on RHEL 6?

2013-02-20 Thread Len Rugen
I wasn't sure, too many different languages I guess for a test you could code it == RedHat, but we have a lot of RHEL 6 and I suspect would have hit this somewhere. On Wed, Feb 20, 2013 at 7:12 PM, Nick Fagerlund nick.fagerl...@puppetlabs.com wrote: On Wednesday, February 20, 2013

Re: [Puppet Users] Re: Reducing system load

2012-06-21 Thread Len Rugen
Some thoughts from our similar environment: 1. Puppet client runs are like bugs and a light, they will tend to cluster together. If some client runs are slow, other clients wait, over time, they all end up trying to run at the same time. This was easily observed on the foreman run

Re: [Puppet Users] Is there a way to see find out if a module is installed for use?

2012-04-29 Thread Len Rugen
I've used something like this: Facter.add(:zabbix_version) do setcode do output = %x{/bin/rpm -qa --queryformat %{VERSION} zabbix-agent} end end But rpm queries can be expensive. On Sun, Apr 29, 2012 at 2:42 AM, Peter Foley pe...@ifoley.id.au wrote: Hi List, Is there a puppet

Re: [Puppet Users] Agent thundering herd solutions?

2012-04-28 Thread Len Rugen
When we started with splay, over time we found that puppet runs would flock together. If there were network or system load issues causing multiple puppet runs to be slow, they would seem to clear at the same time, then be on the same schedule from then on. As other clients would hit a slow run,

Re: [Puppet Users] change host file depending on location

2012-04-04 Thread Len Rugen
We run Foreman, so I never think of parameterized classes :-) Another thing we do in some places is concatenated templates, there is a common section and different appendages. On Wed, Apr 4, 2012 at 8:35 AM, myeazel matthew.yea...@gmail.com wrote: Depending on how complex the hosts file needs

Re: [Puppet Users] change host file depending on location

2012-04-03 Thread Len Rugen
This sounds like standard file template should work, for that file, use content = template(your-class/your-template.erb); Then in that file (your-template.erb) you can have: static stuff % if location == us-west-1c -% something % else % default stuff % end % more static stuff The else is

Re: [Puppet Users] Simple newbie question

2012-03-30 Thread Len Rugen
I think your master needs to sign the cert, on the master issue puppet-ca --sign vm2.jhmg.net You'll need to verify that syntax, it's from memory :-) On Fri, Mar 30, 2012 at 6:06 PM, Jim Garrison jhg6...@gmail.com wrote: Trying to set up a simple master/agent configuration on two VMware

[Puppet Users] How to use smart variables

2012-03-29 Thread Len Rugen
We're running foreman 0.4.2 and puppet 2.7.12. I've defined a smart variable some_sv but can't figure out how to reference it in a puppet class. Is it not just $some_sv like any other variable? The settings page has Enable_Smart_Variables_in_ENC set to true. What am I missing? Thanks -- You

[Puppet Users] Puppet symlink

2011-12-30 Thread Len Rugen
We have a case where we've been requested to create an extra symlink. The system provides libsomething.so.0.vv.rr and a symlink of libsomething.so.0. We need create a symlink libsomething.so (without the .0). I'm afraid maintenance may change the base file and break the puppeted symlink. Can

Re: [Puppet Users] create user and push out keys.

2011-12-11 Thread Len Rugen
Yes, if noone else does, I can sanitize an example from our environment, but I'll have to be back in the office. On Dec 10, 2011 4:44 PM, Ola anton.loth...@gmail.com wrote: Hello Im just been working with puppet, the first usecase i have is to set up a system to create users and then push ssh

[Puppet Users] Any way to have exclusive classes?

2011-12-08 Thread Len Rugen
I have a group of classes (about 6 now) that I want to allow a host to use none or at most one of them. This just a guard rail for admins. :-) Basically like this: base base::opt1 base::opt2 ... base::opt6 base is default to all nodes. We use Puppet and Foreman :-) Thanks -- You received

Re: [Puppet Users] kernel 2.6.18-274.7.1.el5 will cork your puppet clients

2011-12-03 Thread Len Rugen
Is the kernel going to be fixed or is it now broken as designed? On Dec 2, 2011 6:56 PM, Jo Rhett jrh...@netconsonance.com wrote: This keeps getting mentioned, but people keep coming onto IRC and the mailing list re-reporting it, so we really need to get this out. In kernel 2.6.18-274.7.1.el5

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

2011-11-11 Thread Len Rugen
. On Fri, Nov 11, 2011 at 7:22 AM, Chip Schweiss chip.schwe...@gmail.comwrote: I think the symptom is similar. but my my case the daemon run, never happens. It just starts, creates the lock file as sits idle forever. On Thu, Nov 10, 2011 at 6:21 PM, Len Rugen lenru...@gmail.com wrote: I think

Re: [Puppet Users] Managing /etc/fstab with puppet

2011-11-11 Thread Len Rugen
mount { /vtl/$vtldir: ensure = mounted, device = server:/nfsdir/$vtldir, atboot = true, fstype = nfs, options = intr,hard,rsize=32768,wsize=32768,proto=tcp,vers=3,nolock, require =

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

[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

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

2011-11-10 Thread Len Rugen
that time. I've changed that process and will see if that fixes the problem. On Thu, Nov 10, 2011 at 8:32 AM, Len Rugen lenru...@gmail.com wrote: 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

Re: [Puppet Users] 2.7.6 yumrepo not working

2011-11-01 Thread Len Rugen
You probably need to escape some of this, part of ours- .repo/\$releasever/\$basearch puppet/factor shouldn't resolve these variables, they go to the repo file and are resolved by yum or whatever. On Tue, Nov 1, 2011 at 10:45 AM, Christopher Johnston chjoh...@gmail.comwrote: Just upgraded

Re: [Puppet Users] Re: Intermittent Error 400 catalog failure

2011-11-01 Thread Len Rugen
Yes, this fits. I'll change my structure and see if it goes away. (Still, would it work sometimes but not always?) On Tue, Nov 1, 2011 at 2:55 PM, Chuck cssc...@gmail.com wrote: It could be this issue if you are using imports in your Puppet code. https://projects.puppetlabs.com/issues/8433

Re: [Puppet Users] Re: Puppet cant find a class

2011-10-17 Thread Len Rugen
Check permissions :-) The puppet master must be able to read the files and the paths to get to them. But, today I've beiin hit with this... after a 2.6.x to 2.7.x upgrade, puppet with forman said it couldn't find some classes that were there before. Removing and re-adding the class works for

Re: [Puppet Users] Official puppetlabs position on cron vs puppet as a service?

2011-09-23 Thread Len Rugen
We're switching back to running as a service, but we observed that the puppet runs tended to cluster together. (We are using foreman also). We used splay at boot to randomize the puppet runs, in case we rebooted a lot of systems at the same time, but over time, puppet runs woud cluster together,

Re: [Puppet Users] Puppet Error during Yum execution

2011-08-25 Thread Len Rugen
You can confirm that by trying to run yum outside of puppet. On Thu, Aug 25, 2011 at 8:42 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - plugins: fastestmirror Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6arch=x86_64repo=os error was 12:

Re: [Puppet Users] Re: Run command based on OS version

2011-08-08 Thread Len Rugen
Create a custom fact for your own needs. FYI $operatingsystemrelase (or some facts) may need the *lsb* packages. (I don't have the exact name, redhat-lsb, I think, if redhat) On Mon, Aug 8, 2011 at 6:30 PM, Steve some1youk...@gmail.com wrote: That's good to know that there is

Re: [Puppet Users] Step by step guide to setting user passwords

2011-08-02 Thread Len Rugen
You aren't sending the password, you are sending the shadow. On one system, set the desired password, get the shadow value, put that in puppet. [root@localhost ~]# passwd student Changing password for user student. New password: BAD PASSWORD: it is too simplistic/systematic Retype new password:

Re: [Puppet Users] Step by step guide to setting user passwords

2011-08-02 Thread Len Rugen
Works on about 300 of ours :-) On Tue, Aug 2, 2011 at 8:54 PM, Jfro jason.shir...@gmail.com wrote: Len, Thanks for the clear directions. I wasn't sure if the shadow value could be transfered to different computers and be decrypted correctly. It looks like it can. I'll give this a try!

Re: [Puppet Users] Managing sudo via puppet using #includedir

2011-08-01 Thread Len Rugen
It's working here for RHEL 5 6. Check the owner and perms of sudoers.d, that's probably not your problem, but it's the only one we've had. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Len Rugen
you can manage them more effectively. On Mon, Jun 13, 2011 at 11:14 PM, Steven Acres ad...@swatteksystems.comwrote: On Mon, Jun 13, 2011 at 10:31 PM, Len Rugen lenru...@gmail.com wrote: It looks like all of our RHEL 6 systems now need to connect to the RHN Optional Channel. (puppet, ruby

Re: [Puppet Users] RHEL 6 Optional channel

2011-06-14 Thread Len Rugen
And I misspoke, we don't have satellite, just proxy. Long day. -- 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] RHEL 6 Optional channel

2011-06-13 Thread Len Rugen
It looks like all of our RHEL 6 systems now need to connect to the RHN Optional Channel. (puppet, ruby vs. selinux deps) Is there a way to do that with a script without having to enter RHN userid and password? Is there a way to add a channel during kickstart? Thanks -- You received this

[Puppet Users] puppetd stops after RH patches

2010-12-20 Thread Len Rugen
We have several RedHat systems that were patched this weekend where puppetd is quietly going away. I'm still gathering info, but all 64-bit RH 5 systems I've checked are OK, the failing systems seem to be limited to 32 bit systems but both RH4 and 5. We don't have many RH 4 systems left..

Re: [Puppet Users] seg fault after client upgrade

2010-03-16 Thread Len Rugen
...@pobox.com wrote: Len Rugen wrote: We updated our server last week to 25.4 and have updated a few clients. I've got one now that is irritated: info: Caching catalog for snipped node /usr/lib64/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault ruby 1.8.1 (2003-12-25) [x86_64-linux

[Puppet Users] seg fault after client upgrade

2010-03-15 Thread Len Rugen
We updated our server last week to 25.4 and have updated a few clients. I've got one now that is irritated: info: Caching catalog for snipped node /usr/lib64/ruby/1.8/yaml/rubytypes.rb:315: [BUG] Segmentation fault ruby 1.8.1 (2003-12-25) [x86_64-linux-gnu] Any thoughts? -- You received this

Re: [Puppet Users] seg fault after client upgrade

2010-03-15 Thread Len Rugen
Will the fix be on the client or server side? On Mon, Mar 15, 2010 at 3:07 PM, Len Rugen lenru...@gmail.com wrote: Who tests on old rhel4 systems :-) Thanks On Mon, Mar 15, 2010 at 2:47 PM, Todd Zullinger t...@pobox.com wrote: Len Rugen wrote: We updated our server last week to 25.4

Re: [Puppet Users] seg fault after client upgrade

2010-03-15 Thread Len Rugen
-irb-1.8.5-5.el4.centos.1.i386.rpm ruby-rdoc-1.8.5-5.el4.centos.1.i386.rpm ruby-libs-1.8.5-5.el4.centos.1.i386.rpm Len Rugen wrote: Will the fix be on the client or server side? On Mon, Mar 15, 2010 at 3:07 PM, Len Rugen lenru...@gmail.com mailto: lenru...@gmail.com wrote: Who tests

Re: [Puppet Users] Re: Puppet 100% CPU usage

2010-03-13 Thread Len Rugen
Since this is an always run, why not just puppet a similar script into cron.hourly and lighten puppets involvement? On Sat, Mar 13, 2010 at 5:32 AM, Alan Barrett a...@cequrux.com wrote: On Fri, 12 Mar 2010, DieterVDW wrote: On Mar 12, 11:21 am, Patrick kc7...@gmail.com wrote: Those files

Re: [Puppet Users] syntax

2010-03-05 Thread Len Rugen
But they don't seem to work IN A TEMPLATE On Fri, Mar 5, 2010 at 1:16 AM, Peter Meier peter.me...@immerda.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So can someone point to working regex template example? First answer of Ohad to your question: you might want to try

Re: [Puppet Users] syntax

2010-03-05 Thread Len Rugen
Maybe the dash in -% is the problem, I was tunnel visioned on the regex part. On Fri, Mar 5, 2010 at 6:58 AM, Len Rugen lenru...@gmail.com wrote: But they don't seem to work IN A TEMPLATE On Fri, Mar 5, 2010 at 1:16 AM, Peter Meier peter.me...@immerda.chwrote: -BEGIN PGP SIGNED

[Puppet Users] syntax

2010-03-04 Thread Len Rugen
Will something like this work in a template? % if fqdn.starts_with?'something' then % My test isn't working, I don't know if it's some minor syntax issue or if I'm completely out of bounds. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] syntax

2010-03-04 Thread Len Rugen
Thanks! That one works with only a warning: warning: parenthesize argument(s) for future version but I can't figure out where it would like parens. This is the problem with web/wiki doc, you never know if it's REALLY right. I couldn't get any regex option working in a template either, but then,

Re: [Puppet Users] syntax

2010-03-04 Thread Len Rugen
Well, it workes in erb test, but not when puppet runs: undefined method `start_with?' for via puppet erb -x -T '-' test.erb | ruby -c says Syntax OK On Thu, Mar 4, 2010 at 10:40 AM, Len Rugen lenru...@gmail.com wrote: Thanks! That one works with only a warning: warning

Re: [Puppet Users] syntax

2010-03-04 Thread Len Rugen
We're running ruby 1.8.5, which is current on the RHEL channel. Are others running puppet at 1.9? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group,

Re: [Puppet Users] syntax

2010-03-04 Thread Len Rugen
So can someone point to working regex template example? Thanks On Thu, Mar 4, 2010 at 1:37 PM, Peter Meier peter.me...@immerda.ch wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We're running ruby 1.8.5, which is current on the RHEL channel. Are others running puppet at 1.9? I

Re: [Puppet Users] Re: Facter 1.5.7 and operatingsystemrelease

2009-12-22 Thread Len Rugen
I posted a question about the lsb prefixed facts a few weeks ago. lsbmaj may be what you're looking for. On Tue, Dec 22, 2009 at 9:17 AM, Kenton Brede kbr...@gmail.com wrote: On Tue, Oct 20, 2009 at 8:45 PM, Ohad Levy ohadl...@gmail.com wrote: Hi, I for one, thinks that the

[Puppet Users] Re: User's and managing expired passwords

2009-08-27 Thread Len Rugen
Just thinking could the password change use notify of a usermod -e new--dd-mm command? On Thu, Aug 27, 2009 at 2:05 PM, Kyle Mallory jesuswasir...@gmail.comwrote: We have a policy that requires all user passwords to expire after 90 days. We also use puppet for managing all users on

[Puppet Users] Re: Notify someone on failure

2009-08-25 Thread Len Rugen
What about checking the last-update times of the /var/lib/puppet.yaml files on the puppetmaster? I've looked at this manually just to see if a host stopped checking in, but not automated anything. On Tue, Aug 25, 2009 at 9:21 PM, Ohad Levy ohadl...@gmail.com wrote: a few options 1. if

[Puppet Users] Re: puppet ignoring /etc/hosts?

2009-08-06 Thread Len Rugen
OH! I'm pretty new at this and I think I know the answer :-) I don't think puppetd reads /etc/sysconfig/puppet (speaking redhat), I think the /etc/init.d/puppet script is what really reads the confiig file. Change hosts to: 192.168.50.70 tec-puppet.tec.cwa.co.nztec-puppet puppet The

[Puppet Users] Moving puppetmaster

2009-07-28 Thread Len Rugen
What is involved in switching to a new puppetmaster? I'm guessing the client will need a new cert, but it looks like I have to rm the old one in /var/lib/puppet/... on the client. Our puppet FQDN is an alias pointing to the current server, as it probably will be on the future server.

[Puppet Users] Re: Info - crash on RHEL4 w/o swap space

2009-07-19 Thread Len Rugen
There were multiple systems, 1 - 2G at most. Most had an inactive (unintentional) swap partition, it hadn't been a problem pre-puppet. And, it wasn't a problem until the puppet server reached about 90 clients. All the RHEL 4 systems were in crontab as 0/30, so they all hit at the same time. We

[Puppet Users] Re: cert sign process after mongrel

2009-07-19 Thread Len Rugen
It was an existing client but I had done a puppetca clean on the puppetmaster. Frontend? It was standard (webrick?) then I followed the mongrel setup using apache. On Sun, Jul 19, 2009 at 2:37 PM, Peter Meier peter.me...@immerda.ch wrote: hi I'm investigating switching to mongrel. After

[Puppet Users] Info - crash on RHEL4 w/o swap space

2009-07-16 Thread Len Rugen
We've started haveing some crashed on systems running RHEL4 w/ message badness in i8042_panick_blink at drivers/input/serio/i8042.c:992 Puppet is version 24.8. In some cases, swap was supposed to be present and wasn't working, on others swap was intentionally omitted. So far, no reoccurances

[Puppet Users] cert sign process after mongrel

2009-07-16 Thread Len Rugen
I'm investigating switching to mongrel. After the switch, the client seems to work without the cert signing process. Is that normal or have I done something wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Puppet Users] Re: Info - crash on RHEL4 w/o swap space

2009-07-16 Thread Len Rugen
:12 PM, Andrew Shafer and...@reductivelabs.comwrote: What crashes exactly? Puppet crashes? Can you see any other pattern in the logs? Searching a bit, that looks like memory starvation. Do you have metrics on memory usage for those machines? On Thu, Jul 16, 2009 at 10:07 AM, Len Rugen

[Puppet Users] Re: puppetd not running on intervals

2009-06-11 Thread Len Rugen
We are just putting our RHEL 4 systems in crontab On Wed, Jun 10, 2009 at 2:31 PM, Christopher christopher.sule...@gmail.comwrote: Turns out this is a bug in facter which is fixed in 1.5.5. The rpm is available in epel-testing. On Jun 10, 11:18 am, Christopher

[Puppet Users] puppetd not running on intervals

2009-05-21 Thread Len Rugen
It seems that one of my puppets isn't refreshing on interval. If I run puppetd manually, it works, but the one running via service isn't. (I stop the service before running the one manually, then start the service later). I changed the runinterval to 900, no difference. Any ideas? Puppet =