Re: [Puppet Users] Re: Correct way to handle node-specific variable values in puppet 2.7

2012-06-20 Thread Felix Frank
Hi, On 06/19/2012 10:24 PM, Jon Schewe wrote: Node scope is staying a thing, because it has to for the time being. - It's unfortunately anonymous, so there's no way to address it directly. You have to use the variable's short name to get there. - But you can most assuredly

Re: [Puppet Users] facter plugin requires cause catalog failure, prevent setting up new clients

2012-06-20 Thread Felix Frank
On 06/20/2012 01:34 AM, Jo Rhett wrote: by bootstrap i mean kickstart or whatever, ie. before you run puppet. I should have some other system that configures my system before I run the software to configure my system? ;-) Humm, I believe it's fair to assume that most people have some way

Re: [Puppet Users] facter plugin requires cause catalog failure, prevent setting up new clients

2012-06-20 Thread R.I.Pienaar
- Original Message - From: Felix Frank felix.fr...@alumni.tu-berlin.de To: puppet-users@googlegroups.com Sent: Wednesday, June 20, 2012 9:03:48 AM Subject: Re: [Puppet Users] facter plugin requires cause catalog failure, prevent setting up new clients On 06/20/2012 01:34 AM, Jo

Re: [Puppet Users] Augeas resources not being saved

2012-06-20 Thread Dominic Cleal
On 19/06/12 22:02, Guy Knights wrote: I can now confirm that Dominic was correct. I'm upgraded to puppet 2.7.16 now and the augeas resources are working. One thing I can also confirm is that Alan's observation about the context not working and to use the full path in the set command was also

[Puppet Users] mathematical operation

2012-06-20 Thread Antidot SAS
HI everyone, I am trying to use the ruby modulo function but without any success, here is the template: -- $tt=regsubst($::hostname,'.*front(\d+).*','\1') notice($tt) notice(inline_template(% tt.to_i.modulo(60) %)) -- Here is the result: notice: Scope(Class[main]): 04 notice:

[Puppet Users] Puppet 2.7.16 errors on OS X

2012-06-20 Thread r.yeo
Updated to puppet 2.7.16 and Facter 1.6.10 and I am seeing errors on all my 10.6 and 10.7 machines - err: Could not create resources for managing Puppet's files and directories in sections [:main, :agent, :ssl]: undefined method `strip' for #StringIO:0x1022ab1a8 info: Retrieving plugin err:

Re: [Puppet Users] mathematical operation

2012-06-20 Thread Hendrik Jäger
Hi, - notice(inline_template(% tt.to_i.modulo(60) %)) + notice(inline_template(%= tt.to_i.modulo(60) %)) Best regards henk signature.asc Description: PGP signature

Re: [Puppet Users] Re: Reducing system load

2012-06-20 Thread Pablo Fernandez
Hi, I really think the original question is very good: why do you need to compile all manifests again and again when there is no change on the sources (files/ENC/whatever input)? Tricks like the proposed ones are clearly not the solution, and even if the language is not prepared for that

Re: [Puppet Users] Re: Reducing system load

2012-06-20 Thread Walter Heck
But the way I'm reading this, the question of the OP is to reduce cpu load on the agents, not the master. Puppet is currently unable to see wether or not something changed on the machine since last run without actually checking. I guess there's a bunch of indications that you could use depending

Re: [Puppet Users] mathematical operation

2012-06-20 Thread Antidot SAS
Thx, it helps :D On Wed, Jun 20, 2012 at 11:24 AM, Hendrik Jäger puppet-us...@henk.geekmail.org wrote: Hi, - notice(inline_template(% tt.to_i.modulo(60) %)) + notice(inline_template(%= tt.to_i.modulo(60) %)) Best regards henk -- You received this message because you are subscribed

[Puppet Users] Could not run Puppet configuration client: execution expired

2012-06-20 Thread Kmbu
Hello, I'm running Puppet 2.7.6 and currently expanding the number of servers managed by Puppet. At around the 160-170 host mark (with a 5-minute run interval + splay), my puppetmaster server is starting to die. Is this normal? What I'm getting in the agent logs is the following: Wed Jun 20

[Puppet Users] Re: Puppet Versioning

2012-06-20 Thread MrTeleBird
Thanks a lot John! yes you got my point. I think I will better implement version control of my manifests, as you suggest. This will help for sure, but what I was wondering, was to revert node configurations. cheers On Tuesday, June 19, 2012 6:59:58 PM UTC+2, jcbollinger wrote: On

Re: [Puppet Users] Reducing system load

2012-06-20 Thread Brice Figureau
On Tue, 2012-06-19 at 03:23 -0700, Duncan wrote: Hi folks, I'm scratching my head with a problem with system load. When Puppet checks in every hour, runs through all our checks, then exits having confirmed that everything is indeed as expected, the vast majority of the time no changes are

[Puppet Users] Custom facts and hyphens

2012-06-20 Thread Steph Gosling
Hi all, Possibly related to http://projects.puppetlabs.com/issues/10146 but I wanted to get a second opinion. I have a custom fact that iteratse through the disks on a given EC2 node and creates facts for block devices based on their /dev/disk/by-path/ links. I had to come up with this as a

Re: [Puppet Users] Reducing system load

2012-06-20 Thread Mohit Chawla
Hello, On Wed, Jun 20, 2012 at 5:48 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: Now you need to have a way to map from manifest modification to a set of hosts where you need a puppet run (which might not be that trivial). One possible approach here

Re: [Puppet Users] Custom facts and hyphens

2012-06-20 Thread R.I.Pienaar
- Original Message - From: Steph Gosling st...@chuci.org To: puppet-users@googlegroups.com Sent: Wednesday, June 20, 2012 1:20:12 PM Subject: [Puppet Users] Custom facts and hyphens Hi all, Possibly related to http://projects.puppetlabs.com/issues/10146 but I wanted to get a

Re: [Puppet Users] Re: Correct way to handle node-specific variable values in puppet 2.7

2012-06-20 Thread jcbollinger
On Tuesday, June 19, 2012 4:07:56 PM UTC-5, Nick Fagerlund wrote: On Tuesday, June 19, 2012 7:19:20 AM UTC-7, jcbollinger wrote: Have I missed a change in plan for node variables, so that in Puppet 3 they remain accessible outside node declarations? Does that form of dynamic scoping

[Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-20 Thread jcbollinger
On Wednesday, June 20, 2012 5:35:39 AM UTC-5, Kmbu wrote: Hello, I'm running Puppet 2.7.6 and currently expanding the number of servers managed by Puppet. At around the 160-170 host mark (with a 5-minute run interval + splay), my puppetmaster server is starting to die. Is this normal?

[Puppet Users] Puppet's data encryption

2012-06-20 Thread coservit
Hello, could someone tell me how to know what encryption algorithm and what version is used by Puppet for data encryption ? I already know that Puppet supplies data encryption by SSL/TLS (https://groups.google.com/forum/?hl=enfromgroups#!topic/puppet-users/-LFLE_bj_NA). Thanks a lot! --

[Puppet Users] Puppet lock files on Opensuse 12.1

2012-06-20 Thread Bob
The puppet packages on Opensuse 12.1 are broken...well not broken exactly but slightly damaged. There is a problem report about it at https://bugzilla.novell.com/show_bug.cgi?id=714649 which says that puppet uses /var/lock/subsys which is unsupported on openSUSE. Now as far as I can see there

[Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-20 Thread Kmbu
Thanks for your support. Please find my responses below. On Wednesday, 20 June 2012 15:18:17 UTC+2, jcbollinger wrote: On Wednesday, June 20, 2012 5:35:39 AM UTC-5, Kmbu wrote: Hello, I'm running Puppet 2.7.6 and currently expanding the number of servers managed by Puppet. At around

Re: [Puppet Users] Send Reports to Puppet Dashboard

2012-06-20 Thread banjer
If your hosts do not appear to be reporting, and you're seeing some background tasks pending (top left in the puppet dashboard web gui), then you probably need to start the delayed_job tasks on your puppet dashboard server in order to process the reports. Run this: *env RAILS_ENV=production

Re: [Puppet Users] Augeas resources not being saved

2012-06-20 Thread Guy Knights
Oh ok, thanks Dominic. I'll give that a go. Regards, Guy On Wed, Jun 20, 2012 at 1:37 AM, Dominic Cleal dcl...@redhat.com wrote: On 19/06/12 22:02, Guy Knights wrote: I can now confirm that Dominic was correct. I'm upgraded to puppet 2.7.16 now and the augeas resources are working. One

[Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-20 Thread Jake - USPS
Check my reply in https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/USPS/puppet-users/q3bFvenGueI/hQExZ1X7pcwJ I'll add that we do loadbalance across multiple puppetmasters. At first we were using DNS round-robin to do it, and now use haproxy which a good article on

Re: [Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-20 Thread Felix Frank
On 06/20/2012 05:39 PM, Jake - USPS wrote: I'll add that we do loadbalance across multiple puppetmasters. At first we were using DNS round-robin to do it, and now use haproxy which a good article on utilizing was written up not too long ago http://blog.ronvalente.net/blog/2012/05/19/puppet/.

Re: [Puppet Users] Re: Could not run Puppet configuration client: execution expired

2012-06-20 Thread Jake - USPS
Sorry ... I didn't really follow that link in my setup ... just thought it would be a good reference as I don't have anything documented. Another good thing to note is that article uses NGINX. I'm cheating and am not FULLY redundant. We have a single CA PM that is not balanced against or

Re: [Puppet Users] facter plugin requires cause catalog failure, prevent setting up new clients

2012-06-20 Thread Jo Rhett
On Jun 20, 2012, at 1:03 AM, Felix Frank wrote: Humm, I believe it's fair to assume that most people have some way of puppet provisioning that will be able to take care of this configuration detail. Okay, I've worked at 4 different shops using puppet over the last 6 years (one is a non-profit

Re: [Puppet Users] Re: Reducing system load

2012-06-20 Thread Michael Baydoun
puppet kick from your master after you make a change -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to

[Puppet Users] Puppet Configuration - Running --configprint generates long list of values

2012-06-20 Thread Mike Reed
Hello all, I fairly new to puppet and google groups so I'll apologize in advance for not conforming to normal posting methods. I've recently installed puppetmaster on a fresh copy of Ubuntu 10.04LTS and after running: sudo puppet --configprint all, I get a long list of parameters and values

Re: [Puppet Users] Puppet Configuration - Running --configprint generates long list of values

2012-06-20 Thread Craig White
On Jun 20, 2012, at 12:38 PM, Mike Reed wrote: Hello all, I fairly new to puppet and google groups so I'll apologize in advance for not conforming to normal posting methods. I've recently installed puppetmaster on a fresh copy of Ubuntu 10.04LTS and after running: sudo puppet

[Puppet Users] Re: Puppet Configuration - Running --configprint generates long list of values

2012-06-20 Thread Nick Fagerlund
On Wednesday, June 20, 2012 12:38:58 PM UTC-7, Mike Reed wrote: My question is where do these parameters and values come from? I've taken a look at my puppet.conf file... Defaults! Even if you only SET a few settings in puppet.conf, all of the POSSIBLE settings still have values. These

[Puppet Users] Problem using subversion module

2012-06-20 Thread elliott
Hi guys, I'm trying to use the Subversion module here: https://github.com/duritong/puppet-subversion I have unzipped it to my modules folder but I am having problems calling the definitions from elsewhere in my manifests. I get the following error: err: Could not retrieve catalog from remote

Re: [Puppet Users] Conditional with variable from facter

2012-06-20 Thread Ashley Penney
The :: refer to scope, in this case it's saying variables at the very top scope of what puppet knows about. This is because you can have: $::operatingsystem $module::class::operatingsystem And it's not sure which one you mean. By adding the :: you're making sure it knows to check the fact and

[Puppet Users] How to iterate over an array? (with a counter)

2012-06-20 Thread James Patterson
Given an array, I'd like to iterate over it with a counter to produce something like this from a template: foo.0 = ARRAYVALUE0 foo.1 = ARRAYVALUE1 foo.2 = ARRAYVALUE2 (where ARRAYVALUEn is replaced by the value, and the foo.n is incremented for each value) The puppet templates support

Re: [Puppet Users] How to iterate over an array? (with a counter)

2012-06-20 Thread R.I.Pienaar
- Original Message - From: James Patterson jamespatter...@operamail.com To: puppet-users@googlegroups.com Sent: Wednesday, June 20, 2012 10:39:02 PM Subject: [Puppet Users] How to iterate over an array? (with a counter) Given an array, I'd like to iterate over it with a counter to

[Puppet Users] Problem dealing with multi role servers/manifests. resource already declared.

2012-06-20 Thread trey85stang
Hey All, Im running into a road block with a server that is going to to be multi role. Example: I want to run a nagios server and a repo server on one box. My nagios manifest has two services defined: class nagios::server { ... service { nagios: ensure = running, ... } service

Re: [Puppet Users] Puppet Configuration - Running --configprint generates long list of values

2012-06-20 Thread Mike Reed
Thank you for the reply Craig. That makes sense and points me in the right direction. Thanks again, Mike On Wednesday, June 20, 2012 1:06:09 PM UTC-7, Craig White wrote: On Jun 20, 2012, at 12:38 PM, Mike Reed wrote: Hello all, I fairly new to puppet and google groups so I'll

Re: [Puppet Users] Custom facts and hyphens

2012-06-20 Thread Jo Rhett
On Jun 20, 2012, at 3:02 PM, Nick Fagerlund wrote: What R.I. said. Hyphens in variable names and class names are a no-no, although they kinda work in some versions of Puppet. Use underscores instead. (Why are hyphens a problem? Well, partly because you can subtract variables in

[Puppet Users] Re: Puppet Configuration - Running --configprint generates long list of values

2012-06-20 Thread Mike Reed
Hey Nick, Thank you for the reply. I'll take a look at the defaults.rb file and see what I can make of it. The explanation regarding the core group settings is most helpful and makes perfect sense. Again, thanks for the informative links and the info. Cheers, Mike On Wednesday, June 20,

Re: [Puppet Users] Conditional with variable from facter

2012-06-20 Thread david.gar...@gmail.com
With in the class I used something like this to get the facts into my nagios templates: define host($ip = $::fqdn, $short_alias = $::fqdn, $hostgroup = $::product_info, $product_domain = $::product_domain) { case $product_info { /OneProduct/: { $nagios_cfgdir =

Re: [Puppet Users] Conditional with variable from facter

2012-06-20 Thread david.gar...@gmail.com
I also use some other stuff in my nagios.pp to get puppet facts into mcollective. file { /usr/lib/nagios/.mcollective/etc/facts.yaml: mode= 0644, owner = 104, group = 106, loglevel = debug, content = inline_template(%= scope.to_hash.reject { |k,v| k.to_s =~

Re: [Puppet Users] Re: Custom facts and hyphens

2012-06-20 Thread Steph Gosling
Hi, On Wed, 20 Jun 2012 15:02:43 -0700 (PDT) Nick Fagerlund nick.fagerl...@puppetlabs.com wrote: What R.I. said. Hyphens in variable names and class names are a no-no, although they kinda work in some versions of Puppet. Use underscores instead. (Why are hyphens a problem? Well, partly