[Puppet Users] Re: [Puppet-dev] need help w/ puppet error when running against my sandbox environment

2011-12-07 Thread James Turnbull
Brian L. wrote: > Guys, > > I apologize ahead of time if this article shouldn't be posted here... > > I have spent a couple of hrs debugging an issue w/ my sandbox setup so > that I can test my code before committing and pushing out my code in > production. I ran it against my own environment=bl

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

2011-12-07 Thread R.I.Pienaar
hello, - Original Message - > Hi everyone, > > I run MCollective 1.2.1 together with ActiveMQ 5.5 under Scientific > Linux 6.1 on Amazon EC2. Overall it works like a > charm, but sometimes (eg. 1/30) discovery fails. Still the exit-code > of mco will be 0, which is a problem for me as I >

[Puppet Users] Puppet Dashboard; node.rake

2011-12-07 Thread Stefan Heijmans
Hello, I've added an extra rake task (node:listfull) to node.rake which displays the nodes (all or by match) with defined groups & classes on it, like; Nodename = Groups = ,, Classes = ,, For groups I use; NodeGroup.find(node.node_groups).each do |nodegroup| and classes; NodeClass.

Re: [Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

2011-12-07 Thread Stefan Schulte
On Tue, Dec 06, 2011 at 10:34:47AM -0800, Jason Koppe wrote: > http://pastie.org/private/t9nl5wa91bd6rx1afad7sq is a pastie of my > changes to https://github.com/puppetlabs/puppet-lvm and the error i'm > seeing is > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Inval

Re: [Puppet Users] Multi-Dimensional Arrays and Templates?

2011-12-07 Thread Felix Frank
On 11/21/2011 07:11 PM, Jon Davis wrote: > PS. Or is there a better way to go about this that I'm missing? I'm not sure that it *will* work, in fact. It may be beneficial to put your information into a hash-based structure instead, such as { domainname => { 'servertype' => servertype, 'flag' => b

Re: [Puppet Users] Re: Could not retrieve metadata

2011-12-07 Thread Felix Frank
Hi, On 11/21/2011 08:38 PM, Dmitry wrote: > Example: > > Nov 21 22:56:35 comp01 puppet-agent[46828]: (/Stage[main]/Bsd/File[/ > etc/inetd.conf]) Could not evaluate: end of file reached Could not > retrieve file metadata for puppet:///modules/bsd/etc/inetd.conf: end > of file reached at /usr/local

Re: [Puppet Users] actual diff of changed files via email

2011-12-07 Thread Felix Frank
Hi, On 11/23/2011 01:50 PM, Andreas Paul wrote: > Hi there, > > I currently get my puppet run reports via email, can I somehow get the > actual diff of the changed files in those emails? > > I'd like to get the exact same output as if I'm running puppetd -t on > the client. > > Is that possible

Re: [Puppet Users] Custom printouts in reports

2011-12-07 Thread Felix Frank
On 11/25/2011 10:30 AM, Pavel Weber wrote: > What I would like to have only one line in report: Me too. But we get two because of the way puppet implements the notify type, and frankly, I disbelieve it could easily be done in a more terse way. Cheers, Felix -- You received this message because

[Puppet Users] passing a parameter to define

2011-12-07 Thread Alexander Swen
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, not all my servers. this is what i've got: 1st my node definition: nod

[Puppet Users] Re: Multi-Dimensional Arrays and Templates?

2011-12-07 Thread Vlad
This is something I am using, and I'm sure it could be split into even more levels: manifest: $allowed_ips = { "Example IP address" => {"11.22.33.44" => "22"} } template: <% allowed_ips.each do |comment, ip_port| -%> <% ip_port.each do |ip, port| -%> $IPT -A INPUT -s <%= ip %> --dport <%

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

2011-12-07 Thread Sans
Dear all, I have this line: <% $c_repo.split(',').each_with_index do |repo, i| %> in one of my template files and on the target node I'm getting this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template zmfs/zmfs_prob.erb: private method `spli

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

2011-12-07 Thread Felix Frank
Hi, On 12/07/2011 04:26 PM, Sans wrote: > Dear all, > > I have this line: > > <% $c_repo.split(',').each_with_index do |repo, i| %> > > in one of my template files and on the target node I'm getting this > error: > > err: Could not retrieve catalog from remote server: Error 400 on > SERVER: Fa

Re: [Puppet Users] Errors on both client and server when setting up initial puppet infrastructure

2011-12-07 Thread Felix Frank
> /usr/local/lib/ruby/gems/1.9.1/gems/facter-1.6.3/lib/facter/util/config.rb Hi, I disbelieve that puppet is supposed to work with ruby 1.9 yet. Isn't 1.9.1 supposed to be terribly buggy? Try 1.8.7, please. HTH, Felix -- You received this message because you are subscribed to the Google Grou

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

2011-12-07 Thread Sans
thanks Felix! that's it - good catch. did not notice the "$" sign at all. working just fine now. Cheers, San On Dec 7, 3:33 pm, Felix Frank wrote: > > > I shall assume that you declare a variable $c_repo somewhere in your > manifest. > > In your template, reference it as 'c_repo' without the lea

[Puppet Users] Puppet Inventory Service - class search

2011-12-07 Thread Justin Lambert
I am looking to rewrite some modules that currently use storeconfigs (nagios being the big one) to instead pull from the inventory service the required information instead. Some of the checks are as easy as a monitoring check that gets put into place whenever a specific class is included. I kn

[Puppet Users] Is puppet right for us?

2011-12-07 Thread Luke
Hello, We are web app startup that is attempting to embrace the "devops" paradigm. We have a mixture of redhat and centos ESX VMs spread across dev/QA/ prod environments. We are currently using nagios for monitoring. Our servers consist of apache, tomcat and mysql. We are looking for open sourced

[Puppet Users] Announce: Facter 1.6.4 Available

2011-12-07 Thread Matthaus Litteken
Facter 1.6.4 is a maintenance release containing fixes, updates and refactoring. It resolves issues #10885, #11041, #10490, and #10444. Full release notes below. Please note that #11041 changes the dependencies for building or installing Facter on linux systems. Without dmidecode, certain facts

[Puppet Users] Re: explicit class dependencies

2011-12-07 Thread jcbollinger
On Dec 6, 4:12 pm, "Christian G. Warden" 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. Warden > > wrote: > > > Do explicit class dependencies work? > > > This simple example fails with: > > > Could not find resource 'Class[C

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

2011-12-07 Thread Graham Leggett
On 07 Dec 2011, at 10:22 PM, Luke wrote: > We are web app startup that is attempting to embrace the "devops" > paradigm. > > We have a mixture of redhat and centos ESX VMs spread across dev/QA/ > prod environments. We are currently using nagios for monitoring. Our > servers consist of apache, tom

[Puppet Users] Re: File dependency not found when specified in a "define"

2011-12-07 Thread jcbollinger
On Dec 6, 7:59 am, Darin Perusich wrote: > I have tried this by placing the 'define sshd_config' into a separate file, > /etc/puppet/modules/ssh/manifests/sshd_config.pp, and using "include ssh". > I prefer this method but I get the same error. I've merged the define back > into init.pp thinking

[Puppet Users] Re: File dependency not found when specified in a "define"

2011-12-07 Thread jcbollinger
On Dec 7, 3:58 pm, I wrote: > In the first place, your definition is a bit screwey in that it cannot > be instantiated more than once (you would get a duplicate resource > error on File['sshd_config']).  A definition creates a resource *type* > but you're using it as if it created a single resour

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

2011-12-07 Thread Jon Davis
On Wed, Dec 7, 2011 at 12:22, Luke wrote: > > to automate our complex server builds Well, that's Puppets core skill. > and web app deployments but will assist our devs with getting their builds > ready to deploy Depends on how you deploy your webapps and your builds, it could, but it might

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

2011-12-07 Thread Mark_SysAdm
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 competing packages/RPMs added to the original system, which is of cou

Re: [Puppet Users] Re: explicit class dependencies

2011-12-07 Thread Christian G. Warden
On Wed, Dec 07, 2011 at 01:36:13PM -0800, jcbollinger wrote: > On Dec 6, 4:12 pm, "Christian G. Warden" 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. Warden > > > wrote: > > > > Do explicit class dependencies work? [...] >

Re: [Puppet Users] Re: puppetlabs-firewall: hostnames Vs IP addresses

2011-12-07 Thread Mohamed Lrhazi
I run into a problem when I tried applying my new firewall module based config on RedHat version 5 systems... the problem is that th iptables-save behaves differently than the one on RedHat 6: # /sbin/iptables --version iptables v1.3.5 # /sbin/iptables-save | grep SSH -A INPUT -s 10.128.0.0/255.12

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

2011-12-07 Thread Daniel Pittman
...and to close that loop: in Ruby, '$c_repo' is a global variable. Because nothing will ever have assigned it, you called the `split` method on the default value, `nil`, which raised that error. Puppet then reported it. :) Daniel On Wed, Dec 7, 2011 at 10:17, Sans wrote: > thanks Felix! that's

Re: [Puppet Users] Announce: Puppet 2.6.13rc1 Available

2011-12-07 Thread Jo Rhett
I would think that a bug fix for #11143 should be in the next release. On Dec 5, 2011, at 2:47 PM, Matthaus Litteken wrote: > This release is a maintenance release candidate of the 2.6.x series of Puppet. > > This release is available for download at: > http://puppetlabs.com/downloads/puppet/pupp

Re: [Puppet Users] Announce: Puppet 2.6.13rc1 Available

2011-12-07 Thread James Turnbull
Jo Rhett wrote: > I would think that a bug fix for #11143 should be in the next release. > The issue hasn't had more the most basic triage done and we don't even have root cause. Nigel and Engineering may have a view on it but I would suggest it won't make .13 which is already in RC. Regards J