[Puppet Users] Re: Cross-module dependencies

2011-05-24 Thread treydock
I don't have that directory. However I came across this module https://github.com/camptocamp/puppet-sudo which among many things enlightened me to the new feature in sudo-1.7.2+ of using includedir and /etc/sudoers.d that you mentioned. Everything I am using is defined there except now my backupp

Re: [Puppet Users] Re: Cross-module dependencies

2011-05-24 Thread Patrick
On May 24, 2011, at 7:58 PM, treydock wrote: > I have a similar problem I can't seem to solve...here's what I'm > trying to do. > > I have two modules, backuppc_client and sudo. Right now I have a node > variable that I assign to each node that is used in the sudo module's > template to add the

[Puppet Users] Re: Cross-module dependencies

2011-05-24 Thread treydock
I have a similar problem I can't seem to solve...here's what I'm trying to do. I have two modules, backuppc_client and sudo. Right now I have a node variable that I assign to each node that is used in the sudo module's template to add the necessary entry. For example ---manifests/node.pp no

[Puppet Users] Re: Puppetmaster leaving files open with "too many files open" error

2011-05-24 Thread treydock
I don't know how helpful this would be but for now I think I found a "workaround" of sorts for my small environment. I commented out the following in my puppet.conf... facts_terminus = inventory_active_record dbadapter = mysql dbname = puppet_inv dbuser = puppet_in

Re: [Puppet Users] PC EU feedback: unpack array variables in string interpolation

2011-05-24 Thread vagn scott
What should this do? $array = [ "one", "two" ] $greeting = [ "hello", "howdy" ] @file { "host_$array$greeting" } or this? $array = [ "one", "two" ] @file { "$array_blah" } seems like we would need delimiters "host_${array}_${greeting}" and some form of expansion contr

Re: [Puppet Users] Re: Puppetmaster leaving files open with "too many files open" error

2011-05-24 Thread Todd Zullinger
Nathan Clemons wrote: > http://projects.puppetlabs.com/issues/3238 is the issue I was > thinking of, but 3693 is probably a duplicate of that. > > These bugs have been open a really long time. Outside of lowering > the MySQL timeout value, are there any workarounds for this problem? > I can't reall

Re: [Puppet Users] installing puppet client

2011-05-24 Thread Nathan Clemons
Yeah, a for loop with ssh is probably your best bet to get moving with puppet initially. Longer term you may want to consider pairing Puppet with something like Marionette, but configuring Marionette is easier once you have Puppet in place... it's a bit of chicken and egg. Ideally you pick some to

Re: [Puppet Users] installing puppet client

2011-05-24 Thread John Warburton
On 24 May 2011 23:55, CHEBRIAN wrote: > how to install puppet client thru puppet master . > > My requirement is to install puppet client nearly 400 client servers. > > its difficult to install puppet client in all the servers by apt- > get . > > As others have said, a for loop ssh if you have roo

Re: [Puppet Users] ruby 1.9.2 rpms for testing

2011-05-24 Thread Christopher McCrory
Hello... On Tue, 2011-05-24 at 23:26 +0200, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > > > I noticed from the list that puppet is not ready for ruby 1.9.2 yet. > > I'm working at a ruby shop so I gave a shot at building ruby 1.9.2 rpms > > with supporting ge

Re: [Puppet Users] PC EU feedback: exported resource syntax is too magical, hard to read

2011-05-24 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > If you really want to simplify people's life, make those extra > attributes become metaparameters (but please keep the old syntax): > > user { luke: ensure => present, virtual => [boolean] } > > That would even allow us to parametrize virtuality/ex

[Puppet Users] Re: installing puppet client

2011-05-24 Thread jcbollinger
On May 24, 8:55 am, CHEBRIAN wrote: > Hi, > > how to install puppet client thru puppet master . It is via the puppet client (or the local puppet executable) that Puppet applies changes to a system. If the client is not present on a given node then nothing the master can do will change that. >

Re: [Puppet Users] Re: Applying Catalogs

2011-05-24 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Yushu, > My case is a little bit different. Because my webserver might need the IP > address of the mysql node, and before mysql node is deployed and configured, > it's IP address is not known. you should probably look into exported resources and

Re: [Puppet Users] Re: Applying Catalogs

2011-05-24 Thread Yushu Yao
Thanks John, My case is a little bit different. Because my webserver might need the IP address of the mysql node, and before mysql node is deployed and configured, it's IP address is not known. -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrenc

[Puppet Users] Re: Applying Catalogs

2011-05-24 Thread jcbollinger
On May 24, 12:56 pm, Yushu Yao wrote: > Thanks Patrick! > > On Tue, May 24, 2011 at 10:28 AM, Patrick wrote: > > > On May 24, 2011, at 10:03 AM, Yushu Yao wrote: > > > > (For dependency reason I have to apply the above 3 service sets in 3 > > separate steps, and webserver need proxy, and gmond

Re: [Puppet Users] Re: Puppetmaster leaving files open with "too many files open" error

2011-05-24 Thread Nathan Clemons
http://projects.puppetlabs.com/issues/3238 is the issue I was thinking of, but 3693 is probably a duplicate of that. These bugs have been open a really long time. Outside of lowering the MySQL timeout value, are there any workarounds for this problem? I can't really understand how Zynga can be man

Re: [Puppet Users] Re: Puppetmaster leaving files open with "too many files open" error

2011-05-24 Thread Todd Zullinger
treydock wrote: > What is the current issue number? The only one I could find that > mentions the same problem is this , > http://projects.puppetlabs.com/issues/7203. https://bugzilla.redhat.com/show_bug.cgi?id=572722 and http://projects.puppetlabs.com/issues/3693 are both relevant here. I'd lo

Re: [Puppet Users] Re: Does the puppet module tool work with ruby1.9.2?

2011-05-24 Thread Jacob Helwig
On Tue, 24 May 2011 14:12:50 -0700, Kevin Beckford wrote: > > I need some sort of login to post this bug there, one which I do not have. > The bug tracker does require an account to file issues, but registering an account is free, and (relatively) simple. I created a bug report from your initi

Re: [Puppet Users] ruby 1.9.2 rpms for testing

2011-05-24 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi > I noticed from the list that puppet is not ready for ruby 1.9.2 yet. > I'm working at a ruby shop so I gave a shot at building ruby 1.9.2 rpms > with supporting gems for RHEL/CentOS. I have ruby-1.9.2 rpms that > replace the vendor rpms and ru

Re: [Puppet Users] Re: Does the puppet module tool work with ruby1.9.2?

2011-05-24 Thread Kevin Beckford
I need some sort of login to post this bug there, one which I do not have. -- 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

Re: [Puppet Users] Re: custom facter does not show up on client

2011-05-24 Thread Denmat
Hi, Can you confirm you can connect to the puppetmaster from the client? Also on the command line on the client you have to specify --server . To verify puppet master to client connectivity try: openssl s_client -connect :8140 Cheers, Den On 25/05/2011, at 5:53, hyzhang wrote: > I enable pl

[Puppet Users] Re: custom facter does not show up on client

2011-05-24 Thread hyzhang
I enable pluginsyn. But still not working. I am attaching the message here: Retrieving plugin May 24 15:46:22 puppetclient1 puppet-agent[23314]: (/File[/var/lib/ puppet/lib]) Failed to generate additional resources using 'eval_generate': Connection refused - connect(2) May 24 15:46:22 puppetclient

Re: [Puppet Users] changing the default key length and hash

2011-05-24 Thread Daniel Pittman
On Tue, May 24, 2011 at 11:02, Mark Stanislav wrote: > On May 24, 2011, at 1:50 PM, Daniel Pittman wrote: >> On Tue, May 24, 2011 at 06:36, Mark Stanislav >> wrote: >>> On May 24, 2011, at 1:38 AM, Daniel Pittman wrote: On Fri, May 20, 2011 at 08:23, Nigel Kersten wrote: > On Fri, May

Re: [Puppet Users] nice real world web server + db server example

2011-05-24 Thread Adam Heinz
On Tue, May 24, 2011 at 10:13 AM, S Ahmed wrote: > I know there is forge.puppetlabs and example42. > I'm looking for a real world example that someone uses (and has open > sourced) of setting up a config for a website (web server + db server). > Is there anything?  Something that uses the latest v

[Puppet Users] ruby 1.9.2 rpms for testing

2011-05-24 Thread Christopher McCrory
Hello... I noticed from the list that puppet is not ready for ruby 1.9.2 yet. I'm working at a ruby shop so I gave a shot at building ruby 1.9.2 rpms with supporting gems for RHEL/CentOS. I have ruby-1.9.2 rpms that replace the vendor rpms and ruby192 rpms that install in parallel with the vend

Re: [Puppet Users] changing the default key length and hash

2011-05-24 Thread Mark Stanislav
On May 24, 2011, at 1:50 PM, Daniel Pittman wrote: > On Tue, May 24, 2011 at 06:36, Mark Stanislav > wrote: >> On May 24, 2011, at 1:38 AM, Daniel Pittman wrote: >>> On Fri, May 20, 2011 at 08:23, Nigel Kersten wrote: On Fri, May 20, 2011 at 5:39 AM, Mark Stanislav wrote: > […] >>> L

Re: [Puppet Users] changing the default key length and hash

2011-05-24 Thread Brice Figureau
On 24/05/11 19:50, Daniel Pittman wrote: > On Tue, May 24, 2011 at 06:36, Mark Stanislav > wrote: >> On May 24, 2011, at 1:38 AM, Daniel Pittman wrote: >>> On Fri, May 20, 2011 at 08:23, Nigel Kersten wrote: On Fri, May 20, 2011 at 5:39 AM, Mark Stanislav wrote: > […] >>> Larger keys,

Re: [Puppet Users] Applying Catalogs

2011-05-24 Thread Yushu Yao
Thanks Patrick! On Tue, May 24, 2011 at 10:28 AM, Patrick wrote: > > On May 24, 2011, at 10:03 AM, Yushu Yao wrote: > > > (For dependency reason I have to apply the above 3 service sets in 3 > separate steps, and webserver need proxy, and gmond need webserver, for > example) > > So, why can't yo

Re: [Puppet Users] changing the default key length and hash

2011-05-24 Thread Daniel Pittman
On Tue, May 24, 2011 at 06:36, Mark Stanislav wrote: > On May 24, 2011, at 1:38 AM, Daniel Pittman wrote: >> On Fri, May 20, 2011 at 08:23, Nigel Kersten wrote: >>> On Fri, May 20, 2011 at 5:39 AM, Mark Stanislav >>> wrote: […] >> Larger keys, better hashing (probably by adding them as well as m

Re: [Puppet Users] Applying Catalogs

2011-05-24 Thread Patrick
On May 24, 2011, at 10:03 AM, Yushu Yao wrote: > (For dependency reason I have to apply the above 3 service sets in 3 separate > steps, and webserver need proxy, and gmond need webserver, for example) So, why can't you just create three classes, one for each service. Then have each class requ

[Puppet Users] Applying Catalogs

2011-05-24 Thread Yushu Yao
Hi Experts, I need to use puppet to define multiple service sets (e.g. a proxy server, a web server and a gmond). And don't know which of the following two approaches is better. (For dependency reason I have to apply the above 3 service sets in 3 separate steps, and webserver need proxy, and gmon

Re: [Puppet Users] Template conditionals

2011-05-24 Thread Aaron Grewell
Argh, I'll have to take that back. The docs are right, the quotes are in fact necessary. Without them has_variable will always return false. Here's the rub: If a variable is never declared then has_variable returns false. If it's set to 'undef' then it returns true. That wouldn't be so bad if y

Re: [Puppet Users] problem with rack versions and puppet-dashboard

2011-05-24 Thread David Klann
On Tue, 24 May 2011 10:40:03 -0500, you said: > I get this error > can't activate rack (~> 1.0.1), already activated rack-1.2.2 > > It appears that puppet-dashboard uses rack 1.0.1 but passenger 3.0.7 > needs to use rack1.2.2 > > Is there a way around this or make dashboard use rack 1.2.2? >

[Puppet Users] problem with rack versions and puppet-dashboard

2011-05-24 Thread Panaman
I get this error can't activate rack (~> 1.0.1), already activated rack-1.2.2 It appears that puppet-dashboard uses rack 1.0.1 but passenger 3.0.7 needs to use rack1.2.2 Is there a way around this or make dashboard use rack 1.2.2? -- You received this message because you are subscribed to the G

Re: [Puppet Users] Template conditionals

2011-05-24 Thread Aaron Grewell
Yup, that works. FYI there's a bug in the docs. The example shown here: http://docs.puppetlabs.com/guides/templating.html#undefined-variables Looks like so: <% if has_variable?("myvar") then %> myvar has <%= myvar %> value <% end %> On Mon, May 23, 2011 at 4:59 PM, Nan Liu wrote: > On Mon, Ma

Re: [Puppet Users] Variable interpolation challenge

2011-05-24 Thread Aaron Grewell
Thanks Nan, until they make a function out of that I'll keep the template in my cheat sheet. On Mon, May 23, 2011 at 4:53 PM, Nan Liu wrote: > On Mon, May 23, 2011 at 3:51 PM, Aaron Grewell > wrote: > > I'm having a problem with variable interpolation that I haven't found a > good > > solution

[Puppet Users] nice real world web server + db server example

2011-05-24 Thread S Ahmed
Hi, I know there is forge.puppetlabs and example42. I'm looking for a real world example that someone uses (and has open sourced) of setting up a config for a website (web server + db server). Is there anything? Something that uses the latest version, and follows best practices. Thanks allot!

Re: [Puppet Users] installing puppet client

2011-05-24 Thread Charles Johnson
We have 600 compute nodes, and we face the same issue. Fortunately, all of our nodes (except for 10 dual-homed gateways) are on a private 10.x.x.x network, so once someone is authenticated he or she can rsh around the cluster. So, we used multi-rsh to do the initial work for us. I created a tarball

[Puppet Users] installing puppet client

2011-05-24 Thread CHEBRIAN
Hi, how to install puppet client thru puppet master . My requirement is to install puppet client nearly 400 client servers. its difficult to install puppet client in all the servers by apt- get . share u r suggestions . Regards chebrian -- You received this message because you are subscribe

Re: [Puppet Users] Re: Inheritance in parametrized classes

2011-05-24 Thread Carles Amigó
"Correct" is such a nuanced word. I don't know whether the observed behavior is by design, but I don't find it surprising. I would not have found your expected behavior surprising either, however. You may be able to achieve your desired result like this: class { "parent": foo => "test" } clas

Re: [Puppet Users] changing the default key length and hash

2011-05-24 Thread Mark Stanislav
On May 24, 2011, at 1:38 AM, Daniel Pittman wrote: > On Fri, May 20, 2011 at 08:23, Nigel Kersten wrote: >> On Fri, May 20, 2011 at 5:39 AM, Mark Stanislav >> wrote: >>> >>> In short, I'm in agreement with you. With the CA which is defaulted to 5 >>> years (not at all surprising) there's no dou

Ang.: Re: Ang.: Re: [Puppet Users] Facter with a gem

2011-05-24 Thread patant
If I remove the extension .rb the facter dosen't work. So that's not the issue. /Patrik -- 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 em

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-24 Thread Felix Frank
On 05/24/2011 12:29 PM, Jonathan Gazeley wrote: >> If you manage to deploy an utterly broken config, puppet won't be able >> to get itself back up to speed because it cannot start anymore. >> >> Am I missing something here? > > No, you are correct. If I deploy a garbage config, it will break the >

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
"source" option is giving error like below, err: /Stage[main]/Motd/File[/opt/libisc.a]: Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/usr/local/lib/libisc.a Could not retrieve file metadata for puppet://puppetmaster.localdomain/usr/local/lib/libisc.a: Error

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-24 Thread Jonathan Gazeley
On 24/05/11 11:24, Felix Frank wrote: On 05/16/2011 09:14 PM, Jonathan Gazeley wrote: We have configured puppet to manage its own puppet.conf on clients, and to ensure that puppetd is running on all hosts. Hi, maybe I'm being dense, but this doesn't address the original issue, does it? If yo

Re: Ang.: Re: [Puppet Users] Facter with a gem

2011-05-24 Thread Felix Frank
On 05/18/2011 05:18 PM, Patrick wrote: > > On May 18, 2011, at 1:20 AM, patant wrote: > >> Good idea! >> >> >> Now I found another problem. >> Some facts dosent't works when I call them explicit. >> >> The facter shows up in the list when I run facter --puppet. >> But when I call facter --puppet

Re: [Puppet Users] Re: Ensure a package is newer than version X

2011-05-24 Thread Felix Frank
On 05/17/2011 09:37 PM, Doug Warner wrote: > On Gentoo we would handle this by putting a mask in place to mask versions < > 1.7.1, then just ensure => installed on the package. Come to think of it, Debian would do this using apt pinning. There are probably yum/zypper counterparts for the RPM worl

Re: [Puppet Users] Should puppet manage its own client configs?

2011-05-24 Thread Felix Frank
On 05/16/2011 09:14 PM, Jonathan Gazeley wrote: > We have configured puppet to manage its own puppet.conf on clients, and > to ensure that puppetd is running on all hosts. Hi, maybe I'm being dense, but this doesn't address the original issue, does it? If you manage to deploy an utterly broken c

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
Also, have a look at this link: http://docs.puppetlabs.com/guides/file_serving.html This explains how the fileserver works. On 24/05/2011, at 19:02, Sumith Sudhakaran wrote: > Hi, > > below I am mentioning my manifests file > > file { "/usr/11.pdf": > owner => "root", > group

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
Hi, You trying to use a PDF as a template file? I think I've already told you that template won't work as you are telling puppet to use the erb interpreter. > content => template("/usr/11.pdf"), Try: source => "/usr/11.pdf" or use a uri to to location of the file. I strongly urge you

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi, below I am mentioning my manifests file file { "/usr/11.pdf": owner => "root", group => "root", mode => 664, content => template("/usr/11.pdf"), } On Tue, May 24, 2011 at 1:05 PM, Denmat wrote: > Hi, > > It is complaining that you have an illegal character

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
But when I am trying to transfer, getting error only err: Could not retrieve catalog from remote server: Error 400 on SERVER: compile error (erb):2385: Invalid char `\217' in expression (erb):2385: Invalid char `\333' in expression (erb):2385: Invalid char `\026' in expression (erb):2385: Invalid

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
No, there is no file limit that I'm aware of. It uses https to copy the file and on the native webrick server maybe you're hitting some inherent timeout or other. There are some old pre .25 discussions on it. http://groups.google.com/group/puppet-users/browse_thread/thread/7e91404c1673b2b1 Ba

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Denmat
Hi, It is complaining that you have an illegal character in your ERB file. We will need to see more of your manifest to help any further. Have a look at these links and see if they don't help you first. http://docs.puppetlabs.com/guides/templating.html#syntax-checking http://www.devco.net/pubw

Re: [Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi, Thanks for the reply When I am trying to transfer/update a big file ( more than 3mb ) from server to agent, its copying/updaing only 275kp . Please let me know if any file limit settings in puppet configuration. On Tue, May 24, 2011 at 1:05 PM, Denmat wrote: > Hi, > > It is complaining th

[Puppet Users] err: compile erro

2011-05-24 Thread Sumith Sudhakaran
Hi, I am trying to transfer more than 3mb file form puppet server to client, I am error like below err: compile error (erb):1189: Invalid char `\027' in expression Please help. -- * Regards*** * Sumith** * -- You received this message because you are subscribed to the Google Groups "Puppet