[Puppet Users] Info: Duplicate generated resource; skipping

2013-08-27 Thread iamauser
In RHEL6, and puppet-3.2 I am seeing a problem with Tidy. Has anyone else seen this ? Any solution ? @tidy { '/etc/cron.d' matches => "somecron", } In another manifests, change the "matches" parameter and realize it, Tidy["/etc/cron.d"]{ matches => [ "someothercron", "anothercro

[Puppet Users] who is affected by this bug ?

2013-06-19 Thread iamauser
http://puppetlabs.com/security/cve/cve-2013-3567/ Does everyone using puppet affected by this bug ? I haven't understood in detail how puppet works with http. I am using puppetmaster behind rack/passenger and http. Version 3.0.2.x. Besides upgrading to 3.2.2 what else should I know ? Thanks f

[Puppet Users] Re: Understanding how Puppet SSL works !

2013-04-12 Thread iamauser
nger wrote: > > > > On Thursday, April 11, 2013 11:30:45 AM UTC-5, iamauser wrote: >> >> I revoked the certificate of one of the clients by issuing the following >> command on puppetmaster : >> >> puppet cert clean >> >> Then tried to acce

[Puppet Users] Understanding how Puppet SSL works !

2013-04-11 Thread iamauser
I revoked the certificate of one of the clients by issuing the following command on puppetmaster : puppet cert clean Then tried to access the catalog from via : puppet agent --server=puppet and I can still access the catalogs from the master without any error. I checked that the

[Puppet Users] troubleshoot hungup pids in Passenger

2013-04-01 Thread iamauser
'sudo passenger-status' gives me a bunch of processes that are forked from puppetmasterd. I see that some of these processes are hung up for a long time, e.g. PID: 5547 (see below). Is this expected behavior for Puppetmaster behind Passenger ? If not, how can I kill/cure/avoid these processes w

Re: [Puppet Users] Nodes Could not retrieve catalog from remote server: execution expired

2013-04-01 Thread iamauser
Thanks. Just got it configured for our cluster. Now it should be able to manage 250 nodes without a bunch of nodes complaining about timeout. - On Monday, April 1, 2013 2:05:02 PM UTC-5, Matthew Burgess wrote: > > On Mon, Apr 1, 2013 at 5:24 PM, iamauser > > wrote: > >

Re: [Puppet Users] Nodes Could not retrieve catalog from remote server: execution expired

2013-04-01 Thread iamauser
Hi Matt, Thanks for your reply. On Friday, March 29, 2013 2:32:10 PM UTC-5, Matthew Burgess wrote: > > > In addition to what John said, you didn't mention whether you are > already running the puppet master behind Apache or Nginx. If you're > not, then you are most probably being constrained b

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-28 Thread iamauser
On Thursday, March 28, 2013 10:44:04 AM UTC-5, Martin Alfke wrote: > > Hi, > > On Mar 27, 2013, at 2:32 AM, iamauser > > wrote: > > > Thanks Pete and Martin. Follow up question. > > > > Let's assume I have 3 nodes (A,B,C), and all of them have s

[Puppet Users] Re: Nodes Could not retrieve catalog from remote server: execution expired

2013-03-28 Thread iamauser
://projects.puppetlabs.com/projects/1/wiki/Cron_Patterns --- On Thursday, March 28, 2013 8:04:08 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, March 27, 2013 3:39:02 PM UTC-5, iamauser wrote: >> >> Almost 4-5% of the total number of nodes are not receiving catalog f

[Puppet Users] Nodes Could not retrieve catalog from remote server: execution expired

2013-03-27 Thread iamauser
Almost 4-5% of the total number of nodes are not receiving catalog from the master on an hourly run. We have about 250 nodes. The nodes that are receiving this error are rather random. The hourly cron happens almost at the same time. Is there any configuration changes for Puppet that can be

Re: [Puppet Users] Re: PuppetDB SSL error

2013-03-27 Thread iamauser
To pitch my two cents as information. I was searching about this error. In my case I am not running puppetDB. Here are the versions that I am using, puppet-server-3.0.2-1.el5 puppet-3.0.2-1.el5 java-1.6.0-openjdk-1.6.0.0-1.27.1.10.8.el5_8 ruby-1.8.7.352-5.el5 openssl-0.9.8e-22.el5_8.4 Error oc

Re: [Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread iamauser
M UTC-5, Pete wrote: > > On 27 March 2013 01:02, Martin Alfke >wrote: > >> Hi. >> On 26.03.2013, at 15:44, iamauser wrote: >> >> Hello, >> >> Is it possible to configure an ENC to provide class definition to a >> number of nodes at the same time

[Puppet Users] Running ENC alongside site.pp (node defn)

2013-03-26 Thread iamauser
Hello, Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node 'FQDN' {blah} for the same puppetmaster ? I am wondering once parameters are set for the master to look for an ENC based d

[Puppet Users] Re: puppet augeas with more than one array in a single key

2013-03-23 Thread iamauser
Anyone, Dude ! Sir ? NOTE : I am using Puppet-3.0.2.x. On Friday, March 22, 2013 1:48:55 PM UTC-5, iamauser wrote: > > I am trying to put together a set of puppet policies for grub/menu.lst. > The serial::grubmenulst looks like this : > > define serial::grubm

[Puppet Users] puppet augeas with more than one array in a single key

2013-03-22 Thread iamauser
I am trying to put together a set of puppet policies for grub/menu.lst. The serial::grubmenulst looks like this : define serial::grubmenulst ( $value ) { $key = $title $context = "/files/boot/grub/menu.lst" augeas { "grubmenulst/${key}": context => "$context",

[Puppet Users] Re: two mounts with the same name (one present, one absent)

2013-01-18 Thread iamauser
> Two mounts defined as virtual resources with same name but different >> fstype. One is is ensuring present, other absent. Puppet doesn't like it, >> Looking at a bug report earlier ( >> http://projects.puppetlabs.com/issues/7491 ), I followed the suggestion, >> but it doesn't help. puppet th

[Puppet Users] two mounts with the same name (one present, one absent)

2013-01-18 Thread iamauser
What's the best practice to define two mount resources with same name, but different fstypes or ensure parameter ? In my particular case, I have the following : Two mounts defined as virtual resources with same name but different fstype. One is is ensuring present, other absent. Puppet doesn't

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
heers On Friday, January 18, 2013 9:22:35 AM UTC-6, jcbollinger wrote: > > > > On Thursday, January 17, 2013 7:40:11 PM UTC-6, iamauser wrote: >> >> My custom function looks like this : >> >> module Puppet::Parser::Functions >> newfunction(:pattern

[Puppet Users] Re: Error: Function does not return a value

2013-01-18 Thread iamauser
Any words/thoughts/suggestions/hints/ideas/pointers ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/aoLp9yEJ1T4J. To post to this group, send email to pup

[Puppet Users] Error: Function does not return a value

2013-01-17 Thread iamauser
My custom function looks like this : module Puppet::Parser::Functions newfunction(:pattern_in_file, :type => :rvalue) do |args| filename = args[0] pattern = args[1] value = false File.open(filename) do |f|

[Puppet Users] ghost overwriting puppet.conf (help!)

2013-01-10 Thread iamauser
I am puzzled and banging my head on the wall since two hours. After doing some basic and first time setup with ENC (see my earlier posts here) I succeeded to propagate client data. Now when I revert back to the old si

Re: [Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
a > > > wrote: > >> >> >> >> On Thu, Jan 10, 2013 at 3:18 PM, iamauser >> > wrote: >> >>> Running puppet agent with a blank node default didn't throw any error >>> and prints out the notification. I get this message when puppet a

Re: [Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
I guess I figured it out after looking at the PuppetlabConf video on youtube :) Need to restart the puppetmaster. There was a laugh about during in the talk !huh! It doesn't solve my problem though. It now ends up with another error. First warning and then error : ]$ sudo puppet agent --s

Re: [Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
d propagate the policies and prints the notification. -Thanks On Thursday, January 10, 2013 5:02:08 PM UTC-6, Gary Larizza wrote: > > > > > On Thu, Jan 10, 2013 at 2:56 PM, iamauser > > wrote: > >> Hi, >> >> Here is the output. Sorry I didn't

Re: [Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
gt; > > > > On Thu, Jan 10, 2013 at 2:13 PM, iamauser > > wrote: > >> On Thursday, January 10, 2013 4:07:45 PM UTC-6, Gary Larizza wrote: >> >>> What happens when you run `/usr/local/bin/enclassifier node_name`as the >>> puppet user? &g

Re: [Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
On Thursday, January 10, 2013 4:07:45 PM UTC-6, Gary Larizza wrote: > What happens when you run `/usr/local/bin/enclassifier node_name`as the > puppet user? > > This is what it prints out if I run it on puppet-server. ~]# /usr/local/bin/enclassfier node_name --- environment: classes: - defa

[Puppet Users] Re: Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
Just to add : I am using puppet-3.0.2x -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/jaQ7a_m_DmsJ. To post to this group, send email to puppet-users@goog

[Puppet Users] Help needed in setting up a simple ENC

2013-01-10 Thread iamauser
Hello, I am trying to set up a simple ENC, but definitely missing pieces because of which the client data is not propagated to the master. Any help is appreciated. Here is what I do after following some of puppetlab docs (which is not very verbose TBH) : In the puppet-master the yaml containin

[Puppet Users] (notice) : seltype changed

2013-01-08 Thread iamauser
Hello, I am noticing a change in the logging when I upgraded puppet-3.0.2.x from puppet-2.7.x. It shows up the following non-convergent message in every single puppet run. It would be nice to understand what change in the puppet version is causing this messge. Thanks for any suggestion or point

[Puppet Users] Re: file copy, multiple ignore doesn't work

2013-01-03 Thread iamauser
When you say "you checked Ruby's globbing options", do you mean you > actually ran the glob against the target directory using the same Ruby that > the master runs on? It should be pretty easy to do that via irb, just to > be sure, though I don't actually see a problem with your glob. Since

[Puppet Users] file copy, multiple ignore doesn't work

2013-01-02 Thread iamauser
I am trying the following to recursively copy a dir while ignoring things like .hg and a few others. file { "/etc/work-related-dir" : source => "/path/to/masterfiles/work-related-dir", recurse => 'inf', owner => '0', group => '0', ignore => '{.hg,*.conf~}',

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-06 Thread iamauser
Thanks, but we are still running EL5. Do you have rpm available for this ? On Thursday, December 6, 2012 5:12:33 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 08:00 PM, iamauser wrote: > > >> Are you using RHEL od RHEL derivative? If yes, I can provide you RPM. > >

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-06 Thread iamauser
On Thursday, December 6, 2012 11:20:08 AM UTC-6, Jakov Sosic wrote: > On 12/06/2012 05:51 PM, iamauser wrote: > > Hi, > > > > I had tried installing puppet-lint sometime ago, and tried this again as > > you wrote, but I get a bunch of buffer overflow (see below). I

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-06 Thread iamauser
d it will spot most > of the problems and warn you about the double quotes for performance and > clarity reasons. > > Hope that helps :-) > > Best, Nikola > > On Wed, Dec 05, 2012 at 04:19:35PM -0800, iamauser wrote: > > No worries. Your comment helped me to not

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
No worries. Your comment helped me to notice the dollar sign in front of the linkcase. That actually solved the issue. Now it works and yes, I have added a default case as well :) Thanks On Wednesday, December 5, 2012 6:16:55 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 12:58 AM, ia

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
On Wednesday, December 5, 2012 5:50:30 PM UTC-6, Jakov Sosic wrote: > > On 12/06/2012 12:24 AM, iamauser wrote: > > Thanks, but I have tried that already, it doesn't help. > > > > You have another syntax problem that escaped me first time I reviewed > your

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-05 Thread iamauser
Thanks, but I have tried that already, it doesn't help. -Tapas On Wednesday, December 5, 2012 5:21:46 PM UTC-6, Jakov Sosic wrote: > > On 12/04/2012 09:48 PM, iamauser wrote: > > > link_files { '$mynamevar' : > > When you pass the argument within the single

[Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-04 Thread iamauser
I am trying to write a define type which will use an array but in the meantime have an argument pass to it that sets a case. See for example : define link_files ($linkcase) { case $linkcase { "var" : { file { "${name}_exelink" : path => "/var/log/puppet/${

Re: [Puppet Users] copy file from a host other than puppet-server

2012-10-26 Thread iamauser
; > http://projects.puppetlabs.com/projects/1/wiki/using_stored_configuration > > > > > > > > *From:* puppet...@googlegroups.com [mailto: > puppet...@googlegroups.com ] *On Behalf Of *iamauser > *Sent:* 26 October 2012 14:43 > *To:* puppet...@googlegroups.co

[Puppet Users] copy file from a host other than puppet-server

2012-10-26 Thread iamauser
Is there a way to copy files to one host (foo) from another (bar) in the same domain (mydom.org), where neither of them is the puppet-server, but both of them have *puppetd* running ? I am looking for something similar to the *server* method in *cfengine copy* where one can provide a server name

[Puppet Users] Removing a sub array from a combined array

2012-08-24 Thread iamauser
Hello, I have an array $array_comb = unique(flatten([$arr_1, $arr_2, $arr_3, $arr_4])) $arr_1 = unique(flatten(['var1', 'var2', 'var3', 'var5', 'var6', $sub_arr_1])) I would like to remove $sub_arr_1 from $array_comb. I don't want to call delete() for every single element of $sub_arr_1 or $ar

[Puppet Users] Re: delete function syntax help

2012-08-23 Thread iamauser
Never mind. Just figured that out myself. No need for the square brackets []. On Thursday, August 23, 2012 3:22:44 PM UTC+2, iamauser wrote: > > > $compute_nodes = delete([range("100.0.0.1","100.0.0.10")],$get_my_ip) > doesn't > delete $get_my

[Puppet Users] delete function syntax help

2012-08-23 Thread iamauser
$compute_nodes = delete([range("100.0.0.1","100.0.0.10")],$get_my_ip) doesn't delete $get_my_ip ... Is there something wrong in this syntax ? $get_my_ip is a user defined parser function to resolve the ip address from a hostname and it prints out the right address (100.0.0.1). Thanks for a

Re: [Puppet Users] Duplicate definition : Merging arrays

2012-08-22 Thread iamauser
Thanks very much to both of you. Very helpful. -Tapas On Wednesday, August 22, 2012 7:44:25 PM UTC+2, Nick Fagerlund wrote: > > Whoops, collision! Reassuring that we both did the same thing though. :) > -- You received this message because you are subscribed to the Google Groups "Puppet Users

Re: [Puppet Users] Duplicate definition : Merging arrays

2012-08-22 Thread iamauser
Any example, for this case ? I didn't find any on the web... thanks Use the unique and join function from stdlib. > > Nan > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/

[Puppet Users] Duplicate definition : Merging arrays

2012-08-22 Thread iamauser
Hello, I am trying to create a new array by combining two other arrays. I get the following error while running : Duplicate definition: Print[test0] is already defined in file /etc/puppet/manifests/test.pp at line 47; cannot redefine at /etc/puppet/manifests/test.pp:47 My code is similar to t

[Puppet Users] error in doing puppetd --test

2012-08-10 Thread iamauser
Hello, I am new to puppet. I installed puppet-server and puppet on two separate machines. I did a few install and reinstall on the client machines while testing a few things and that perhaps changed the permission settings of the /var/lib/puppet/ssl and some other directories. Now, when I try t