Re: [Puppet Users] Puppetdb source install on Solaris. Agents complain about "invalid encoding ("UTF-8//IGNORE", "UTF-8")"

2012-11-29 Thread Ryan Cunningham
Deepak, Thanks for your insight into the error. It looks like the iconv library in the version of Ruby provided by the OpenIndiana repo may be too old, lack a required method or have an incompatible version of the method being used to transform the contents of the catalog. root@atropos:~# rub

[Puppet Users] Using puppet to change passwords on nix systems

2012-11-29 Thread illectronic
Hi, I am new to this and I discovered a manifest in an old post that should change passwords. It runs fine, but the password does not change. I am wondering how this would work since it would need to change the shadow. Thanks define change_passwd($user,$passwd) { exec { "/usr/bin/puppet ap

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
Apparently a template adds return on the end of the return string. Guessing this is to support the template concatenation for file content. Switched to inline_template and all works well. Lesson learned. Appreciate your comments on this John. It's nice to have second pair of eyes. On Thur

[Puppet Users] [Hiera]: How to solve a yaml files getting large issue?

2012-11-29 Thread Vaidas Jablonskis
Hi People, I use Puppet 3.0 with Hiera using Yaml backend. Everything works great. I am getting to a point where my yaml files a becoming really large, for instance '%{environment}/roles/myapp.yaml' is pretty huge, over a hundred of lines. So it's getting tricky to manage huge files. It contain

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
On Thursday, November 29, 2012 5:17:43 PM UTC-5, jcbollinger wrote: > Alternatively, if your approach is going to be to fiddle with the 'source' > parameter then you might consider how to avoid subclassing at all. > Agreed. This is what I am focusing on. But have hit a snag I don't know how t

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread jcbollinger
On Thursday, November 29, 2012 10:18:48 AM UTC-6, Schofield wrote: > > Looking at this now actually. the source and sourceselect attributes of > File are probably what I want. However the source attribute is order > dependent when determining which file gets applied. Would you know if the

Re: [Puppet Users] Hiera and 3.0 Confused..

2012-11-29 Thread Matthaus Owens
Hiera is a dependency of Puppet 3 in all of its packaged forms. Hiera-puppet (the puppet backend for hiera), is included in Puppet for 3.0, but is available as a separate package for Puppet 2.7.x. As Josh and John mentioned, Hiera is required for Puppet 3.0 on the master, and is also needed on any

[Puppet Users] Puppet CA corruption

2012-11-29 Thread shoerner
Hello everyone, Just getting my first puppet master set up and I am having a problem that I just do not know how to get past. For some reason, my certificate store keeps getting corrupted. Basically what happens is that the server will issue itself a valid certificate (after removing the 'bad'

Re: [Puppet Users] Hiera and 3.0 Confused..

2012-11-29 Thread Josh Cooper
On Thu, Nov 29, 2012 at 11:36 AM, j a wrote: > I am confused, it was my understanding that hiera is necessary on all of the > agent nodes with puppet 3.0 > However, after reading the docs, they seem to indicate this is not the > case... > > Would someone kindly verify this requirement for me? > >

[Puppet Users] Re: Hiera and 3.0 Confused..

2012-11-29 Thread jcbollinger
On Thursday, November 29, 2012 1:36:01 PM UTC-6, waycoolme wrote: > > I am confused, it was my understanding that hiera is necessary on all of > the agent nodes with puppet 3.0 > However, after reading the docs, they seem to indicate this is not the > case... > > Would someone kindly verify t

Re: [Puppet Users] How does facter get ipaddress?

2012-11-29 Thread Peter Bukowinski
On Nov 29, 2012, at 3:16 PM, Bret Wortman wrote: > I think the problem I'm having with not being able to run puppet for up to 90 > minutes after a reboot is related to this error, which goes away some time in > that time period: > > # puppet agent -t > Info: Retrieving plugin > Timed out seekin

[Puppet Users] How does facter get ipaddress?

2012-11-29 Thread Bret Wortman
I think the problem I'm having with not being able to run puppet for up to 90 minutes after a reboot is related to this error, which goes away some time in that time period: # puppet agent -t Info: Retrieving plugin Timed out seeking value for ipaddress Timed out seeking value for ipaddress Wha

[Puppet Users] Hiera and 3.0 Confused..

2012-11-29 Thread j a
I am confused, it was my understanding that hiera is necessary on all of the agent nodes with puppet 3.0 However, after reading the docs, they seem to indicate this is not the case... Would someone kindly verify this requirement for me? My understanding is now that we do NOT need to install hiera

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:44 PM, GordonJB wrote: > storeconfigs is not enabled on the master. > > Just realised I probably should have mentioned versions, I'm on master & > nodes 3.0.1 and dashboard is 1.2.12. Hmm, OK then. Just so as the "let's not assume anything" base is covered; Can you con

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Ramin K
On 11/29/2012 8:44 AM, GordonJB wrote: storeconfigs is not enabled on the master. Just realised I probably should have mentioned versions, I'm on master & nodes 3.0.1 and dashboard is 1.2.12. I'm betting that most of your servers are checking in at the same time. Half of the clients make it

Re: [Puppet Users] 1.8.7 => 1.9.3 migration, compilation times raised twice!?

2012-11-29 Thread asq
W dniu czwartek, 29 listopada 2012 18:23:23 UTC+1 użytkownik Jeff McCune napisał: > > It might not be the cause, but one related change we made in Puppet 3 is > that we scan Ruby gem's and will load extensions contained within them. > This is #7788 [1] This change in behavior could be causing

Re: [Puppet Users] Removing nodes from puppetdb

2012-11-29 Thread Deepak Giridharagopal
On Thu, Nov 29, 2012 at 11:10 AM, Jeremy Custenborder < jcustenbor...@gmail.com> wrote: > Hello all, > > I'm using version 3.0.1 with puppetdb and so far it's been great. Good job > on reducing catalog compile times. The only problem I'm running into > is decommissioning a node. Before I would ju

[Puppet Users] Re: Thu Nov 29 10:17:51 +0000 2012 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for XXX to PuppetDB at pupp

2012-11-29 Thread Felipe Salum
I had the same setup issue. Go to your CA server and copy the puppet master unique certname .pem from /var/lib/puppet/ssl/{certs,private_key/ to both your puppet master workers and restart apache. Also make sure to follow this: http://docs.puppetlabs.com/guides/scaling_multiple_masters.html

[Puppet Users] Removing nodes from puppetdb

2012-11-29 Thread Jeremy Custenborder
Hello all, I'm using version 3.0.1 with puppetdb and so far it's been great. Good job on reducing catalog compile times. The only problem I'm running into is decommissioning a node. Before I would just run this : puppet node clean This would remove the node from store configs. I would then

Re: [Puppet Users] passenger used in puppet 3.0?

2012-11-29 Thread DJames
The setup can be starts off with a internal VIP created on an internal f5 (behind FW) set up pointing to Nginx then pointing to passenger then ---> puppet master... again i have a large scales og client/hosts this should work. On Thursday, November 29, 2012 3:31:46 AM UTC-5, Daniele Sluijt

Re: [Puppet Users] 1.8.7 => 1.9.3 migration, compilation times raised twice!?

2012-11-29 Thread Jeff McCune
On Thu, Nov 29, 2012 at 8:56 AM, asq wrote: > W dniu czwartek, 29 listopada 2012 17:42:48 UTC+1 użytkownik Jeff McCune > napisał: > >> On Thu, Nov 29, 2012 at 12:24 AM, asq wrote: >> > W dniu środa, 28 listopada 2012 22:57:40 UTC+1 użytkownik Michael >> Stanhke >> > napisał: >> >> >> >> What ve

Re: [Puppet Users] 1.8.7 => 1.9.3 migration, compilation times raised twice!?

2012-11-29 Thread asq
W dniu czwartek, 29 listopada 2012 17:42:48 UTC+1 użytkownik Jeff McCune napisał: > > On Thu, Nov 29, 2012 at 12:24 AM, asq > > wrote: > > W dniu środa, 28 listopada 2012 22:57:40 UTC+1 użytkownik Michael > Stanhke > > napisał: > >> > >> What version of Puppet are you on? Where did you get

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread GordonJB
storeconfigs is not enabled on the master. Just realised I probably should have mentioned versions, I'm on master & nodes 3.0.1 and dashboard is 1.2.12. On Thursday, 29 November 2012 16:37:56 UTC, Matthew Burgess wrote: > > On Thu, Nov 29, 2012 at 4:15 PM, GordonJB > > wrote: > > I believe I'v

Re: [Puppet Users] 1.8.7 => 1.9.3 migration, compilation times raised twice!?

2012-11-29 Thread Jeff McCune
On Thu, Nov 29, 2012 at 12:24 AM, asq wrote: > W dniu środa, 28 listopada 2012 22:57:40 UTC+1 użytkownik Michael Stanhke > napisał: >> >> What version of Puppet are you on? Where did you get your 1.9.3? > > 3.0.1 and 1.9.3p327 from rvm. Ouch, do you happen to have a large number of ruby Gem's in

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:15 PM, GordonJB wrote: > I believe I've set up Apache/Passenger correctly, yes. Running > passenger-status shows 12 processes running under the > /usr/share/puppet/rack/puppetmasterd domain. Would setting up cron jobs be > on top of this passenger configuration, or should

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread Schofield
John, thanks for the response. I added my comments inline. On Thursday, November 29, 2012 9:18:18 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, November 28, 2012 6:15:24 PM UTC-6, Schofield wrote: >> >> I have a managed directory defined in one class. I need the ability to >> update a subs

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread GordonJB
I believe I've set up Apache/Passenger correctly, yes. Running passenger-status shows 12 processes running under the /usr/share/puppet/rack/puppetmasterd domain. Would setting up cron jobs be on top of this passenger configuration, or should Apache/Passenger be enough? Thanks, Gordon On Thur

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 3:35 PM, GordonJB wrote: > Hi all, > > I'm currently getting a lot of update failures showing up with no logs in > the dashboard. This happens for about half of our 28 nodes, about once an > hour. When re-run half an hour later, everything seems fine. > > Through a combinat

RE: [Puppet Users] Is new puppet node compatible with old puppetmaster ?

2012-11-29 Thread Bernd Adamowicz
No. Never have a higher version of Puppet on your agents than on your master. Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of Balasubramaniam Natarajan Sent: Donnerstag, 29. November 2012 16:28 To: puppet-users@googlegroups.com Subject: [Puppet Users

[Puppet Users] Simultaneous Client updates

2012-11-29 Thread GordonJB
Hi all, I'm currently getting a lot of update failures showing up with no logs in the dashboard. This happens for about half of our 28 nodes, about once an hour. When re-run half an hour later, everything seems fine. Through a combination of server restarts and our Puppet master locking up ent

[Puppet Users] Is new puppet node compatible with old puppetmaster ?

2012-11-29 Thread Balasubramaniam Natarajan
Hi Could someone please let me know if newer puppet node version 2.7.xx would work with old puppet master running version 2.6 ? -- Regards, Balasubramaniam Natarajan www.blog.etutorshop.com -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To p

[Puppet Users] Environmets doesnt work on Puppet 2.7

2012-11-29 Thread Fran Rodríguez
Hi group, I got a problem with environments, im getting this erros from the client: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template ssh/retrieve_priv_key.erb: cannot find key directory: /etc/puppet/environments/production/modules/ssh/private_keys a

[Puppet Users] Thu Nov 29 10:17:51 +0000 2012 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for XXX to PuppetDB at puppetdb

2012-11-29 Thread Kalyana sundaram
I have set up two puppet masters (load balanced) with a separate ca server(ca is set false on masters). I brought up a new server for puppetDB. It got certs signed from ca_server and ran puppet agent without any issue. But when I started puppetdb and changed puppet master's conf to use puppetdb

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-29 Thread John Lamb
OS: Red Hat Enterprise Linux Server release 6.3 (Santiago) Ruby: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Puppet: puppet-3.0.1-1.el6.noarch I can get the facter output to you later today. For what it's worth, I ran into this problem as I was developing a class within an already-exis

[Puppet Users] Re: How to update a managed directory?

2012-11-29 Thread jcbollinger
On Wednesday, November 28, 2012 6:15:24 PM UTC-6, Schofield wrote: > > I have a managed directory defined in one class. I need the ability to > update a subset of files in the managed directory from a puppet define. I > would like to simply define a new file resource that is a directory and

[Puppet Users] Re: Could not find default node or by name with 'ip-10-195-207-236.ec2.internal, ip-10-195-207-236.ec2, ip-10-195-207-236' on node ip-10-195-207-236.ec2.internal

2012-11-29 Thread jcbollinger
On Wednesday, November 28, 2012 11:22:31 PM UTC-6, krishna bhaskara rao wrote: > > Hi, > > I am new to puppet. I have configured puppet master and agent. > > 1. Executed this "*puppetca --sign ip-10-194-18-145.ec2.internal*" > command in puppet master instance. It returns an output like > *

[Puppet Users] Re: How do you call a custom function from another module?

2012-11-29 Thread KomodoDave
I fixed the problem by prefixing the one-line definition of basename with a return. Should I infer Puppet doesn't support the standard Ruby mechanism of returning the last evaluated result within a function? I did have: module Puppet::Parser::Functions newfunction(:basename, :type => :rval

[Puppet Users] Re: How do you call a custom function from another module?

2012-11-29 Thread KomodoDave
Hmm.. actually there's still something amiss. Doing the include as described above changed the error from: Error 400 on SERVER: Unknown function utils::basename to: Error 400 on SERVER: Function 'basename' does not return a value ..which made me think it was now being found. I then fixed th

[Puppet Users] Re: How do you call a custom function from another module?

2012-11-29 Thread KomodoDave
Ah, I've got it: simply include the module then call the function unqualified: include utils # ... basename(args) David On Thursday, November 29, 2012 11:37:01 AM UTC, KomodoDave wrote: > > I have a utils module that contains common utilities. Most are defined > types. > > However, I've just

[Puppet Users] How do you call a custom function from another module?

2012-11-29 Thread KomodoDave
I have a utils module that contains common utilities. Most are defined types. However, I've just added the first custom function in utils/lib/puppet/parser/functions/basename.rb . It seems this cannot be referenced in the intuitive fashion from another module, namely: utils::basename(args)

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-11-29 Thread Fabrice Bacchella
Le 27 nov. 2012 à 19:44, Jeff McCune a écrit : > Fabrice mentioned that restarting the puppet master helped with this > issue. Could you please bounce the puppet master and see if that > helps resolve this issue? Restarting the puppet master was not enough. I need to restart it with your pat

Re: [Puppet Users] passenger used in puppet 3.0?

2012-11-29 Thread Daniele Sluijters
That depends. If you start Unicorn and make it listen to a Unix socket then no, you'll need something in front of it to accept the HTTP connections for you and then proxy that to the unicorn socket. You can also tell Unicorn to bind against an IP, in which case you won't need an nginx in front

Re: [Puppet Users] 1.8.7 => 1.9.3 migration, compilation times raised twice!?

2012-11-29 Thread asq
W dniu środa, 28 listopada 2012 22:57:40 UTC+1 użytkownik Michael Stanhke napisał: > > What version of Puppet are you on? Where did you get your 1.9.3? > 3.0.1 and 1.9.3p327 from rvm. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view