Re: [Puppet Users] Using file and mount more efficiently

2013-08-22 Thread maillists0
... and $name is the default variable given to you by puppet, so you don't have to define it. Works like $_ in perl. On Wed, Aug 21, 2013 at 7:18 PM, Peter Bukowinski wrote: > You define an array-containing variable like this: > > $mounts = [ 'directory1', 'directory2', 'directory3' ] > >

Re: [Puppet Users] Using file and mount more efficiently

2013-08-21 Thread maillists0
You can fake interation. "$name" is a free variable for whatever you're passing in. I have NOT tested this, but it might look something like this: define my_mounts { mount { "/home/$name": > >device => "our-thumper.domain.com:/export/$name", atboot => yes,

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread maillists0
On Tue, Jun 12, 2012 at 8:12 AM, Julien C. wrote: > Hi, > > I'm trying to make all my servers send their logs to a central server. Which > seems quite simple, at first. > > My problem is that my servers are on different versions of different > operating systems. > And each of them has a different

Re: [Puppet Users] "decryption failed or bad record mac" errors

2012-06-11 Thread maillists0
On Mon, Jun 11, 2012 at 4:50 PM, Jeff McCune wrote: > It could be your CA certificate has expired. Could you paste the output of > openssl x509 -text -noout -in /etc/puppet/ssl/ca.pem ? > > -- Thanks, Jeff. Since this is a work cert I'm not gonna post the whole thing, but I think this is the par

Re: [Puppet Users] "decryption failed or bad record mac" errors

2012-06-11 Thread maillists0
: >> I inherited an old installation (0.24) that's been trouble-free until >> recently, when I started getting these error messages from a single >> machine: >> >> Failed to retrieve current state of resource: Certificates were not >> trusted: SSL_read:: decryption failed or bad record mac Could no

[Puppet Users] "decryption failed or bad record mac" errors

2012-06-11 Thread maillists0
I inherited an old installation (0.24) that's been trouble-free until recently, when I started getting these error messages from a single machine: Failed to retrieve current state of resource: Certificates were not trusted: SSL_read:: decryption failed or bad record mac Could not describe /tomcat/

[Puppet Users] how to use optional parameters

2011-10-07 Thread maillists0
New to puppet and I just don't understand how to do this. Apologies in advance if it's a dumb question. Let's say I have a module called httpd and inside that is a class called httpd::service, which accepts a couple of parameters: class httpd::service ( $running = 'running', $enabled

[Puppet Users] help with user type

2011-07-09 Thread maillists0
Could really use some help with this. I have a simple class that contains only this: user { "myuser": ensure => "present", home => "/home/myuser", shell=> "/bin/bash", uid => "1001", gid => "1001", comment => "My user", }

[Puppet Users] Inheritance/Performance

2011-04-25 Thread maillists0
Newb question. The style guide contains this: Inheritance may be used within a module, but must not be used across module namespaces. Cross-module dependencies should be satisfied in a more portable way that doesn’t violate the concept of modularity, such as with include statements or relationship

[Puppet Users] Number of procs, redux

2010-12-01 Thread maillists0
No answers to this? Sorry if it's a stupid question, but I was hoping it would be dead easy for someone here to answer. I've edited in case it wasn't clear enough. We upgraded to 2.6.3 and we've suddenly noticed two and sometimes three puppet processes frequently running on the clients. Is this no

[Puppet Users] Number of procs

2010-11-30 Thread maillists0
We upgraded to 2.6.3 and we've suddenly noticed two and sometimes three puppet processes running. They certainly look like forks... one process always has a long running time, while the others are short and disappear quickly. Is this normal? Is it new to this version or are we just noticing it for