Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-06 Thread Brice Figureau
On Wed, 2011-01-05 at 13:25 -0800, Patrick wrote: > > On Jan 5, 2011, at 10:13 AM, Brice Figureau wrote: > > > On 05/01/11 18:11, Sébastien Barthélémy wrote: > > > Hello, > > > > > > I store camera pictures in a git repository, which became quite > > > big: > > > 104 GB for the whole (non-bare)

Re: [Puppet Users] Re: Puppet definitions and inheritance

2011-01-06 Thread Felix Frank
On 01/05/2011 06:19 PM, Arnau Bria wrote: > On Mon, 3 Jan 2011 08:11:50 -0800 (PST) > jcbollinger jcbollinger wrote: > > Hi, > > looking for some other's experience... > > [...] > >> You could also try using ::main::luser, and perhaps even changing >> "main" to something with less potential for

Re: [Puppet Users] Supporting tar.gz as file source

2011-01-06 Thread Doug Warner
On 01/05/2011 09:39 PM, John Warburton wrote: > On 6 January 2011 12:52, Nigel Kersten > wrote: > > > > On Wed, Jan 5, 2011 at 2:52 PM, Michael Knox @gmail.com > wrote: > > It would be neat if puppet could

[Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Mike
Hi, When I start puppetd on my client machine I get this message in /var/ log/messages: Parsing /etc/puppet/puppet.conf reopening log files could not request certificate; retrieved certificate does not match private key; Please remove certificate from server and regenerate it with current key

[Puppet Users] Re: Supporting tar.gz as file source

2011-01-06 Thread jcbollinger
On Jan 5, 8:39 pm, John Warburton wrote: [...] > Our own situation is that we have developers who build their own > applications, and if we packaged them with RPM or pkg, then they would have > to be installed as root. We don't trust them enough for that, so right now > we run an exec as the appl

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-06 Thread Patrick
On Jan 6, 2011, at 4:45 AM, Brice Figureau wrote: > On Wed, 2011-01-05 at 13:25 -0800, Patrick wrote: >> >> On Jan 5, 2011, at 10:13 AM, Brice Figureau wrote: >> >>> On 05/01/11 18:11, Sébastien Barthélémy wrote: Why is puppet so slow at this job? Is there any way I could improv

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-06 Thread Mark Stanislav
>> Clearly no. Do you think 2s is too long? > > > That wasn't what I meant. I was wondering if somehow it was defaulting to on > with all those photos the original poster had. Perhaps they have a site.pp default? Wouldn't be the first time someone ran into that. -Mark > > -- > You receiv

Re: [Puppet Users] Using puppet to fix a lot of files permissions

2011-01-06 Thread Brice Figureau
On Thu, 2011-01-06 at 10:12 -0500, Mark Stanislav wrote: > >> Clearly no. Do you think 2s is too long? > > > > > > That wasn't what I meant. I was wondering if somehow it was > defaulting to on with all those photos the original poster had. > > Perhaps they have a site.pp default? Wouldn't be t

[Puppet Users] Re: puppet 2.6.4 installation options for redhat/centos

2011-01-06 Thread Craig Dunn
On Jan 5, 3:24 pm, pzi wrote: > After a quick read of the 'Installation Guide' at puppetlabs.com I see > that there is either tar or distro options. I looked at distro option > and see that for redhat there is only outdated > puppet-0.25.5-1.el5.noarch.rpm   > athttp://download.fedora.redhat.com

[Puppet Users] sysctl default values overridden by custom app values

2011-01-06 Thread Jake - USPS
I am pretty new to puppet and am trying to POC different scenarios I would envision we would use this product for. One scenario I ran into is setting a default kernel.sem value into /etc/sysctl.conf on linux systems that can be overridden by a custom kernel.sem value for systems that have specific

Re: [Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Adam Heinz
I get that message when I rebuild a server in place. Puppetmaster is complaining that the public key it expects for your node has changed. On your puppetmaster as root, do: find /var/lib/puppet/ssl/ -name $1.pem -delete sed '/$1/d' /var/lib/puppet/ssl/ca/inventory.txt > /tmp/inventory.txt mv -f /

RE: [Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Michael.Itchue
Hi Adam, Thanks for the information. I will give this a try. Mike -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Adam Heinz Sent: Thursday, January 06, 2011 11:30 AM To: puppet-users@googlegroups.com Subject: Re: [Puppet Users]

Re: [Puppet Users] Re: Supporting tar.gz as file source

2011-01-06 Thread Felix Frank
On 01/06/2011 03:33 PM, jcbollinger wrote: > > On Jan 5, 8:39 pm, John Warburton wrote: > [...] >> Our own situation is that we have developers who build their own >> applications, and if we packaged them with RPM or pkg, then they would have >> to be installed as root. We don't trust them enough

[Puppet Users] puppetdoc - referring to main class

2011-01-06 Thread Adrian Bridgett
I'm being a good boy and using the puppetdoc tool to document my classes, however I'm hitting a minor annoyance. The top level documentation for a module (let's call it "example) is pulled from example/README (not example/manifests/init.pp), okay I can cope with that. The documentation for the cl

[Puppet Users] Re: puppetdoc - referring to main class

2011-01-06 Thread Adrian Bridgett
Posted 5mins too early, found the answer. Hopefully this will help someone else. # See example[link:classes/example/example.html] HTH, Adrian -- 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...@go

[Puppet Users] Retrieving Version Numbers from Packages

2011-01-06 Thread Martin Harrigan
Hi, I install the latest version of a Ruby gem using: package { 'passenger': ensure => latest, provider => 'gem' } However, I want to retrieve the actual version number for further configuration. Is this possible? I don't think I can use a custom fact since it may be evaluated on the client bef

Re: [Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Daniel Pittman
On Thu, Jan 6, 2011 at 08:29, Adam Heinz wrote: > I get that message when I rebuild a server in place.  Puppetmaster is > complaining that the public key it expects for your node has changed. > On your puppetmaster as root, do: > > find /var/lib/puppet/ssl/ -name $1.pem -delete > sed '/$1/d' /var/

Re: [Puppet Users] Retrieving Version Numbers from Packages

2011-01-06 Thread Daniel Pittman
On Thu, Jan 6, 2011 at 09:24, Martin Harrigan wrote: > I install the latest version of a Ruby gem using: > > package { 'passenger': ensure => latest, provider => 'gem' } > > However, I want to retrieve the actual version number for further > configuration. Is this possible? Not inside the puppet

Re: [Puppet Users] Documentation of report formats

2011-01-06 Thread Alan Barrett
On Mon, 03 Jan 2011, Paul Berry wrote: > > > we've documented the changes we're anticipating here: > > > http://projects.puppetlabs.com/projects/puppet/wiki/Report_Format_2 > > > > Is there improved support for noop mode? I didn't notice anything like > > status = "out of sync, but did not change

Re: [Puppet Users] puppetdoc - referring to main class

2011-01-06 Thread Brice Figureau
On 06/01/11 18:20, Adrian Bridgett wrote: > I'm being a good boy and using the puppetdoc tool to document my > classes, however I'm hitting a minor annoyance. > > The top level documentation for a module (let's call it "example) is > pulled from example/README (not example/manifests/init.pp), okay

RE: [Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Michael.Itchue
Hi Adam, This process seemed to work as far as keys go. However, when I restarted the puppetd client now I get a message In the log that states: Starting puppet client version 2.6.4 Could not retrieve catalog from remote server; hostname was not a match with the server certificate. Any ideas? T

Re: [Puppet Users] Certificate / Private Key Mismatch

2011-01-06 Thread Adam Heinz
On Thu, Jan 6, 2011 at 12:48 PM, Daniel Pittman wrote: > A better way to do this is to use the Puppet CA application: > > ] puppet cert --clean $1  # $1 is the node name, as before > > (on older releases, puppetca --clean) > > That does pretty much the same thing, but does the right locking and >

[Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-06 Thread Ace
As you can see the append function is running last and hence all this is working. What controls the sequence in which the modules/classes/ function execute in puppet? Is this random or during the catalog compilation, puppet understands that it needs to run specific modules earlier and other modules

Re: [Puppet Users] Re: Managing cronjobs as a file in solaris with appendifnosuchline for specific servers

2011-01-06 Thread Nigel Kersten
On Thu, Jan 6, 2011 at 11:49 AM, Ace wrote: > As you can see the append function is running last and hence all this > is working. What controls the sequence in which the modules/classes/ > function execute in puppet? Is this random or during the catalog > compilation, puppet understands that it n

[Puppet Users] can a class require an other class?

2011-01-06 Thread Luc Suryo
Hello Is it possible to define a class say php-fpm that requires the class php to be called first ? if so what s the syntax? Here is some background (Ubuntu distro) To get the latest version of either php or php-fpm I need to setup a new repo (dotdeb), since if one is using php-fpm there is big

[Puppet Users] Re: can a class require an other class?

2011-01-06 Thread jcbollinger
On Jan 6, 2:29 pm, Luc Suryo wrote: > Hello > > Is it possible to define a class say php-fpm that requires the class > php to be called first ? > if so what s the syntax? > > Here is some background (Ubuntu distro) > > To get the latest version of either  php or php-fpm I need to setup a > new r

Re: [Puppet Users] Re: Puppet definitions and inheritance

2011-01-06 Thread Arnau Bria
On Thu, 06 Jan 2011 13:49:56 +0100 Felix Frank wrote: Hi Felix, > > In our work, we're 4 people sharing a puppet server and puppet > > structure. We define our definitions inside our classes, and > > sometimes we see that some of we use same def but defined in its > > our class (i. e. add_line de

[Puppet Users] mc-facts fails with "Could not call remote agent: can't clone NilClass"

2011-01-06 Thread Mohamed Lrhazi
Hello, Anyone knows what would cause: $ mc-facts lsbdistrelease Could not call remote agent: can't clone NilClass I am using mcollective 1.0. This command works, on the other hand: $ mc-find-hosts --with-fact operatingsystem=RedHat Sorry if there is an mcollective specific list... Thanks a

Re: [Puppet Users] mc-facts fails with "Could not call remote agent: can't clone NilClass"

2011-01-06 Thread R.I.Pienaar
hello, - Original Message - > Hello, > > Anyone knows what would cause: > > $ mc-facts lsbdistrelease > Could not call remote agent: can't clone NilClass using: $ mc-inventory do you see that the fact exist? There's a mcollective specific list over at http://groups.google.com/gro

Re: [Puppet Users] mc-facts fails with "Could not call remote agent: can't clone NilClass"

2011-01-06 Thread Mohamed Lrhazi
Yes, using that mc-inventory command, all facts are printed out, including the one I was trying I will repost on the correct list, thanks so much. Mohamed. On Thu, Jan 6, 2011 at 4:26 PM, R.I.Pienaar wrote: > hello, > > - Original Message - >> Hello, >> >> Anyone knows what would cau

Re: [Puppet Users] Supporting tar.gz as file source

2011-01-06 Thread Michael Knox
On 6/01/11 12:52 PM, Nigel Kersten wrote: On Wed, Jan 5, 2011 at 2:52 PM, Michael Knox @gmail.com > wrote: It would be neat if puppet could use tar.gz's as a source, instead of just bare directory trees. So I've lodged a feature request: h

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread Daniel Pittman
On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: > Is it possible to define a class say php-fpm that requires the class > php to be called first? if so what s the syntax? Yes: package { "foo": require => Class["bar"] } I think Nigel just pointed out in another thread that this is, in fact, our

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread R.I.Pienaar
- Original Message - > On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: > > > Is it possible to define a class say php-fpm that requires the class > > php to be called first? if so what s the syntax? > > Yes: package { "foo": require => Class["bar"] } > > I think Nigel just pointed out

Re: [Puppet Users] sysctl default values overridden by custom app values

2011-01-06 Thread Dan Bode
On Thu, Jan 6, 2011 at 6:23 AM, Jake - USPS wrote: > I am pretty new to puppet and am trying to POC different scenarios I > would envision we would use this product for. One scenario I ran into > is setting a default kernel.sem value into /etc/sysctl.conf on linux > systems that can be overridde

Re: [Puppet Users] Re: can a class require an other class?

2011-01-06 Thread Dan Bode
On Thu, Jan 6, 2011 at 12:50 PM, jcbollinger wrote: > > > On Jan 6, 2:29 pm, Luc Suryo wrote: > > Hello > > > > Is it possible to define a class say php-fpm that requires the class > > php to be called first ? > > if so what s the syntax? > > > > Here is some background (Ubuntu distro) > > > > To

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread Daniel Pittman
On Thu, Jan 6, 2011 at 14:19, R.I.Pienaar wrote: >> On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: >> >> > Is it possible to define a class say php-fpm that requires the class >> > php to be called first? if so what s the syntax? >> >> Yes: package { "foo": require => Class["bar"] } >> >> I think

[Puppet Users] Re: can a class require an other class?

2011-01-06 Thread jcbollinger
On Jan 6, 4:04 pm, Daniel Pittman wrote: > On Thu, Jan 6, 2011 at 12:29, Luc Suryo wrote: > > Is it possible to define a class say php-fpm that requires the class > > php to be called first?  if so what s the syntax? > > Yes:  package { "foo": require => Class["bar"] } > > I think Nigel just po

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread R.I.Pienaar
- Original Message - > > In this example that you are responding to - class php::foo that > > requires php - > > your suggestion is a bit weird. With your suggestion anyone who ever > > want to > > use this class need to know "when including php::foo you need to > > remember to > > set th

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread Dan Bode
On Thu, Jan 6, 2011 at 3:14 PM, R.I.Pienaar wrote: > > > - Original Message - > > > In this example that you are responding to - class php::foo that > > > requires php - > > > your suggestion is a bit weird. With your suggestion anyone who ever > > > want to > > > use this class need to k

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread R.I.Pienaar
- Original Message - > > > imho the right solution is a combination of the require and include > keywords, > resources requiring classes used extremely sparingly and the new > syntax as Dan > pointed out. > > What worries me greatly is that 'use parametrized classes' for > everything >

Re: [Puppet Users] Re: Puppet definitions and inheritance

2011-01-06 Thread Nigel Kersten
On Thu, Jan 6, 2011 at 1:12 PM, Arnau Bria wrote: > On Thu, 06 Jan 2011 13:49:56 +0100 > Felix Frank wrote: > > Hi Felix, > > > > In our work, we're 4 people sharing a puppet server and puppet > > > structure. We define our definitions inside our classes, and > > > sometimes we see that some of w

Re: [Puppet Users] can a class require an other class?

2011-01-06 Thread Nigel Kersten
On Thu, Jan 6, 2011 at 2:19 PM, R.I.Pienaar wrote: We need to retain - and recommend, document and support - the way for > classes > to set relationships between classes. This is really important to me. Classes must continue to be able to set relationships between classes. On Thu, Jan 6, 2011

[Puppet Users] Silence reports for one specific resource?

2011-01-06 Thread Mohamed Lrhazi
I have puppet configured on all hosts as described in the previous post of mine... basically two instances are running, one as daemon, which does not download the config and just waits for puppetrunner calls, and one that does, started from cron, but runs in noop mode. My problem is as follows: I

[Puppet Users] facter --puppet does not report "environment"

2011-01-06 Thread Mohamed Lrhazi
Is it normal that "facter --puppet" does not show the environment variable? is there a way to have it include it? Thanks a lot, Mohamed. -- 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...@googlegro

Re: [Puppet Users] facter --puppet does not report "environment"

2011-01-06 Thread Nigel Kersten
On Thu, Jan 6, 2011 at 8:11 PM, Mohamed Lrhazi wrote: > Is it normal that "facter --puppet" does not show the environment > variable? is there a way to have it include it? facter --puppet shows the facter facts, plus any that have been delivered by puppet and pluginsync. "environment" isn't a fa

[Puppet Users] ralsh does not support inline_template ?

2011-01-06 Thread Mohamed Lrhazi
When I run this from command line, I don't get what I expect: $ sudo puppet resource file /tmp/foo ensure=file content='inline_template("<%= scope.to_hash.reject { |k,v| !( k.is_a?(String) && v.is_a?(String) ) }.to_yaml %>")' I expect to see all my facts and env vars, instead I get the literal st

Re: [Puppet Users] Re: Supporting tar.gz as file source

2011-01-06 Thread John Warburton
On 7 January 2011 01:33, jcbollinger wrote: > > On Jan 5, 8:39 pm, John Warburton wrote: > [...] > > Our own situation is that we have developers who build their own > > applications, and if we packaged them with RPM or pkg, then they would > have > > to be installed as root. We don't trust them

Re: [Puppet Users] Silence reports for one specific resource?

2011-01-06 Thread Alan Barrett
On Thu, 06 Jan 2011, Mohamed Lrhazi wrote: > I added one resource to all the hosts, which dumps all environment > variables to a file called: /etc/mcollective/facts.yaml > This resource always reports that a change needs to be made, since > that file content is always changing... > > How do I sile