Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Dirk Heinrichs
On Mon, Apr 22, 2013 at 08:58:31AM +0200, Dirk Heinrichs wrote: > C:\Program Files (x86)\Puppet Labs\Puppet\bin>facter path > C:\Program Files (x86)\Puppet Labs\Puppet\puppet\bin;C:\Program Files > (x86)\Puppet Labs\Puppet\facter\bin;C:\Program Files (x86)\Puppet > Labs\Puppet\hiera\bin;C:\Progr

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Paul Tötterman
> > Found it: The two occurrences of %SystemRoot% should really be %SYSTEMROOT%. Fixed it, works now. > Shouldn't environment variables be case-insensitive? What code is responsible for expanding those environment variables? Cheers, Paul -- You received this message because you are subscr

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Dirk Heinrichs
On Mon, Apr 22, 2013 at 12:45:35AM -0700, Paul Tötterman wrote: > Shouldn't environment variables be case-insensitive? What code is > responsible for expanding those environment variables? This is Windows, so I'd say: "It depends". I can do this: C:\Program Files (x86)\Puppet Labs\Puppet\bin>ec

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
Hi Felix, thank you for your ideas. I am not sure if I understand correctly but in my code there are two lines which creates all the groups and users: create_resources(group, $groups) create_resources(user, $accounts, { notify => Exec['clean_up_accounts'] }) Given your code wher

Re: [Puppet Users] Re: Best practice to always fully qualify classes with :: ?

2013-04-22 Thread Matthias Saou
On Fri, 19 Apr 2013 07:08:27 -0700 (PDT) jcbollinger wrote: > By the way, are those redactions in your sig? They look like a Space > Invader (http://en.wikipedia.org/wiki/Space_Invaders). :-) The answer is obvious to anyone using a fixed-width font ;-) Thanks for your reply. Your explanation

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
I have just realised - should it look like this ? create_resources(repair_user, $accounts, { notify => Exec['...'] }) ? On Monday, 22 April 2013 09:54:07 UTC+1, ForumUser wrote: > > Hi Felix, > > thank you for your ideas. I am not sure if I understand correctly but > in my code there are

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
I am trying to implement this idea but cannot find what is wrong. Given the following code (I would like to get all possible data from hiera files) : class accounts::users ( $accounts, $groups) { create_resources(group, $groups) create_resources('repair_user', $accounts) } define

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
Hi, On 04/22/2013 01:17 PM, ForumUser wrote: > What is wrong with it ? Very good approach! The last remaining problem is that your repair_user type has no parameters for ensure, home and shell. create_resources will want to pass those parameters. Just add them to your type and pass them on to t

Re: [Puppet Users] Re: Subscribe to a recursive file...

2013-04-22 Thread jcbollinger
On Friday, April 19, 2013 3:21:26 PM UTC-5, Dennis Miller wrote: > > This doesn't seem to work for me in THIS specific case: > > -editing the file directly under /var/named > > Adding a new file works fine, but editing an existing one doesn't trigger > the exec. I think the directory mtime does

Re: [Puppet Users] Fileserver on a client rather than a puppetmaster

2013-04-22 Thread jcbollinger
On Friday, April 19, 2013 12:06:53 PM UTC-5, Ken Coar wrote: > > On Friday, April 19, 2013 5:46:37 AM UTC-4, David Schmitt wrote: > >> >> Is there any reason to use a puppet as source? You can put that on an >> NFS share too and reference it by path. Or clone a git repo. >> > > Simplicity. K

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
On Monday, 22 April 2013 14:22:10 UTC+1, Felix.Frank wrote: > > Hi, > > On 04/22/2013 01:17 PM, ForumUser wrote: > > What is wrong with it ? > > Very good approach! > > The last remaining problem is that your repair_user type has no > parameters for ensure, home and shell. create_resources w

Re: [Puppet Users] Hiera Automatic Parameter Lookup Question

2013-04-22 Thread jcbollinger
On Friday, April 19, 2013 8:49:14 AM UTC-5, blalor wrote: > > On Apr 19, 2013, at 9:34 AM, jcbollinger > > wrote: > > Moreover, I wanted to point out that, contrary to Brian's implication, > automated class parameter binding is independent of whether parameters have > explicit default values.

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
On 04/22/2013 03:55 PM, ForumUser wrote: > However it creates account in the /etc/passwd but doesn't create users > home directory > despite the fact I have "managehome" set to 'true'. Any clue ? No, this shouldn't happen. There must be some sort of error. You may get lucky and find what's wrong

[Puppet Users] Passenger failing sporadically

2013-04-22 Thread Drew Blessing
We're having a very strange issue with Puppet running on Passenger. Every day or 2, our clients start receiving Passenger back traces. It's the generic "Ruby (Rack) application could not be started." My initial thought was that this is a resource/configuration problem. Maybe we're overrunnin

Re: [Puppet Users] PuppetDB / inventory service configuration problem

2013-04-22 Thread Ken Barber
Lets take a look at the following files on your puppetmaster: /etc/puppet/puppet.conf /etc/puppet/puppetdb.conf /etc/puppet/routes.yaml /etc/puppet/auth.conf On the dashboard: /usr/share/puppet-dashboard/config/settings.yml (at least thats the normal path for our package on RHEL 6) And on your

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
On Monday, 22 April 2013 15:04:02 UTC+1, Felix.Frank wrote: > > On 04/22/2013 03:55 PM, ForumUser wrote: > > However it creates account in the /etc/passwd but doesn't create users > > home directory > > despite the fact I have "managehome" set to 'true'. Any clue ? > > No, this shouldn't happ

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread Felix Frank
On 04/22/2013 04:45 PM, ForumUser wrote: > > > On Monday, 22 April 2013 15:04:02 UTC+1, Felix.Frank wrote: > > On 04/22/2013 03:55 PM, ForumUser wrote: > > However it creates account in the /etc/passwd but doesn't create > users > > home directory > > despite the fact I have

Re: [Puppet Users] Puppet defined types and defaults parameters

2013-04-22 Thread jcbollinger
On Sunday, April 21, 2013 1:37:40 AM UTC-5, Matthias Saou wrote: > > Hi, > > You shouldn't be trying with a variable. I'm not sure it's fair to say that. I am a bit surprised that the OP's code doesn't work, in fact. Now, I don't think it's a good idea to do it that way, but I suppose it'

[Puppet Users] Working with defined classes

2013-04-22 Thread Mark
We are trying to override a resource that was created with 'define' but we are receiving the following error: Only subclasses can override parameters at /etc/puppet/manifests/... define nrpe::command( $cmd, $cmdname=$name, $cwd=$nrpe::params::plugindir, $ensure='present' ) { case $ensu

[Puppet Users] Re: Help me with overriding define resource

2013-04-22 Thread jcbollinger
On Saturday, April 20, 2013 8:45:24 PM UTC-5, Smashed wrote: > > We are trying to override a resource that was created with 'define' but we > are receiving the following error: Only subclasses can override parameters > at /etc/puppet/manifests/... > > Here is a specific example: https://gist.

[Puppet Users] Re: Attributes in user resource causing an error (PE 2.8.1)

2013-04-22 Thread Matt Hargrave
as a hash ( attributes => { 'rlogin' => 'true'} , or attributes => { rlogin => 'true'} ) I get: Parameter attributes failed on User[test1]: Attributes value pairs must be separated by an = at /home/xxx/puppet/test.pp:9 if I replace the => with = I get: Could not parse for environment product

Re: [Puppet Users] How to pass puppet/hiera veriable to external script ? Do I need to ?

2013-04-22 Thread ForumUser
On Monday, 22 April 2013 15:48:57 UTC+1, Felix.Frank wrote: > > On 04/22/2013 04:45 PM, ForumUser wrote: > > > > > > On Monday, 22 April 2013 15:04:02 UTC+1, Felix.Frank wrote: > > > > On 04/22/2013 03:55 PM, ForumUser wrote: > > > However it creates account in the /etc/passwd but doe

Re: [Puppet Users] Re: Puppet 3.1, Hiera and a class parameter called "service"

2013-04-22 Thread ForumUser
Hello, I also perhaps faced the bug. I am trying to workaround it: common.yaml accounts::users::accounts: user_1: ensure: present home: /home/user_1 managehome: "true" shell: /bin/bash uid: 4018 gid: group1 $mh = str2bool ("$accounts::users::accounts::managehome") # <

[Puppet Users] Re: How to reference a class in site.pp without creating a module?

2013-04-22 Thread jcbollinger
On Sunday, April 21, 2013 8:18:36 AM UTC-5, max.bri...@gmail.com wrote: > > Hi, > > Trying to get some understanding on how code should be structured in > Puppet. I have a class oracle_java defined to deploy the Java virtual > machine on the agents (basically copy of > http://log.scalemotion.

[Puppet Users] Puppet catalog transfer often gets truncated (Could not intern from pson: error)

2013-04-22 Thread Jeff B
I've been hitting this issue for a long time. well over a year and I guess it's time to start pushing it to try to find the root cause. I've seen this reported several times in the past but I've never seen a resolution found for this exact problems. There are other root causes for pson errors

[Puppet Users] Running puppetmaster on different port

2013-04-22 Thread Antoine
Hello, I am looking to run puppetmaster on a port different then the default 8140. I easily see how I can configure nginx to support this on the master side but I can't find the option to tell the agent to connect to the master using a different port. I've been looking all over but can't seem

Re: [Puppet Users] Running puppetmaster on different port

2013-04-22 Thread David Schmitt
On 22.04.2013 18:02, Antoine wrote: Hello, I am looking to run puppetmaster on a port different then the default 8140. I easily see how I can configure nginx to support this on the master side but I can't find the option to tell the agent to connect to the master using a different port. I've be

Re: [Puppet Users] Running puppetmaster on different port

2013-04-22 Thread Antoine
Thank you very much. I will look into that ! Le lundi 22 avril 2013 18:03:35 UTC+2, David Schmitt a écrit : > > On 22.04.2013 18:02, Antoine wrote: > > Hello, > > > > I am looking to run puppetmaster on a port different then the default > 8140. > > > > I easily see how I can configure nginx

[Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module

2013-04-22 Thread Przemek
Hi, I'm rookie puppet user and I trying to establish simple Server-Client connection on configuration: Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by guide), Ruby 1.8.7

Re: [Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module

2013-04-22 Thread Keith Burdis
Is the time set correctly on these hosts? If not then I'd suggest synchronising them with an NTP time server like those at pool.NTP.org. - Keith On 22 Apr 2013 17:54, "Przemek" wrote: > Hi, > > I'm rookie puppet user and I trying to establish simple Server-Client > connection on configuration:

[Puppet Users] Re: Design pattern for exported resources from EC2 autoscaled instances

2013-04-22 Thread Felipe Salum
I did an autoscaling pilot some months ago and I needed something similar to this. For the pilot to work (far from the best solution), I was triggering a puppet run on the server (DAS in your case) from the new launched autoscaling instance, using mco as you noted if you have mco working in you

Re: [Puppet Users] Windows Puppet waits for , then warns "Facter::Util::Resolution.exec with a shell built-in is deprecated"

2013-04-22 Thread Stefan Schulte
On Mon, 22 Apr 2013 10:08:45 +0200 Dirk Heinrichs wrote: > On Mon, Apr 22, 2013 at 12:45:35AM -0700, Paul Tötterman wrote: > > > Shouldn't environment variables be case-insensitive? What code is > > responsible for expanding those environment variables? > > This is Windows, so I'd say: "It dep

Re: [Puppet Users] [ANN] puppet-cleaner: makes puppet DSL code comply with a subset of the style guide

2013-04-22 Thread Gerardo Santana Gómez Garrido
Thanks for sharing your thoughts! I see your point and agree. I've just e-mailed the developer's mailing list about this. I hope to get green light on making the necessary adaptations to the lexer so anybody can reuse or extend it safely, as the OO Gods intended ;) Regards. El sábado, 20 de ab

Re: [Puppet Users] Passenger failing sporadically

2013-04-22 Thread Stefan Schulte
On Mon, 22 Apr 2013 07:06:50 -0700 (PDT) Drew Blessing wrote: > We're having a very strange issue with Puppet running on Passenger. > Every day or 2, our clients start receiving Passenger back traces. > It's the generic "Ruby (Rack) application could not be started." My > initial thought was tha

Re: [Puppet Users] Puppet catalog transfer often gets truncated (Could not intern from pson: error)

2013-04-22 Thread Matthew Burgess
On Mon, Apr 22, 2013 at 4:56 PM, Jeff B wrote: > I've been hitting this issue for a long time. well over a year and I guess > it's time to start pushing it to try to find the root cause. I've seen > this reported several times in the past but I've never seen a resolution > found for this exact p

Re: [Puppet Users] Puppet catalog transfer often gets truncated (Could not intern from pson: error)

2013-04-22 Thread Jeff B
Thanks for the tip this sounds quite plausible and it looks like something I'll need sooner or later. On Monday, April 22, 2013 4:03:13 PM UTC-4, Matthew Burgess wrote: > > On Mon, Apr 22, 2013 at 4:56 PM, Jeff B >wrote: > >> I've been hitting this issue for a long time. well over a year and I

[Puppet Users] Hiera error in Puppet: undefined method `empty?'

2013-04-22 Thread John George
Hello, I have spent the past several days unsuccessfully trying to get hiera-gpg to work. Can anyone help me understand what I am doing wrong? I am using Puppet Enterprise 2.7.2 (as a proof of concept). Right now, I just have a simple class where I look up a password and display it. I intend t

[Puppet Users] Hiera error in Puppet: undefined method `empty?'

2013-04-22 Thread John George
Hello, I have spent the past several days unsuccessfully trying to get hiera-gpg to work. Can anyone help me understand what I am doing wrong? I am using Puppet Enterprise 2.7.2 (as a proof of concept). Right now, I just have a simple class where I look up a password and display it. I intend t

[Puppet Users] Have you submitted a talk for PuppetConf?

2013-04-22 Thread Dawn Foster
As an added incentive, people who get accepted to speak at PuppetConf get into the conference for free! For PuppetConf, we are looking for sessions that range from how-to information for beginners to advanced topics for experts and everything in between. We would love to see you sharing stories ab

[Puppet Users] Re: Hiera error in Puppet: undefined method `empty?'

2013-04-22 Thread John George
I just figured out the error. The keyring had the wrong ownership permissions! I guess writing out the problem can help figure out the issue. Hope this will help someone else save time and effort. On Monday, April 22, 2013 1:53:26 PM UTC-7, John George wrote: > > Hello, > > I have spent the pas

[Puppet Users] Re: Design pattern for exported resources from EC2 autoscaled instances

2013-04-22 Thread Hugh Cole-Baker
On Monday, April 22, 2013 12:31:57 AM UTC+1, Shiva Narayanaswamy wrote: > > My setup has an EC2 autoscaling group of clustered glassfish application > servers. Each glassfish instance will register itself with a DAS (Domain > Administration Server) to become a member of the cluster, and deregiste

[Puppet Users] manifest with the gpg sign

2013-04-22 Thread huangming...@gmail.com
hi,all can let the puppetmaster verify the mainifests by a gpg public key. if the manifest's sign it's wrong, the puppetmaster don't use the manifest. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

Re: [Puppet Users] Udefined method `get_uptime` for Facter::Util::Uptime:Module

2013-04-22 Thread Josh Cooper
On Mon, Apr 22, 2013 at 2:48 AM, Przemek wrote: > Hi, > > I'm rookie puppet user and I trying to establish simple Server-Client > connection on configuration: > Server: *Fedora F18*, Puppet 3.1.1 (installed by yum), Ruby 1.8.7 > Client: *Debian 6.0.6*, Puppet 3.1.1 (installed by > guide

[Puppet Users] multi-puppetmaster CA setup problem

2013-04-22 Thread Larry Fast
I'm getting errors when following this webpage to setup a second puppetmaster (pm2) while using pm1 as the CA: http://docs.puppetlabs.com/guides/scaling_multiple_masters.html#centralize-the-certificate-authority and I'm using option 1: Direct agent nodes to the CA Master As far as I can tell, i

[Puppet Users] Re: Puppetlabs firewall module

2013-04-22 Thread Ask Bjørn Hansen
On Wednesday, March 27, 2013 12:32:27 PM UTC-7, David Warden wrote: > > I'm also running in to this. Has anyone managed to get the puppet firewall > module to manage both iptables and ip6tables? > >> You can add rules to ip6tables by specifying provider => 'ip6tables' on each firewall {} statem