Re: [Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-21 Thread Felix Frank
On 05/20/2014 07:16 PM, Brian Mathis wrote: This is a bug in validate_re(), even though there is a workaround. Arguably so. One could also argue, on the other hand, that regular expressions are matched by *strings* and nothing else. Sure, we've been spoiled by bash and perl which don't give

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-21 Thread Boyan Tabakov
On 20.5.2014, 17:05, jcbollinger wrote: On Tuesday, May 20, 2014 7:36:31 AM UTC-5, Henrik Lindberg wrote: This suggests a design that is somewhat inside-out, the idea is that what is *in* the environment defines what you want, not that you inside the environment make

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-21 Thread Ugo Bellavance
I have finally been able to get what I wanted. I open a issue ( https://github.com/axkibe/lsyncd/issues/275) on the github project website and the main developper of lsyncd gave me a few lines of code to put in my main config file to have any file in a given directory to be imported in

[Puppet Users] failed to submit 'replace facts' command for puppetmaster.domain.com to puppetDB

2014-05-21 Thread Kamjar Gerami
Hello, I have a separate 1. master running apache+passenger, 2. puppetDB on a separate server running postgresql 3. dashboard on a separate server. Total of 3 servers - Master, puppetdb. dashboard. This is the error message I get when I run puppet agent from any of the servers. ## I have

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-21 Thread Ken Barber
Catalogue size might be a factor, as templates get stored in the catalogue. On Wed, May 21, 2014 at 2:45 PM, Phil Fenstermacher phillip.fenstermac...@gmail.com wrote: I encountered this same issue yesterday, and unfortunately haven't found a fix either. The error seems to be happening

[Puppet Users] Re: Craig Dunn's Roles/Profiles/Components Conflicts

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 12:54:15 PM UTC-5, Jesse Cotton wrote: Understood. However without creating a custom fact, I am not aware of a way to say 'apache::keepalive = 1' only applies when a node has the profile 'profile::apache_phpfpm'. There is no good way to say that to Puppet. It

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 12:45:45 PM UTC-5, DjE wrote: I agree with you about this potential conflict, but it's a default RedHat configuration with rhsm, and it does not manage exactly the same thing. Puppet enable the rhel-6-server-optional-rpms which is not by enabled default, and we

Re: [Puppet Users] Problem using Vagrant + Puppet

2014-05-21 Thread Nikola Petrov
On Tue, May 20, 2014 at 07:06:20AM -0700, Rafaella Keury wrote: Hello, I'm using Vagrant and i'm trying to use Puppet as a tool for provisioning one of my virtual machines. I created a folder named 'manifests' in the same directory of my VagrantFile. Inside the 'manifests' folder I created

[Puppet Users] Re: Craig Dunn's Roles/Profiles/Components Conflicts

2014-05-21 Thread Jesse Cotton
But that's just it: you don't *want* to assign data based (strictly) on profile. Or if you do, then understand that it is inherently inconsistent with composable profiles. Since the node characteristic that determines the combination of profiles in use is its role, it is on that basis

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 4:24:01 PM UTC-5, Johan De Wit wrote: the yumrepo resource creates a *.repo file for every resource. Yes, if the repo definition does not already exist. If it does exist then Puppet manages it in whatever file contains it. Or it should do, and used to do. I

[Puppet Users] could not retrieve information from environment development source(s) file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh

2014-05-21 Thread Supriya Uppalapati
Hi, I am having an error could not retrieve information development source *file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* Please help me I have a code in */etc/puppetlabs/puppet/modules/java_versions/manifests/init.pp* *class java_versions {#

[Puppet Users] Re: could not retrieve information from environment development source(s) file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh

2014-05-21 Thread Supriya Uppalapati
On Wednesday, May 21, 2014 11:05:25 AM UTC-4, Supriya Uppalapati wrote: Hi, I am having an error could not retrieve information development source *file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* Please help me I have a code in

[Puppet Users] puppet dashboard Pending statistics always 0

2014-05-21 Thread Rudy Gevaert
Hi, I've set up puppet dashboard and my puppet master 3.6.0 is sending its reports. However, when i run an agent in noop mode, the Pending column on the dashboard for that node remains 0. While it should not be 0. The nodes pending stats on the left side are always 0 too. Any ideas how

[Puppet Users] First time using template... Is this correct?

2014-05-21 Thread Keith Shannon
Hello everyone and thank you for taking the time to ready this. I have been creating my first puppet module for a chatserver we run. The chatserver is basically just a perl script its' not too hard to setup. Our previous setup was with CFEngine so I'm porting everything over. Setting the

[Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread Andre Nathan
Hello I have a fairly large repository (~100 modules, ~50 classes, ~200 nodes). It is currently organized like this: modules/ apache2/ manifests/ files/ templates/ iptables/ manifests/ files/ templates/ postfix/ manifests/ files/

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread Garrett Honeycutt
On 5/21/14, 11:45 AM, Andre Nathan wrote: Hello I have a fairly large repository (~100 modules, ~50 classes, ~200 nodes). It is currently organized like this: modules/ apache2/ manifests/ files/ templates/ iptables/ manifests/ files/

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-21 Thread Ken Barber
So one thing I'm sure about - is that there was no idle timeout defined in 1.6.3 at all. I can connect idle for quite some time for example. Its quite possible that there is another delay/lag somewhere causing the connection to be idle in the first place - but with 1.6.3 this would not have

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread Andre Nathan
On Wednesday, May 21, 2014 1:14:31 PM UTC-3, Garrett Honeycutt wrote: I believe you mean the deprecation of 'import'. Woops, indeed. The easiest way to fix this is to cat all of your files together into one site.pp file. Now that's even worse than having all node files in a single

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread Doug Forster
It may be worth it to look more at hiera and adjust your codebase there. For example my site.pp has one line: hiera_include('classes'). I organize my setup so that hiera looks for my nodes under hieradata/nodes/certname.yaml I see no reason not to allow further nesting if needed. That being said

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread Andre Nathan
On Wednesday, May 21, 2014 1:59:09 PM UTC-3, Doug_F wrote: I organize my setup so that hiera looks for my nodes under hieradata/nodes/certname.yaml I see no reason not to allow further nesting if needed. It may be the only solution for me, but I'd rather not use YAML files as the risk of

Re: [Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-21 Thread Brian Mathis
On Wed, May 21, 2014 at 4:29 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 05/20/2014 07:16 PM, Brian Mathis wrote: This is a bug in validate_re(), even though there is a workaround. Arguably so. One could also argue, on the other hand, that regular expressions are matched by

[Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Danny Roberts
I currently have a custom module that applies our companies' standard server config across all servers using Hiera. This includes a class called company::sshkeys that has various 'user' resource types (the standard puppet type) defined for all of our admins, for example: class company::sshkeys

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-21 Thread Ken Barber
Phil, Do you happen to have a tcpdump I can look at, one where this problem is replicated? I know its SSL - but I'm primarily interested in seeing when (and _IF_) the network connection goes idle - so packet timing is more important to me then content. I'm trying to prove/disprove that

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Doug Forster
Try getting your user list from hiera. Then it will easily be overridden on a server basis. class company::sshkeys ( users, ) { users.each |$my_user| { user { $my_user: ensure = present, gid = company, home= /home/${my_user}, managehome = true, shell

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Danny Roberts
For some reason my Puppet install doesn't like that: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'users'; expected ')' at /etc/puppet/modules/company/manifests/sshkeys.pp:1 on node puppetmaster Warning: Not using cache on failed catalog Error:

Re: [Puppet Users] Re: validate_re() does not correctly match numbers in some cases

2014-05-21 Thread Robin Bowes
I thought hiera always returns strings? ie. $myvar = hiera('testvalue') should return a string, and validate_re( $myvar, '[0-9]+' ) should work just fine? Regardless, this is inconsistent: OK: $var = 1000 validate_re( $var, '[0-9+]' ) FAIL: $var2 = 2000 + 1

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread Doug Forster
My apology the .each functionality is only available if parser=future. http://docs.puppetlabs.com/puppet/latest/reference/experiments_future.html On Wed, May 21, 2014 at 12:58 PM, Danny Roberts dannyroberts.perso...@googlemail.com wrote: For some reason my Puppet install doesn't like that:

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-21 Thread Ken Barber
Phil and I have been conversing offline ... we found that downgrading the terminus to 1.6.3 (not PuppetDB) fixes the issue. So far we can see that a submission occurs but the server does not respond. This is synonymous with a bad Content-Length, and certainly I'm able to replicate this with some

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 1:58:22 PM UTC-5, Danny Roberts wrote: For some reason my Puppet install doesn't like that: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'users'; expected ')' at /etc/puppet/modules/company/manifests/sshkeys.pp:1 on

[Puppet Users] using storeconfigs and exported resources

2014-05-21 Thread Ritesh Nanda
Hello , I am designing a multi-node deployment env with Puppet. Scenario i have is once one machine is created it will have its hostname allocated dynamically , that hostname has to be used by another machine when it runs it manifest on it . I can get that fqdn of that machine save it in

[Puppet Users] Re: On code organization and the deprecation of include

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 10:45:03 AM UTC-5, Andre Nathan wrote: what can I do about the nodes? The new feature of setting the manifest to a directory does not support subdirectories. Will I be forced to have all my nodes in the same directory and then rely on file names for

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 11:44:43 AM UTC-5, Andre Nathan wrote: On Wednesday, May 21, 2014 1:14:31 PM UTC-3, Garrett Honeycutt wrote: Your usage of a base node that other nodes inherit is an anti-pattern though and will cause you grief as you grow. Why is it an anti-pattern? Isn't

Re: [Puppet Users] puppetdb 2 : Idle timeout expired: 30000/30000 ms

2014-05-21 Thread Sergey Arlashin
Yesterday I downgraded both puppet to 3.5.1 and pupetdb to 1.6.3, and the problem disappeared. Unfortunately this is production infrastructure and I don't have an ability to test it further :( On May 21, 2014, at 11:54 PM, Ken Barber k...@puppetlabs.com wrote: Phil and I have been