[Puppet Users] Re: what is private method `split' called for nil:NilClass error??

2011-12-08 Thread Sans
Hi Daniel, Thanks for the explanation. It's always good to know the underlaying cause. Cheers!! On Dec 8, 12:13 am, Daniel Pittman dan...@puppetlabs.com wrote: ...and to close that loop: in Ruby, '$c_repo' is a global variable. Because nothing will ever have assigned it, you called the `split`

[Puppet Users] deploying puppet on win32

2011-12-08 Thread Alexey Wasilyev
Hello Does anybody have complete solution to massive deploy puppet on win32 systems using gpo? I think it should be something like .msi file containing ruby, puppet and all necesary gems... -- С уважением, Васильев Алексей -- You received this message because you are subscribed to the

Re: [Puppet Users] Re: explicit class dependencies

2011-12-08 Thread Phil Frost
On 12/07/2011 06:01 PM, Christian G. Warden wrote: On Wed, Dec 07, 2011 at 01:36:13PM -0800, jcbollinger wrote: On Dec 6, 4:12 pm, Christian G. Wardencwar...@xerus.org wrote: On Tue, Dec 06, 2011 at 01:38:38PM -0800, Nan Liu wrote: On Tue, Dec 6, 2011 at 12:27 PM, Christian G.

[Puppet Users] Re: puppet agent daemon does not load custom facts

2011-12-08 Thread Stefan Heijmans
Is the custom fact perhaps based on a environment variable? I had something similar a while ago, check this post; https://groups.google.com/d/msg/puppet-users/2gjjaWFJm4Q/uANKwM-xWQ4J Stefan -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

Re: [Puppet Users] MCollective discovery - we did not discover any nodes

2011-12-08 Thread Jens Braeuer
Hi everyone, thank R.I.P. for the pointers. I already planed to add more monitoring to ActiveMQ, so I'll take this as a chance. I dont think Amazon network settings are the root cause in my case, as I have registration agent enabled on all machines. This should keep the connection busy. I

Re: [Puppet Users] MCollective discovery - we did not discover any nodes

2011-12-08 Thread R.I.Pienaar
- Original Message - Hi everyone, thank R.I.P. for the pointers. I already planed to add more monitoring to ActiveMQ, so I'll take this as a chance. I dont think Amazon network settings are the root cause in my case, as I have registration agent enabled on all machines. This

[Puppet Users] Re: explicit class dependencies

2011-12-08 Thread jcbollinger
On Dec 7, 5:01 pm, Christian G. Warden cwar...@xerus.org wrote: I hope this doesn't come off as too much of a rant. As a person who is frequently critical of some of the newer Puppet features -- especially parameterized classes -- I wouldn't have much standing to object to your criticisms.

[Puppet Users] Re: error starting puppetmaster no such file to load - puppet/network/server

2011-12-08 Thread jcbollinger
On Dec 7, 4:31 pm, Mark_SysAdm timetra...@gmail.com wrote: James, I haven't heard anything back from the list. The only workaround I found was to try installing puppet-server on exactly the same OS, but on a freshly-installed server. Puppet starts without a problem! So maybe we have some

[Puppet Users] Re: passing a parameter to define

2011-12-08 Thread jcbollinger
On Dec 7, 7:55 am, Alexander Swen alex.s...@gmail.com wrote: hi, I'm a bit confused while passing a parameter to a definition i've made. My aim is to create a htpasswd file on my icinga server, using the hashed passwords from my userlist. I only want to execute this on a icinga server,

[Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/node13.pem

2011-12-08 Thread Utoplenick
If anybody knows? plese tell me what is a reason of this problem, i`m novice with puppet and sorry for my english=) have error on client: [root@node13 ~]# [root@node13 ~]# puppet agent --server=head02 --test warning: peer certificate won't be verified in this SSL session warning: peer certificate

[Puppet Users] Puppet Dashboard or Forman on SLES?

2011-12-08 Thread Wiesel82
Hi all, i planned for a startup to install one of this gui tools. But if i look in the documentation, or google it, i find no results which helps. If i would like to install the rpm package i get the following dependencies problems rpm -i puppet-dashboard-1.2.3-1.el6.noarch.rpm warning:

[Puppet Users] Grouping Servers

2011-12-08 Thread AB
I was hoping to get info on a best practise or potentially an aim for a best practise that puppet development is working towards. I would like to group our servers so that I can use the files server to hand out files in a hierarchal order starting with hostname, groupname, default file. I

[Puppet Users] Using a defined resource declared within a parameterized class?

2011-12-08 Thread Michael Cumings
I want to be able to build a parameterized class that represents each of our major services, and then use a define within that class that will make use of the parameters. For example, have a class that represents a complete application, which is a virtualenv python application. Then use a define

[Puppet Users] Startup help puppet

2011-12-08 Thread Wiesel82
Hi all, i started this week to install puppet. Everything runs fine in this part. The client is authenticated with the master and i find them if i start the command puppet cert --list --all I created my first pp-files and my first module. if test all with puppet apply it works. I wrote a module

[Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Luke
Thanks guys. I should have pointed out that the developers do have builds mostly automated using ant we were just wondering we could have a solution that we could all use to try to standardize things. So I take it that we should probably just stick with that and perhaps look to puppet for our

[Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Luke
Ok a better way to word this can puppet allow us to isolate down the environment so that dev can make changes to their own environment but not QA, Prod etc. I am struggling with comparing these products because I don't think any one of them really does a good job of explaining what they do or how

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Nigel Kersten
On Thu, Dec 8, 2011 at 9:29 AM, Luke lutay...@gmail.com wrote: Ok a better way to word this can puppet allow us to isolate down the environment so that dev can make changes to their own environment but not QA, Prod etc. Yes. In Puppet these are called environments :)

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Christopher Wood
On Thu, 8 Dec 2011 09:48:51 -0800, Nigel Kersten wrote: On Thu, Dec 8, 2011 at 9:29 AM, Luke wrote: Ok a better way to word this can puppet allow us to isolate down the environment so that dev can make changes to their own environment but not QA, Prod etc. Yes. In Puppet these are called

Re: [Puppet Users] Startup help puppet

2011-12-08 Thread Mohamed Lrhazi
On the client, run puppet agent --test --trace --debug That would show you what the puppet client is doing If you still have problems: in include test what is test? a module? show the full content of it. I personally use modules for everything and I always have the files distributed at the

[Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Luke
Thank you for the reply. I am having difficulty choosing between CFengine, Chef and puppet. Which one would suit us the best as a small web app startup with heavy reliance on mysql/tomcat/nagios.We are entirely virtualized with ESX, want to be scalable and want a product that would work well in

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Daniel Pittman
On Thu, Dec 8, 2011 at 10:36, Luke lutay...@gmail.com wrote: I am having difficulty choosing between CFengine, Chef and puppet. Which one would suit us the best as a small web app startup with heavy reliance on mysql/tomcat/nagios.We are entirely virtualized with ESX, want to be scalable and

[Puppet Users] how to link items together -- all happen together?

2011-12-08 Thread Jo Rhett
I've found some problems due to the extremely random ordering puppet does. It is necessary for some of these items to all happen together, with no other random resources executed in between. Is there some way to arrange this with puppet? -- Jo Rhett Net Consonance : consonant endings by net

[Puppet Users] Class name clashes

2011-12-08 Thread Gonzalo Servat
Hi All, I have a module called openvpn which lives in /etc/puppet/modules/openvpn/. It just sets up generic OpenVPN stuff. I then set-up another class called s_jumpbox::openvpn, which lives in /etc/puppet/services/s_jumpbox/manifests/openvpn.pp. Inside this latter class, I did an include openvpn

Re: [Puppet Users] Class name clashes

2011-12-08 Thread Adam Gibbins
On 7 December 2011 23:09, Gonzalo Servat gser...@gmail.com wrote: Hi All, I have a module called openvpn which lives in /etc/puppet/modules/openvpn/. It just sets up generic OpenVPN stuff. I then set-up another class called s_jumpbox::openvpn, which lives in

Re: [Puppet Users] how to link items together -- all happen together?

2011-12-08 Thread Jacob Helwig
On 2011-12-08 11:07 , Jo Rhett wrote: I've found some problems due to the extremely random ordering puppet does. It is necessary for some of these items to all happen together, with no other random resources executed in between. Is there some way to arrange this with puppet? -- Jo Rhett

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Jeffrey Watts
I should also add that a very important consideration is to take in mind _who_ will be working with this. Are they developers, sysadmins, QA? Will the people working on it be spending a lot of time with Puppet/Chef/CFengine, or just a little? Are you planning on writing a bunch of custom

Re: [Puppet Users] Using array's in Puppet (in combination with Augeas).

2011-12-08 Thread Felix Frank
On 12/02/11 13:29, Adrian van Dongen wrote: So now I am kind of stuck. I could write a separate define for the up rules but I would rather have this within the define for interfaces. No, that's how you generally do it. Make a defined type that does the required augeas to add an 'up' rule,

[Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Luke
This tool will be used by primarily system admins to automate server builds app installs, configurations etc. The devs will use it in their own environment to help automate some of their tasks. I don't think we have too much Ruby expertise since we are mostly a Java shop. In terms of performance

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Daniel Pittman
On Thu, Dec 8, 2011 at 12:59, Luke lutay...@gmail.com wrote: This tool will be used by primarily system admins to automate server builds app installs, configurations etc. The devs will use it in their own environment to help automate some of their tasks. I don't think we have too much Ruby

Re: [Puppet Users] Class name clashes

2011-12-08 Thread Gonzalo Servat
On Fri, Dec 9, 2011 at 6:50 AM, Adam Gibbins a...@adamgibbins.com wrote: On 7 December 2011 23:09, Gonzalo Servat gser...@gmail.com wrote: Is this how it's supposed to work? Pretty sure I've done this before and haven't had it do that. Could you try specifying the namespace? e.g. ::openvpn

[Puppet Users] Re: how to link items together -- all happen together?

2011-12-08 Thread Marc DiBlasi
It sounds like he wants to not only assue that foo happens before bar, but that nothing happens between foo and bar. I think the only way to ensure that is to use stages, and have a separate stage for the two items that need to be executed together. On Dec 8, 1:58 pm, Jacob Helwig

[Puppet Users] Re: how to link items together -- all happen together?

2011-12-08 Thread jcbollinger
On Dec 8, 1:07 pm, Jo Rhett jrh...@netconsonance.com wrote: I've found some problems due to the extremely random ordering puppet does.   It is necessary for some of these items to all happen together, with no other random resources executed in between. That's rather unusual. I'll discuss

Re: [Puppet Users] MCollective discovery - we did not discover any nodes

2011-12-08 Thread Yaakov Nemoy
If you're looking for monitoring tips, one thing we do is run an 'mco find' on our entire network. A nagios page goes out if the count ('wc -l') drops below a threshold. -Yaakov On Thu, Dec 8, 2011 at 06:50, Jens Braeuer jens.brae...@numberfour.eu wrote: Hi everyone, thank R.I.P. for the

[Puppet Users] Re: Class name clashes

2011-12-08 Thread jcbollinger
On Dec 8, 3:36 pm, Gonzalo Servat gser...@gmail.com wrote: On Fri, Dec 9, 2011 at 6:50 AM, Adam Gibbins a...@adamgibbins.com wrote: On 7 December 2011 23:09, Gonzalo Servat gser...@gmail.com wrote: Is this how it's supposed to work? Pretty sure I've done this before and haven't had it

Re: [Puppet Users] Error 400 on SERVER: Could not write /var/lib/puppet/ssl/ca/requests/node13.pem

2011-12-08 Thread Denmat
Hi, I think the error is self explanatory. What are the perms on the directory? The simplest thing here is to remove /var/lib/puppet/ssl and let it be recreated. Cheers, Den On 09/12/2011, at 3:33, Utoplenick arifulovre...@gmail.com wrote: If anybody knows? plese tell me what is a reason of

[Puppet Users] Re: Using a defined resource declared within a parameterized class?

2011-12-08 Thread jcbollinger
On Dec 7, 3:17 pm, Michael Cumings mcumi...@narrativescience.com wrote: I want to be able to build a parameterized class that represents each of our major services, and then use a define within that class that will make use of the parameters.  For example, have a class that represents a

[Puppet Users] Any way to have exclusive classes?

2011-12-08 Thread Len Rugen
I have a group of classes (about 6 now) that I want to allow a host to use none or at most one of them. This just a guard rail for admins. :-) Basically like this: base base::opt1 base::opt2 ... base::opt6 base is default to all nodes. We use Puppet and Foreman :-) Thanks -- You received

[Puppet Users] problem with fund service

2011-12-08 Thread David Alden
Hi, I wrote a small func module that installs and configures func. The problem I'm having is that the service type isn't properly starting the service. I have the following: class func::service { Service { enable = true, ensure = running, hasrestart = true, hasstatus =

[Puppet Users] Announce: Puppet 2.7.8 Available

2011-12-08 Thread Matthaus Litteken
Puppet 2.7.8 is available. 2.7.8 contains everything that was being previewed in the 2.7.7rc series as well as some new content. Key highlight in this release (beyond items from 2.7.7rc series) are: * Allow providers to be selected in the run they become suitable * Showdiff is now not

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Jeffrey Watts
I've found Puppet to be unreliable running as a daemon - I suspect due to older versions of ruby floating around. So I switched to running it from cron, and it works a lot better. Memory usage doesn't seem to be an issue, and the agent only runs for a few seconds. Use Puppet Dasboard (or

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Brian Gallew
Let me emphasize the beauty of running Puppet out of cron. Not only do you not end up with resource leaks (or just simple consumption when you don't need it), but you also get much more reliable load on your puppet masters. Further, if you are wiling to make a trivial effort to write a

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Brian Gupta
I would consider the following a small list of pros and cons for the three tools: Pros: Cfengine: Not written in Ruby, so currently is more efficient with system resources. Puppet: IMHO has the most approachable syntax of the three (for sysadmins), and the strongest community. It also has the

[Puppet Users] a tips , run puppet in client mode in big datacenter

2011-12-08 Thread huangming...@gmail.com
hi,all this is a tips, when you run puppet in a big data center. you need run more than one puppet master. this is a trouble. and if the puppet master hacked by hacker. all client will be in danger. but run puppet in client mode , can resolve this two problem. the first . client

Re: [Puppet Users] Any way to have exclusive classes?

2011-12-08 Thread Denmat
Hi, The way we do as similar kind of thing is use a 'role' class which assigns various classes based on the fact of a node. We created a custom fact that gives a fact that tells us the node's role. We then use: if $role-fact =~ role { include variousclasses } Not as simple as that obviously

Re: [Puppet Users] Re: Is puppet right for us?

2011-12-08 Thread Daniel Pittman
I would totally recommend Puppet Commander in place of that, if you have the time to get it running: http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/ToolPuppetcommander It uses mcollective and is pretty much awesome. Daniel On Thu, Dec 8, 2011 at 21:22, Brian Gallew