Re: [Puppet Users] Slides TDD with puppet - puppetcamp paris yesterday

2014-04-16 Thread Johan De Wit
Great having a discussion on testing. I have to reread all your comments, having a busy week catching up with work after a week of having fun at all the puppetcamps. I keep on tracking this thread, and will add my thoughts soon. Thanks for all your comments' Johan On 15/04/14 15:46,

[Puppet Users] Re: Hiera Performance Testing

2014-04-16 Thread Daniele Sluijters
Ah, Then I'm afraid you're on your own. The instrumentation framework got added and expanded upon somewhere in the 3.x series, I believe 3.2 was the first to be able to give some useful information and as of 3.5 the API is actually public so that others can build on it. As far as Hiera goes,

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-16 Thread Felix Frank
Hmm, I still don't really see what you are intent on doing specifically, to be honest. Looking at https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/user/useradd.rb#L195 does this problem not boil down to overriding the passcmd method and adding some kind of case statements to

Re: [Puppet Users] Could not find terminus console for indirection node

2014-04-16 Thread Felix Frank
Hi, no this is new to me. Can you share the puppet.conf from your master and agent? Thanks, Felix On 04/16/2014 03:07 AM, triceras wrote: Hi All, I was running puppet agent manually on a node when suddenly all the puppet node executions started to fail with the following error message

Re: [Puppet Users] Provider macports is not functional on this host error

2014-04-16 Thread Felix Frank
Hi, that's weird. What's the output of facter -p operatingsystem on this machine? On 02/26/2014 04:47 PM, Pascal Robert wrote: Hi, I'm working on our first Puppet deployment, and one of the things we want to install is the NRPE (Nagios agent) on our CentOS, Ubuntu and OS X boxes. The

Re: [Puppet Users] How to install rpm and push file to set of servers

2014-04-16 Thread Felix Frank
So, your servers are already classified, but there are groups of servers that do not align with the basic classification. Is that your problem? On 02/27/2014 02:23 PM, Vivek wrote: Hi there, I would like to install rpms from Puppet master to puppet clients and also push some files to list of

Re: [Puppet Users] Puppet agent hogging CPU/RAM

2014-04-16 Thread Felix Frank
Hi, that may be a red herring. Whatever is causing your contention may well be the action taken *after* what is logged at that moment. I advise to either * watch the `ps auxwf` output for child processes or failing that * emply `strace -f` to try and determine what is going on, roughly HTH,

Re: [Puppet Users] How puppet install another version of the same package.

2014-04-16 Thread Felix Frank
Interesting use case. Sounds like we may be lacking a feature here. Shlo, is the yum command working when you paste it just the way puppet issues it, or are you skipping all the fancy parameters of puppet's? Cheers, Felix On 03/05/2014 11:30 AM, Flamarion Jorge wrote: Hi, I have same

Re: [Puppet Users] Best Practices/Ideas for mixing Windows and Linux

2014-04-16 Thread Felix Frank
Hi, and welcome aboard! :) In the rare case where Linux and Windows will have use for the same modules (I can hardly think of any, barring perhaps nagios, but even there I prefer NSCA on Windows vs. NRPE on Linux), I would still hesitate before creating two worlds. Each module should be self

Re: [Puppet Users] how do I check to see whether a hash value is defined if a parent of the hash value might not even exist?

2014-04-16 Thread Felix Frank
Hi, the puppetlabs-stdlib module introduces a has_key() function to puppet. HTH, Felix On 03/10/2014 09:42 PM, Steve Neuharth wrote: The trouble is that it totally fails if even the top or intermediate levels of the hash don't exist. I've tried using if

Re: [Puppet Users] Recursive file delete fails with empty files

2014-04-16 Thread Felix Frank
Hi, yes, if there is not yet a bug report about this, it would be great if you could create one. Cheers, Felix On 03/10/2014 10:13 PM, Sam Tresler wrote: So, is this a known bug, by design, or something that I should figure out how to file a bug report for? I can work around it easily

Re: [Puppet Users] How to install puppet on ubuntu 13.10?

2014-04-16 Thread Felix Frank
Hi, that's actually quite well documented: http://docs.puppetlabs.com/guides/installation.html#debian-and-ubuntu On 03/14/2014 01:59 AM, pengyu...@gmail.com wrote: Hi, I run the following commands to install puppet on ubuntu 13.10. But they are not successful. Does anybody know what is the

Re: [Puppet Users] How to use puppet on ubuntu 13.10?

2014-04-16 Thread Felix Frank
You are stuck on this step: http://docs.puppetlabs.com/guides/installation.html#sign-node-certificates I advise to perfer the PuppetLabs documentation over third party material. It is generally of very high quality. On 03/14/2014 02:57 PM, Peng Yu wrote: pengy@boron:~$ sudo puppet agent --test

Re: [Puppet Users] Using different version of ruby

2014-04-16 Thread Felix Frank
Hi, I fear that is an oddball combination you're asking for. I assume that it should be quite simple to run Puppet through ruby 1.9 if you forgo the apt package and install via gem1.9.1 instead (yes, the binary name is misleading - it *is* 1.9.3). Regards, Felix On 03/14/2014 11:13 AM, Andrea

Re: [Puppet Users] Ubuntu puppet agent execution permissions

2014-04-16 Thread Felix Frank
Hi, perhaps the permissions on your $vardir are too wide? In short, no - you typically do not want any user to be able to access the necessary information to connect to your puppet master. Cheers, Felix On 03/14/2014 01:11 PM, Vladimir Nikolic wrote: Hello, is it normal behaviour for

Re: [Puppet Users] Memory sizing (or leak) in master. [Tkt: 115440]

2014-04-16 Thread Felix Frank
I honestly don't know but - what is the exact ruby version on this box, down to the patch level? On 03/14/2014 02:18 PM, Chris Ritson wrote: How much memory would be normal for a setup of this size, and how is it likely to scale as we add more client agents? -- You received this message

Re: [Puppet Users] puppet facts upload not working

2014-04-16 Thread Felix Frank
Humm, I never tried that. Have you tried launching the master process using --no-daemonize -dv and watch the debug output? On 03/18/2014 04:14 AM, Corey Osman wrote: #bash: puppet facts upload Error: execution expired Error: Try 'puppet help facts upload' for usage -- You received this

Re: [Puppet Users] fail on first error. don't continue doing stuff

2014-04-16 Thread Felix Frank
How does this failure manifest itself then? Have you scrutinized the agent's log to get to the bottom of it? On 03/18/2014 10:03 PM, Alexander Gray II wrote: I have weird scenario: When I run puppet for the very first time, it always fails, but when I re-run puppet on that machine, it always

Re: [Puppet Users] Using Puppet with a self-signed ssl certificate

2014-04-16 Thread Felix Frank
Actually, yeah. Can't you just used that corporate cert as your CA? I think you would end up with this: http://docs.puppetlabs.com/puppet/latest/reference/config_ssl_external_ca.html#option-1-single-ca HTH, Felix On 03/26/2014 10:55 PM, Tom Albrecht wrote: The ... is information on the

Re: [Puppet Users] 403 You don't have permission to access /production/... after switching from puppemaster to passenger

2014-04-16 Thread Felix Frank
Hi, I don't really have a clue, but have you checked your auth.conf in your $confdir? On 03/27/2014 05:36 PM, bjoern pohl wrote: Any Idea what this could be or how I can get better debug information what passenger does not like here ? ( PassengerLog is currently pointing to the webserver

Re: [Puppet Users] YAML in network requests is deprecated

2014-04-16 Thread Felix Frank
Hi, you can try and start with `puppet master --configprint all | grep -i yaml`. HTH, Felix On 03/29/2014 01:01 PM, Rakesh Kathpal wrote: Hi, I see that this issues has been fixed in puppet 3.3. https://projects.puppetlabs.com/issues/21427 I am using puppet 3.4 but still receiving a

Re: [Puppet Users] Setting validproperties fields in provider modules

2014-04-16 Thread Jim Perry
Thanks. I am still learning Ruby so I will look into accessors in more detail. What I am trying to do is call the HPUX provider and use it to set the min and max age that gets passed back to the parent. Then I also need to be able to verify the right commands are used to reset the expiration when

[Puppet Users] puppetlabs-apache

2014-04-16 Thread willi . fehler
Hi, we are using puppetlabs-apache module version 1.01. When we run puppet parser validate to check our Puppet code we see the following error: Warning: You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 65 in file

[Puppet Users] Hiera arry into ERB template

2014-04-16 Thread Sans
Hi there, Trying to figure out how to use hiera-array in my template. So, this is what I have in .yaml file: my_coll_list: - mon502.local - mon522.local and in my nodes.pp, I have this: $my_colloctors = hiera_array('my_coll_list') then in one of my ERB templates, I using that

Re: [Puppet Users] Re: Hiera Performance Testing

2014-04-16 Thread Nan Liu
On Mon, Apr 14, 2014 at 12:35 PM, David Danzilio david.danzi...@gmail.comwrote: Unfortunately, and I probably should've mentioned this in the OP, we're currently stuck on the 2.7 series. You should be able to run puppet master --compile certname and time it to get a coarse measurement of

Re: [Puppet Users] selecting a command in a provider based on class variable?

2014-04-16 Thread Nan Liu
On Fri, Apr 11, 2014 at 7:15 PM, Tim Mooney tim.moo...@ndsu.edu wrote: The tl;dr version: Can anyone point me at an example of an existing provider that selects a particular command based not on a facter fact or whether a particular path exists, but instead on a variable from a puppet class?

[Puppet Users] Same methods in two providers - how to optimize it?

2014-04-16 Thread Jakov Sosic
Hi, I'm developing some of my custom types, and some of them share same params, with exactly the same methods... For example, I have these params in three of my types and they are same: lib/puppet/type/mytype1.rb lib/puppet/type/mytype2.rb lib/puppet/type/mytype3.rb newproperty(:comment) do

[Puppet Users] Dashboard: New Install: Report processor failed - permission denied

2014-04-16 Thread Will Button
Hi all, Installed puppet open source 2.7.23 and puppet dashboard. I have agents successfully talking to the master Puppet dashboard gui works on port 3000 I can post successfully using a rest client to http://ph-puppet01.mylist.com:3000/reports/upload puppetmaster service is running,

[Puppet Users] file: square bracket in template

2014-04-16 Thread Laurent CREPET
Hi, I'm new to Puppet. I'm using Puppet 3.4.3. I'm trying tried to build a template of file /etc/my.cnf. Puppet does not like the square brackets in my.cnf.erb, giving the following error: Error: Parameter source failed on File[/etc/my.cnf]: Could not understand source [mysqld] I will

[Puppet Users] Re: file: square bracket in template

2014-04-16 Thread jcbollinger
On Wednesday, April 16, 2014 8:01:13 AM UTC-5, Laurent CREPET wrote: Hi, I'm new to Puppet. I'm using Puppet 3.4.3. I'm trying tried to build a template of file /etc/my.cnf. Puppet does not like the square brackets in my.cnf.erb, giving the following error: Error: Parameter source

Re: [Puppet Users] Hiera arry into ERB template

2014-04-16 Thread José Luis Ledesma
Hi, First, hiera_array function if for creating an array looking for the key in every hiera hierarchy, if the values are just on one level, you should use the hiera function. Second, the problem here is the way erb templates print arrays, so just a matter of format. Regards, El 16/04/2014

Re: [Puppet Users] Dashboard: New Install: Report processor failed - permission denied

2014-04-16 Thread José Luis Ledesma
Hi, You should be using puppet 3.x if you are just starting. Anyway, have you created the node in the dashboard with his fqdn? Regards, El 16/04/2014 19:25, Will Button rekibnikufe...@gmail.com escribió: Hi all, Installed puppet open source 2.7.23 and puppet dashboard. I have agents

[Puppet Users] Re: Hiera arry into ERB template

2014-04-16 Thread jcbollinger
On Wednesday, April 16, 2014 11:31:53 AM UTC-5, Sans wrote: Hi there, Trying to figure out how to use hiera-array in my template. So, this is what I have in .yaml file: No, you are just trying to use an array. Your template can't tell where the array came from or how it was

[Puppet Users] Re: puppetlabs-apache

2014-04-16 Thread jcbollinger
On Wednesday, April 16, 2014 11:11:30 AM UTC-5, willi@home24.de wrote: Hi, we are using puppetlabs-apache module version 1.01. When we run puppet parser validate to check our Puppet code we see the following error: Warning: You cannot collect exported resources without storeconfigs

[Puppet Users] Re: fail on first error. don't continue doing stuff

2014-04-16 Thread jcbollinger
On Tuesday, March 18, 2014 4:03:38 PM UTC-5, Alexander Gray II wrote: I have weird scenario: When I run puppet for the very first time, it always fails, but when I re-run puppet on that machine, it always passes. I must have some obscure dependency issue somewhere and I'm trying to track

Re: [Puppet Users] Memory sizing (or leak) in master. [Tkt: 115440]

2014-04-16 Thread Ramin K
On 3/14/2014 6:18 AM, Chris Ritson wrote: Am I being too optimistic? Running a centos 6.5 virtual machine as puppet master, on version 3.4.3, I am frequently running out of memory. The virtual machine only has 0.75Gig of allocated memory. It holds 225 certificates, but only about 130 of these

Re: [Puppet Users] Dashboard: New Install: Report processor failed - permission denied

2014-04-16 Thread Will Button
Hey, thanks for the reply! I had installed puppet-server from the epel repos- that's where I got 2.7. I added the puppetlabs repos, removed 2.7 and installed 3.4. Restarted, and all works great now. Thanks for your help! On Wednesday, April 16, 2014 10:55:05 AM UTC-7, Jose Luis Ledesma wrote:

[Puppet Users] Announce: Puppet 3.5.1 available!

2014-04-16 Thread Eric Sorenson
Released April 16, 2014. (RC1: April 10.) 3.5.1 is a backward-compatible features and fixes release in the Puppet 3 series. When 3.5.0 went final, users found breaking issues with the `yumrepo` resource type and with dynamic environments which hadn't been uncovered in the release candidate