[Puppet Users] Re: MySQL settings for puppet dashboard

2012-06-13 Thread Kai
Nobody an idea? My actual solution is to send COMMIT; to the MySQL Server and then run puppet agent --test what leads to Background Tasks - All systems go. But that can't be The Solution. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] how to refresh ssh/authorized_keys file content ?

2012-06-13 Thread Felix Frank
Hi, On 06/12/2012 07:39 PM, eduardo wrote: Hi all, How to refresh ssh/authorized_keys file content ? I'm trying massive loading keys. I need refresh authorized_keys file content. I try delete file before call ssh_authorized_key : please don't. This is *not* how you are supposed to

Re: [Puppet Users] Re: puppetdb setup issue

2012-06-13 Thread Antidot SAS
Hi thx for the reply here are the info: -- nslookup puppetdb.fqdn Server: 10.10.200.29 Address: 10.10.200.29#53 puppetdb.fqdn canonical name = puppetmaster.fqdn Name: puppetmaster.fqdn Address: 10.10.200.17 -- keytool -list -keystore /etc/puppetdb/ssl/keystore.jks Enter keystore password:

[Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-13 Thread Jo Rhett
I managed to have a booboo tonight by restarting a process which really shouldn't be. What I ran into was that a mode change caused subscribe to fire and the process to restart. Is it just me, or should subscribe/notify only fire on content changes? Also given that replace only affects file

Re: [Puppet Users] Contributing pieces of a global value from multiple places

2012-06-13 Thread Michael Knox
Hi, I use an augeas resource that manages the FW_CONFIGURATIONS_$zone entry in etc/sysconfig/SuSEfirewall2. augeas {fwservice_${svc}-$zone: context = /files/etc/sysconfig/SuSEfirewall2, onlyif= match FW_CONFIGURATIONS_$zone/value[.='$svc'] size == 0, changes = [

Re: [Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-13 Thread R.I.Pienaar
- Original Message - From: Jo Rhett jrh...@netconsonance.com To: puppet-users@googlegroups.com Sent: Wednesday, June 13, 2012 9:33:35 AM Subject: [Puppet Users] can we avoid notify/subscribe firing on a mode change? I managed to have a booboo tonight by restarting a process which

Re: [Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-13 Thread Jo Rhett
On Jun 13, 2012, at 1:50 AM, R.I.Pienaar wrote: I can think of a few, but really any case where a files mode out of the box from say RPM prevent some other service from functioning because it relies on this file. File mode change - dependant service restart. Lots of daemons ship files like

Re: [Puppet Users] Re: puppetdb setup issue

2012-06-13 Thread Antidot SAS
OK, I have manged to have the same signature (Apparently using --config doesn't help for generating certificats :D) So now is the deal: # keytool -list -keystore /etc/puppetdb/ssl/keystore.jks Enter keystore password: Keystore type: JKS Keystore provider: SUN Your keystore contains 1 entry

Re: [Puppet Users] Re: puppetdb setup issue

2012-06-13 Thread Antidot SAS
HI everyone, Finally got it, once the certificats were recreated forgot to restart puppetdb... Sorry. Thx for the tips :D On Wed, Jun 13, 2012 at 12:31 PM, Antidot SAS antidot...@gmail.com wrote: OK, I have manged to have the same signature (Apparently using --config doesn't help for

Re: [Puppet Users] Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key.

2012-06-13 Thread Felix Frank
Hi, On 06/12/2012 08:53 PM, Scott Merrill wrote: I built a test client, and from the top-level Puppet Master I ran `puppet cert generate test.domain`. I installed the generated files onto the test machine. However, this test client is unable to connect to any of the subordinate Masters. I

[Puppet Users] Re: puppetdb: UTF-8 byte sequence

2012-06-13 Thread jcbollinger
On Wednesday, June 13, 2012 5:51:22 AM UTC-5, A_SAAS wrote: Me again regarding puppetdb, I have the following warning message: Jun 13 12:49:15 puppetmaster puppet-master[28444]: Ignoring invalid UTF-8 byte sequences in data to be sent to PuppetDB Do I have to worry? I don't know any

Re: [Puppet Users] Re: Best way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-13 Thread jcbollinger
On Tuesday, June 12, 2012 5:51:06 PM UTC-5, Wolf Noble wrote: Hi John, Thanks a bunch. This seems incredibly sensible. If I'm understanding your suggestion properly, I interpret the best thing to do as something like: mymodule::repos { $region_repos = hiera('region_repos' , '' )

[Puppet Users] Re: How should I run/start puppetmaster using Apache/Passenger??

2012-06-13 Thread Sans
It's working now; the problem was definitely with the port setting. Thanks to all of you for your help. cheers, San -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit

[Puppet Users] Re: members of collected resources

2012-06-13 Thread jcbollinger
On Tuesday, June 12, 2012 4:57:13 PM UTC-5, Adam Heinz wrote: Is it possible to get the value of a member variable on a collected resource? Something like Host | name == 'nagios' | $nagiosip = Host[nagios]::ip Gepetto has red lined all of my guesses so far. Generally

Re: [Puppet Users] Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key.

2012-06-13 Thread Scott Merrill
On Wed, Jun 13, 2012 at 7:26 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 06/12/2012 08:53 PM, Scott Merrill wrote: I built a test client, and from the top-level Puppet Master I ran `puppet cert generate test.domain`.  I installed the generated files onto the test machine.

[Puppet Users] HTTP 400 errors when using storeconfigs

2012-06-13 Thread Matthew Burgess
As mentioned in my previous thread at http://groups.google.com/group/puppet-users/browse_thread/thread/d491889c89c1a0e0/2ba280696d1ecf96?lnk=gstq=matthew+burgess#2ba280696d1ecf96, I'm seeing intermittent errors on my nodes of the form: Wed May 30 18:02:24 +0100 2012 Puppet (err): undefined method

[Puppet Users] Re: HTTP 400 errors when using storeconfigs

2012-06-13 Thread Matthew Burgess
On Wed, Jun 13, 2012 at 2:53 PM, Matthew Burgess matthew.2.burg...@googlemail.com wrote: As soon as I set storeconfigs to false, and restart httpd (puppet is being served behind mod_passenger), a puppet-load run with 100 concurrent clients works with 100% success. Sorry, this should read 20

Re: [Puppet Users] Re: HTTP 400 errors when using storeconfigs

2012-06-13 Thread Jared Ballou
I ran into this issue when Active(Record|Model|Support) had a version higher than 3.0.11. I'm running RHEL6 x64 with Ruby 1.8.7 from RPM and MySQL gem 2.8.1 built from source, if that rings true for you. Which versions of the installed gems do you have? And if you run the puppet master as puppet

Re: [Puppet Users] Hiera - can't convert Array into String error

2012-06-13 Thread Wolf Noble
I had some issues with using boolean logic with data being fed to me by hiera. I went for a slightly hacky option of: might help you, might be a BadIdea(™) (untested) class foo::params{ bool_to_be_tempname = hiera('some_TorF_key_as_a_string') case bool_to_be_tempname { [tT][rR][uU][eE]:

[Puppet Users] Re: Inheritance of classes in Ruby DSL

2012-06-13 Thread Ingo Fischer
I have the same question (see https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/inheritance$20ruby$20dsl/puppet-users/RtMbu8yFZCc/Zet8ackZgnYJ) and need this behavior for my project. Is inheritance possible at all with the Ruby DSL? If not, should we create an issue for that?

Re: [Puppet Users] Re: Best way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-13 Thread Wolf Noble
Awesome! I wonder about one other thing though, Is create_resources likely to balk if there are values in the hash that are irrelevant for the resource type being fed? ie: if I have a region_repos hash that has both yum values, and apt values… (assuming that a debian sibling to the yumrepo

Re: [Puppet Users] Re: HTTP 400 errors when using storeconfigs

2012-06-13 Thread Matthew Burgess
On Wed, Jun 13, 2012 at 3:58 PM, Jared Ballou jbal...@jballou.com wrote: I ran into this issue when Active(Record|Model|Support) had a version higher than 3.0.11. I'm running RHEL6 x64 with Ruby 1.8.7 from RPM and MySQL gem 2.8.1 built from source, if that rings true for you. Which versions of

RE: [Puppet Users] Re: HTTP 400 errors when using storeconfigs

2012-06-13 Thread Kinzel, David
On Wed, Jun 13, 2012 at 3:58 PM, Jared Ballou jbal...@jballou.com wrote: I ran into this issue when Active(Record|Model|Support) had a version higher than 3.0.11. I'm running RHEL6 x64 with Ruby 1.8.7 from RPM and MySQL gem 2.8.1 built from source, if that rings true for you. Which versions

Re: [Puppet Users] Re: HTTP 400 errors when using storeconfigs

2012-06-13 Thread Matthew Burgess
On Wed, Jun 13, 2012 at 4:54 PM, Kinzel, David david.kin...@encana.com wrote: Are you perhaps running into a max db connection issue (this should be recorded in logs). We set something like wait_timeout=60 in our mysql my.cnf to kill idle connections that don't seem to get properly reused.

Re: [Puppet Users] Re: members of collected resources

2012-06-13 Thread Adam Heinz
On Wed, Jun 13, 2012 at 9:37 AM, jcbollinger john.bollin...@stjude.orgwrote: I would recommend instead recording host 'nagios''s IP in a class variable or an external data file, and having other nodes retrieve it from there. Yeah, I put it in my ENC as a global variable. Not very elegant,

[Puppet Users] breaking up long lines

2012-06-13 Thread llow...@oreillyauto.com
Is there a line continuation character, such as space_newline or space\newline ? I thought I had found a reference to how you could do it, but I can't find it now. We are using 2.7.2 Thank you. -- You received this message because you are subscribed to the Google Groups Puppet Users group.

[Puppet Users] Having trouble adding a new node. Either get an empty catalog or Could not find class errors.

2012-06-13 Thread Dan Finn
I'm trying to add a new node and I'm having some issues. To simplify things, I'm currently just trying to get this node working with an existing role which has been in place for a while and I have tested to confirm it definitely is working on other nodes. This is what I get from the node when

[Puppet Users] Setting up puppetmaster

2012-06-13 Thread repoman
I am deploying a new puppetmaster. I have old puppet nodes running. The old master is completely gone. On puppet client, sudo puppet agent --server puppetmaster --waitforcert 60 --test --verbose But name or service not known, so I edited /etc/hosts, added *ip_address puppetmaster* to the

[Puppet Users] Re: Setting up puppetmaster

2012-06-13 Thread repoman
Okay. I can signed now.. sudo puppetca -s server1 Did this on master, and then ran the test command on agent... will throw sudo puppet agent --server puppetmaster --waitforcert 60 --test --verbose warning: peer certificate won't be verified in this SSL session info: Caching certificate for

[Puppet Users] Re: Having trouble adding a new node. Either get an empty catalog or Could not find class errors.

2012-06-13 Thread Dan Finn
I was able to fix this. There was something very wonky with the version of puppet that this server had installed. I installed a slightly newer (still way out of date) version and it's now working fine. On Wednesday, June 13, 2012 1:17:43 PM UTC-6, Dan Finn wrote: I'm trying to add a new

Re: [Puppet Users] PE install fail

2012-06-13 Thread Jeff McCune
It could be the localhost name isn't resolving as the PE installer expects it to. Could you please paste the /etc/hosts file from the instance you're installing on? Also, I'm happy to try and diagnose this directly, could you let me know the AMI ID you're using and what EC2 zone you're in? If

Re: [Puppet Users] Re: Setting up puppetmaster

2012-06-13 Thread James A. Peltier
- Original Message - | Okay. I can signed now.. | sudo puppetca -s server1 | Did this on master, and then ran the test command on agent... will | throw | | sudo puppet agent --server puppetmaster --waitforcert 60 --test | --verbose | | warning: peer certificate won't be verified in this

[Puppet Users] Re: Setting up puppetmaster

2012-06-13 Thread Nick Fagerlund
On Wednesday, June 13, 2012 1:26:17 PM UTC-7, repoman wrote: err: Could not retrieve catalog from remote server: hostname was not match with the server certificate Hey, repoman, This is a dns_alt_names problem. (Setting info:

[Puppet Users] Announce: Puppet 2.7.16 Available

2012-06-13 Thread Matthaus Litteken
Puppet 2.7.16 is a maintenance release for Puppet in the 2.7.x series. (Puppet 2.7.15 died in the thunderdome). The release notes below include notes from the 2.7.15 series, so you may see some changes repeated from previous emails. Downloads are available at: * Source

[Puppet Users] Re: puppetdb: UTF-8 byte sequence

2012-06-13 Thread Chris Price
Because the serialization format (JSON) and the database both require UTF-8 character encoding for their data, puppetdb needs to encode strings before it sends them from the puppet master to the puppetdb server. Due to limitations in Puppet's representation of strings (character encoding is

[Puppet Users] Define - Class dependencies not respected

2012-06-13 Thread Bruno Léon
Hello, I'm encountering an issue which I think is a bug, but I want to propose it here before filing it for good @puppetlabs, and be sure it's not just a misunderstanding. Actually, I often use a construction where a main class would include some small others that build a complete service

[Puppet Users] Announce: Puppet Dashboard 1.2.9 Available

2012-06-13 Thread Moses Mendoza
This is a maintenance and security release of Puppet Dashboard. It includes contributions from Erik Dalén, Matthaus Litteken, and Aaron Patterson. Security content includes a patch to address CVE-2012-2695, SQL Injection Vulnerability in Ruby on Rails. This release is available for download at:

Re: [Puppet Users] Re: Apache mod_cache/mod_disk_cache...?

2012-06-13 Thread Jeff McCune
On Wed, Jun 13, 2012 at 10:29 AM, Matt W m...@nextdoor.com wrote: Any thoughts on this problem? With caching enabled, we could make the response-times and CPU-time for requesting files significantly faster. We'd even be able to cache the puppet manifests for short periods when clients request

[Puppet Users] Announce: Facter 1.6.10

2012-06-13 Thread Moses Mendoza
Facter 1.6.10 is a maintenance release candidate in the 1.6.x branch with bug fixes. It includes contributions from Hailee Kenney, Josh Cooper, Jeff Weiss, Stefan Shulte, and Moses Mendoza. This release is available for download at: https://downloads.puppetlabs.com/facter/facter-1.6.10.tar.gz

[Puppet Users] Re: Setting up puppetmaster

2012-06-13 Thread repoman
Hi Nick and James, You want me to do that on Master? I just did. I can't do that on the client. Master: $ puppet master --configprint certname master (I am using alias name from now on... you see it is not puppetmaster) $ puppet cert clean master notice: Revoked certificate with serial 2

Re: [Puppet Users] Hiera - can't convert Array into String error

2012-06-13 Thread Michael Knox
Thanks, It appears to be something internal to the hiera function, so I'll have to go digging in there to find out what's going on. Cheers On 14/06/2012, at 1:06 AM, Wolf Noble wrote: I had some issues with using boolean logic with data being fed to me by hiera. I went for a slightly hacky