Re: [Puppet Users] Re: qualified variables in templates

2011-09-21 Thread Arnau Bria
Ok. so template and class share the scope and tehre's no need to qualify its vars. Thanks for your replies and for the link. Cheers, Arnau -- 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@googleg

[Puppet Users] Software inventory

2011-09-21 Thread Glenn Bailey
Howdy, Before I go about writing one myself, anyone out there written a software inventory module/fact for gathering a list of all installed rpms/debs on a system? Got a few ideas floating around in my head, but wanted to see if/what other folks have done .. -- I've seen things you people wouldn

[Puppet Users] Re: Puppet is very slow when running in AWS

2011-09-21 Thread Troy Stribling
DNS seems OK. It is looking like problem may be with EBS. I am collecting more data and may write another post later. On Sep 19, 7:00 pm, Romain Pelisse wrote: > I had some issues on my first trial with Puppet on AWS because of DNS > resolution. I used Amazon R53 and the all damn thing was very s

Re: [Puppet Users] Software inventory

2011-09-21 Thread Dan Bode
On Wed, Sep 21, 2011 at 9:45 AM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what

Re: [Puppet Users] Software inventory

2011-09-21 Thread Brian Gupta
Well, puppet does include a native facility for doing this... try running and see if the output meets your needs: "puppet resource package" I guess the question before extending this to a module, is what exactly do you want to do with the data? -Brian On Wed, Sep 21, 2011 at 12:45 PM, Glenn Bail

Re: [Puppet Users] Software inventory

2011-09-21 Thread Glenn Bailey
>> Before I go about writing one myself, anyone out there written a >> software inventory module/fact for gathering a list of all installed >> rpms/debs on a system? Got a few ideas floating around in my head, but >> wanted to see if/what other folks have done .. > > you can already do this with: >

Re: [Puppet Users] Software inventory

2011-09-21 Thread Dan Bode
its also pretty easy to programatically access the information, which could make parsing it easier: >require 'puppet' >Puppet::Type.type(:package).instances On Wed, Sep 21, 2011 at 10:53 AM, Glenn Bailey wrote: > >> Before I go about writing one myself, anyone out there written a > >> software i

Re: [Puppet Users] facter fails to detect network interfaces with long names

2011-09-21 Thread Adrien Thebo
Looking at the gentoo response in the ticket, the decision to maintain the interface truncation looks pretty final. Regardless of this, supporting iproute2 should be a priority, since I've heard of minimal arch installs that don't include net-tools at all and we can expect the trend towards iproute

Re: [Puppet Users] Review of new type & provider

2011-09-21 Thread Jacob Helwig
On Tue, 20 Sep 2011 23:19:36 -0700, James Turnbull wrote: > > Jesse Peterson wrote: > > Hello, > > > > I'm new to both Ruby and Puppet. Puppet is fantastic - loving it so > > far. > > > > I created a new type & provider (of parsed file type) for modifying > > newsyslog.conf files and am hoping s

Re: [Puppet Users] Announcement: Geppetto 2.0.0 released

2011-09-21 Thread Henrik Lindberg
We are experiencing problems with downloads from github at the moment. Trying to fix the issues. Regards - henrik On 9/19/11 4:59 AM, Henrik Lindberg wrote: The 2.0.0 release of Geppetto is available as download and updates from within Geppetto for all users of 1.0.x. Please see the FAQ at: ht

[Puppet Users] deliberately causing template failure?

2011-09-21 Thread Christopher Wood
How do I cause template failure in the erb ruby? I'd like the same kind of failure as for a template syntax issue, where puppet keeps going. I know I can use "exit" in a template, but I haven't yet tested if that will simply cause my puppet agent to exit altogether. Background: I'm trying to t

[Puppet Users] Re: Software inventory

2011-09-21 Thread Ashay
On Sep 21, 10:53 am, Glenn Bailey wrote: > >> Before I go about writing one myself, anyone out there written a > >> software inventory module/fact for gathering a list of all installed > >> rpms/debs on a system? Got a few ideas floating around in my head, but > >> wanted to see if/what other fol

Re: [Puppet Users] Software inventory

2011-09-21 Thread R.I.Pienaar
- Original Message - > its also pretty easy to programatically access the information, which > could make parsing it easier: > > >require 'puppet' > >Puppet::Type.type(:package).instances the puppetral mcollective agent does something similar in a generic fashion so you can just query t

Re: [Puppet Users] deliberately causing template failure?

2011-09-21 Thread Daniel Pittman
On Wed, Sep 21, 2011 at 12:00, Christopher Wood wrote: > How do I cause template failure in the erb ruby? I'd like the same kind of > failure as for a template syntax issue, where puppet keeps going. I know I > can use "exit" in a template, but I haven't yet tested if that will simply > cause m

Re: [Puppet Users] deliberately causing template failure?

2011-09-21 Thread Dan Bode
using the fail function should work: content = inline_template('<%= fail("doh") %>') On Wed, Sep 21, 2011 at 12:56 PM, Daniel Pittman wrote: > On Wed, Sep 21, 2011 at 12:00, Christopher Wood > wrote: > > How do I cause template failure in the erb ruby? I'd like the same kind > of failure as for

Re: [Puppet Users] deliberately causing template failure?

2011-09-21 Thread Christopher Wood
Thank you to you and Daniel, both your methods do what I want. On Wed, Sep 21, 2011 at 12:58:38PM -0700, Dan Bode wrote: >using the fail function should work: > >content = inline_template('<%= fail("doh") %>') > >On Wed, Sep 21, 2011 at 12:56 PM, Daniel Pittman ><[1]dan...@puppet

[Puppet Users] Two parameterized classes calling both a thirth class (results in already defined)

2011-09-21 Thread rvlinden
Hi all, I have three parameterized classes, named mq, mq_gsk and apache. The mq class always calls the mq_gsk class, but the apache class should only call the mq_gsk class when the mq class is not used in a hosts' node definition Here is my configuration class mq ( $gsk_version = undef ) {

[Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Douglas Garstang
All, I have a situation where I need to get some fairly complex configuration files onto systems, and I'm wondering if puppet can even do this. Lets say that my external node script will go and source all the data it needs from an external database, and dump out all variables that the node will ne

Re: [Puppet Users] Software inventory

2011-09-21 Thread Ohad Levy
On Wed, Sep 21, 2011 at 7:45 PM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what

[Puppet Users] ANNOUNCE: Facter 1.6.1rc4 available

2011-09-21 Thread Matthaus Litteken
Facter 1.6.1rc4 is a maintenance release containing a fix for issue #9517, as detailed below. This release is available for download at: http://puppetlabs.com/downloads/facter/facter-1.6.1rc4.tar.gz See the Verifying Puppet Download section at: http://projects.puppetlabs.com/projects/puppet/wik

[Puppet Users] CloudPack's "node install ...." ignores certname

2011-09-21 Thread Hamoun gh
although in cloudpack.rb::install(...) user specified certname is supprted (i.e. options[:certname] ||= Guid.new.to_s), the certname is not passed to the method when supplied through command line. any idea? tx -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] Re: Software inventory

2011-09-21 Thread Brian Gupta
Does anyone else have any concern about populating custom facts that list ALL packages installed on a system? My sense is that it has the potential to create a lot of overhead for facter, and in turn puppet itself. (A typical linux system will have hundreds of packages installed). I also don't thin

Re: [Puppet Users] CloudPack's "node install ...." ignores certname

2011-09-21 Thread Dan Bode
We recently noticed the same issue. I have a feeling that is may be related to the version of puppet that is running. What version are you running? We have actually been actively working on a fix in the following pull request: https://github.com/puppetlabs/puppetlabs-cloud-provisioner/pull/16 a f

Re: [Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Brian Gupta
Puppet can do this. I would propose the following solution, but there may be other ways to do it. 1) Use a template. Templates have embedded ruby code and run on the clients. 2) Link to some library that allows you to query your database (You can use one or more require statements in your ruby cod

Re: [Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Aaron Grewell
Remember too that if you can do it once (say with a define) Puppet will do it as many times as you like just by putting the data in an array. On Sep 21, 2011 2:39 PM, "Brian Gupta" wrote: > Puppet can do this. I would propose the following solution, but there may be > other ways to do it. > > 1) U

Re: [Puppet Users] Software inventory

2011-09-21 Thread Rich Rauenzahn
On Wed, Sep 21, 2011 at 9:45 AM, Glenn Bailey wrote: > Howdy, > > Before I go about writing one myself, anyone out there written a > software inventory module/fact for gathering a list of all installed > rpms/debs on a system? Got a few ideas floating around in my head, but > wanted to see if/what

Re: [Puppet Users] Re: Software inventory

2011-09-21 Thread Nigel Kersten
On Wed, Sep 21, 2011 at 2:29 PM, Brian Gupta wrote: > Does anyone else have any concern about populating custom facts that > list ALL packages installed on a system? My sense is that it has the > potential to create a lot of overhead for facter, and in turn puppet > itself. (A typical linux system

[Puppet Users] ANNOUNCE: Puppet-Dashboard 1.2.1 available

2011-09-21 Thread Matthaus Litteken
This is a maintenance release of Puppet Dashboard. This release resolves issues #7405, #9101, #8878, and #8803. More details below. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Verifyi

Re: [Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Douglas Garstang
Thanks, but I'm not sure templates will quite cut it. There is no way that I am aware of to iterate over all the variables obtained through an external node script, and put chunks into separate files. This falls outside the bounds of what embedded ruby can do. As for using define(), well, I am try

Re: [Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Nigel Kersten
On Wed, Sep 21, 2011 at 1:20 PM, Douglas Garstang wrote: > All, > > I have a situation where I need to get some fairly complex > configuration files onto systems, and I'm wondering if puppet can even > do this. Lets say that my external node script will go and source all > the data it needs from a

[Puppet Users] Announcing a new committer, plans for adding committers, and new mailing list.

2011-09-21 Thread Jacob Helwig
One of the things we're doing to try and increase the community involvement in developing, and guiding Puppet, Facter, and Puppet Dashboard is adding committers that fall under the category of "people that don't work for Puppet Labs". Please welcome Stefan Schulte as our newest committer to Puppet

Re: [Puppet Users] Re: exported resources and templating

2011-09-21 Thread Robin Lee Powell
On Tue, Aug 23, 2011 at 06:21:48AM -0700, jcbollinger wrote: > > > On Aug 22, 8:11 am, puppetlurker wrote: > > Greetings, > > > > I'm having an issue with my implementation of exported resources.  I > > have a memcache server pool, and want to update the /etc/php.d/ > > memcache.ini with the ips

Re: [Puppet Users] Software inventory

2011-09-21 Thread Glenn Bailey
>> Before I go about writing one myself, anyone out there written a >> software inventory module/fact for gathering a list of all installed >> rpms/debs on a system? Got a few ideas floating around in my head, but >> wanted to see if/what other folks have done .. > > We've written some custom facts

[Puppet Users] Re: apt-get --force-yes

2011-09-21 Thread i0n
If you don't want to sign your packages try adding this to your apt.conf APT::Get::AllowUnauthenticated "true"; On Sep 17, 11:33 am, "KarthiKeyan. Kesavan" wrote: > Hi , > > Yes, i am trying to install the packages from my local repo . > > Regards > > Chebrian > > On Sat, Sep 17, 2011 at 9:01 P

Re: [Puppet Users] Variable number of variables in external node output...

2011-09-21 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > 1) Use a template. Templates have embedded ruby code and run on the clients. template() is a function and as any other function it will run on the server. ~pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG w