[Puppet Users] Classes and hiera

2015-04-13 Thread Alfredo De Luca
Hi all. It might be a simple question for you. In hiera I have the followings protest::logdir: '/tmp/' protest::logfile: fred protest::text: 'ok ok was here' and the class is class protest ( $logdir = $protest::params::logdir, $logfile= $protest::params::logfile, $text

[Puppet Users] PuppetDB Garbage Collection

2015-04-13 Thread octomeow
Noticing high CPUIO while doing garbage collection (every 14 days) Is there a way to "nice" this? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+u

Re: [Puppet Users] Re: Sort by IP in ERB (related to puppetlabs-haproxy and MODULES-1919)

2015-04-13 Thread Tom Limoncelli
On Mon, Apr 13, 2015 at 11:10 AM, jcbollinger wrote: > You're already generating a compound search key (although it's not strictly > necessary for what you're doing so far); a reasonable solution would be a > compound sort key that captures the IP address (if any) as the first part, > and the rest

[Puppet Users] Changes coming to puppetlabs-apt

2015-04-13 Thread Morgan Haskel
We're releasing puppetlabs-apt 2.0.0 this week, which includes a nearly full rewrite of the module, and a bunch of breaking changes. The (almost fully) updated code is available at https://github.com/puppetlabs/puppetlabs-apt/tree/2.0.x, but there are still a couple of pending pull requests. Also,

[Puppet Users] I want to have a modulepath in an environment's environment.conf to search for forge modules separately from my own

2015-04-13 Thread Chris Cox
So... I have an environment called "dev" and before I had pulled in a module from puppet forge (e.g. stdlib) into "dev". All worked fine. Now I have created a different environment called "devforge" and moved the stdlib module into it. So... I thought I could then create a dev/environment.conf

Re: [Puppet Users] Re: Precedence Q: repos -> packages

2015-04-13 Thread Christopher Wood
That has been working fine for me for at least a year now, with the caveat that I also have these bits for when a yum repo changes: # if any yum repository changes, clean all yum cache File <| tag == 'yumrepo-file' |> ~> Exec[$yumcleaner] # clean the yum cache before any package installs Exec[$y

[Puppet Users] Re: Precedence Q: repos -> packages

2015-04-13 Thread Guy Matz
Anything? Appreciated! Guy On Wed, Apr 8, 2015 at 5:58 PM, Guy Matz wrote: > Hi! I first used this sort of thing: > stage { 'yum' : before => Stage['main'] } > > and tagged ll of my yumrepos with a stage of yum. This doesn't work so > well for downloaded modules, so I'm thinking of using: > Y

[Puppet Users] Re: Still use inherits for params?

2015-04-13 Thread Dan Gibbons
Ok thanks for the answers! Dan On Monday, April 13, 2015 at 11:34:15 AM UTC+1, Dan Gibbons wrote: > > Hi, > > I'm looking at some of our puppet code and trying to keep it clean whilst > looking at the puppet 4 deprecation list. > > One question I have is regarding inherits; the docs say that no

[Puppet Users] Re: puppet certificate generate fails for mcollective client

2015-04-13 Thread Jon McKenzie
I had this issue as well. To get around it you can pass an extra option: --certname This way it won't try to use your current host's FQDN as the certname (which will fail if it's already registered with the CA) So, e.g. puppet certificate generate treydock --certname treydock On Tuesday,

[Puppet Users] Re: Any hints on how to get past "Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain

2015-04-13 Thread gbif . webm
Sorry, forgot to mention that I have of course rm-ed -rf ssl/* on both the agent and master with puppet stopped and then followed the procedure to rebuild the keys. In fact this is how it all started: I deleted the master's key by mistake so I had to follow the procedure to rebuild the CA on th

[Puppet Users] Any hints on how to get past "Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate chain"?

2015-04-13 Thread gbif . webm
Hello everyone, Centos 7.1, puppet 3.6.2. The agent can't request a certificate signing because the SSL connection to the master doesn't work "Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [self signed certificate in certificate cha

Re: [Puppet Users] Re: Sort by IP in ERB (related to puppetlabs-haproxy and MODULES-1919)

2015-04-13 Thread jcbollinger
On Monday, April 13, 2015 at 10:10:52 AM UTC-5, jcbollinger wrote: > The sort key is then formed as a two-element array: the first element is > -1 if no address is given, else the 4-byte integer IP address, and the > second element is the string tail. > Note that the important thing for consi

Re: [Puppet Users] Re: Sort by IP in ERB (related to puppetlabs-haproxy and MODULES-1919)

2015-04-13 Thread jcbollinger
On Friday, April 10, 2015 at 1:50:31 PM UTC-5, Tom Limoncelli wrote: > > On Wed, Apr 8, 2015 at 9:21 AM, jcbollinger > wrote: > > Are you saying that all the tests pass on Ruby 1.9, but some fail on > Ruby > > 1.8.7? > > > > I'm not sufficiently familiar with the module to quite understand

[Puppet Users] Re: Still use inherits for params?

2015-04-13 Thread jcbollinger
On Monday, April 13, 2015 at 5:34:15 AM UTC-5, Dan Gibbons wrote: > > Hi, > > I'm looking at some of our puppet code and trying to keep it clean whilst > looking at the puppet 4 deprecation list. > > One question I have is regarding inherits; the docs say that node > inheritance is going which

Re: [Puppet Users] Puppet Reports

2015-04-13 Thread Christopher Wood
On Mon, Apr 13, 2015 at 04:09:18AM -0700, hoize wrote: >Instead of PuppetDB there I have installed MySQL. Yes, of course I can "Instead of PuppetDB" is usually the point in the conversation where try to let the enthusiastic person suggesting custom work down gently. What makes a custom MySQL

Re: [Puppet Users] file_line - 400 on SERVER: Invalid parameter match on File_line[lsinitgroup]

2015-04-13 Thread Tom Limoncelli
Private to you... I don't know why that wouldn't work. However, you might want to instead put "LS_GROUP=logstash" in the defaults file for that service. RedHat: /etc/sysconfig/elasticsearch Debian: /etc/default/elasticsearch If you look, the init.d file sources that file early enough that the va

[Puppet Users] Re: Still use inherits for params?

2015-04-13 Thread Philipp Dallig
Hi Dan, you can still use the keyword inherits for params.pp. It's the recommended way. Philipp Am Montag, 13. April 2015 12:34:15 UTC+2 schrieb Dan Gibbons: > > Hi, > > I'm looking at some of our puppet code and trying to keep it clean whilst > looking at the puppet 4 deprecation list. > > On

Re: [Puppet Users] Puppet Reports

2015-04-13 Thread hoize
Instead of PuppetDB there I have installed MySQL. Yes, of course I can grab the reports from MySQL, but I think it would be a better way to define nxlog in the puppet.conf, where you can choose if the logs should be for example stored in logfiles, foreman, and so on. Does anybody know a way to

[Puppet Users] Still use inherits for params?

2015-04-13 Thread Dan Gibbons
Hi, I'm looking at some of our puppet code and trying to keep it clean whilst looking at the puppet 4 deprecation list. One question I have is regarding inherits; the docs say that node inheritance is going which we don't use anyway but we do use the params pattern a lot with inherit. I'm wo