[Puppet Users] Re: Puppet playing badly with Debian etch rubygems

2009-01-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nicolas Szalay wrote: > Le lundi 19 janvier 2009 à 15:33 -0800, Robin Lee Powell a écrit : >> OK, so how do I fix it? > > I think that debgem will be helpfull in a near future : > http://debgem.phusion.nl/ > Except that it isn't free. Regards Jam

[Puppet Users] Re: Puppet playing badly with Debian etch rubygems

2009-01-19 Thread Nicolas Szalay
Le lundi 19 janvier 2009 à 15:33 -0800, Robin Lee Powell a écrit : > OK, so how do I fix it? I think that debgem will be helpfull in a near future : http://debgem.phusion.nl/ -- Nicolas Szalay Administrateur systèmes & réseaux -- _ ASCII ribbon campaign ( ) - against HTML

[Puppet Users] Re: What is an "external node tool"

2009-01-19 Thread Andrew Shafer
Kevin, Using external nodes decouples the definitions of classes and code from the hosts that will apply them. This approach also allows you to introduce arbitrary variables and values that will be used by the classes. External nodes gives you away to connect your hosts and services they provide

[Puppet Users] Re: What is an "external node tool"

2009-01-19 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 AJ Christensen wrote: > Woops, forgot this page too: > > http://reductivelabs.com/trac/puppet/wiki/ExternalNodes > > Has an example script which spits out some YAML. > > Regards, Also in my book you can find other examples of a external nodes tool

[Puppet Users] Re: What is an "external node tool"

2009-01-19 Thread AJ Christensen
Woops, forgot this page too: http://reductivelabs.com/trac/puppet/wiki/ExternalNodes Has an example script which spits out some YAML. Regards, AJ On 20/01/2009, at 3:53 PM, kevin wrote: > > I've been a bit confused by this terminology: What exactly is such a > tool? What purpose does it se

[Puppet Users] Re: What is an "external node tool"

2009-01-19 Thread AJ Christensen
An external node tool provides classes and parameters (variables) for nodes. It's a cool way of getting data from external sources onto your nodes. iClassify - https://wiki.hjksolutions.com/display/IC/Home Regards, AJ On 20/01/2009, at 3:53 PM, kevin wrote: > > I've been a bit confused by

[Puppet Users] What is an "external node tool"

2009-01-19 Thread kevin
I've been a bit confused by this terminology: What exactly is such a tool? What purpose does it serve? Are there any examples? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this g

[Puppet Users] Re: NYC Puppet Meetup

2009-01-19 Thread Brian Gupta
Actually, the only user group that is meeting on Feb 3rd is the NYLUG Python Workshop. (That I am aware of). Although I regret even this conflict, please be aware that the reason Larry suggested Feb 3rd is because some folks are visiting from out of town and are leaving the next day. So the only o

[Puppet Users] Re: Puppet playing badly with Debian etch rubygems

2009-01-19 Thread Robin Lee Powell
On Mon, Jan 19, 2009 at 02:08:30PM -0600, Luke Kanies wrote: > > On Jan 16, 2009, at 1:39 PM, Robin Lee Powell wrote: > > > > > To install the ruby-augeas gem, I installed rubygems on Debian etch, > > which lead to: > > > > Setting up libgems-ruby1.8 (0.9.0-5) ... > > Setting up ruby1.8-dev (1.8

[Puppet Users] Re: creating a custom type to replace a line in a file

2009-01-19 Thread chakkerz
HAHA!! it works You the man! I've updated http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating with the code i generated for this (slightly trimmed, but still verbose) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Puppet Users] Re: Checking for a class definition within an ERB file.

2009-01-19 Thread Trevor Vaughan
Should have posted that...0.24.6. I tried pulling it up into Puppet, but it wasn't very clean since I had to do both an 'import foo' and an 'include foo' to get it to see the variables in a module. I'll try 'function_defined' and see what happens. Thanks, Trevor On Mon, Jan 19, 2009 at 16:21,

[Puppet Users] Re: Augeas type proposal; long.

2009-01-19 Thread David Lutterkort
On Sun, 2009-01-18 at 18:37 -0800, Robin Lee Powell wrote: > Let's pretend that there was no alias type in Puppet (just because > it's a file everyone's familiar with). Let's say that I wanted to > set the postmaster alias to f...@bar.com using Augeas. The problem > is, I have no idea what the A

[Puppet Users] Re: Checking for a class definition within an ERB file.

2009-01-19 Thread Andrew Shafer
Trevor, What version of Puppet? You could pull that logic up into Puppet and use 'defined' to set a variable then use that in the template. Or if you have to do it in the template, you should be able to call that same function with 'function_defined' depending on the version of Puppet. You can

[Puppet Users] Re: Fosdem 2009

2009-01-19 Thread Frederic Hornain
HI Paul, Do not know if you are going to be interested nonetheless be aware at the Fedora/CentOS Devroom we are going to have a talk on Augeas and also non official puppet talks. URL : https://fedoraproject.org/wiki/FedoraEvents/FOSDEM/FOSDEM2009 Thanks for your attention. Best Regards Frederic

[Puppet Users] Re: puppet 0.24.4 & missing compiles

2009-01-19 Thread Luke Kanies
On Jan 19, 2009, at 4:40 AM, Christian Hofstaedtler wrote: > > Hello, > > I've got a Puppet installation on 0.24.4 and see missing catalog > compiles for > some clients. Most other puppet clients compile fine and work fine. > > The logs give me this: > > while working fine: > (on the master:) > J

[Puppet Users] Re: More module questions

2009-01-19 Thread Luke Kanies
On Jan 17, 2009, at 4:20 PM, kevin wrote: > > I'm trying to set up something according to the: > > http://reductivelabs.com/trac/puppet/wiki/PuppetBestPractice > > Now, I'm adding the virtual categories for the users, and I'm a bit > confused: > > looking at the above link i see virtual.pp for t

[Puppet Users] Re: puppetshow with puppetmaster 0.24.6

2009-01-19 Thread Luke Kanies
On Jan 16, 2009, at 8:02 PM, jrojas wrote: > Good. I am glad someone else has had the problem. I think I am going > to start beating on this with a hammer until it works :P Please let me know (feel free to ping me personally if I don't respond on the list fast enough) if there's anything I ca

[Puppet Users] Re: Making a variable visible in parent class (scoping)

2009-01-19 Thread Luke Kanies
On Jan 17, 2009, at 12:31 AM, Scott wrote: > > So I need a variable in a child class to be visible to the parent > class and I'm wondering how I can do that? The docs say "You will > almost always find that you can avoid resetting variable values using > the built in conditionals:" but I guess th

[Puppet Users] Re: Certificates were not trusted: certificate verify failed

2009-01-19 Thread Luke Kanies
On Jan 13, 2009, at 8:04 PM, Amos Shapira wrote: > TAKE AWAY from this (and other tackles by puppet problems): PLEASE > make it clear in the log messages where they are coming from and what > they complain about - is this error printed bythe puppet master? the > puppet client? Which host name? Wh

[Puppet Users] Re: desperate for naginator docs

2009-01-19 Thread Luke Kanies
On Jan 16, 2009, at 1:29 PM, Mark Foster wrote: > Where are the naginator docs? > http://reductivelabs.com/trac/puppet/wiki/TypeReference#nagios- > service et al. points to http://reductivelabs.com/trac/naginator in > multiple locations but that page is not helpful whatsoever. There isn't mu

[Puppet Users] Re: Puppet playing badly with Debian etch rubygems

2009-01-19 Thread Luke Kanies
On Jan 16, 2009, at 1:39 PM, Robin Lee Powell wrote: > > To install the ruby-augeas gem, I installed rubygems on Debian etch, > which lead to: > > Setting up libgems-ruby1.8 (0.9.0-5) ... > Setting up ruby1.8-dev (1.8.5-4etch4) ... > Setting up rubygems (0.9.0-5) ... > > Before this (I mean *imme

[Puppet Users] Re: pass "notify" in to a definition

2009-01-19 Thread Luke Kanies
On Jan 16, 2009, at 12:24 AM, Ben Beuchler wrote: > > I have created a define that needs to be able to notify a Service. > Everything I've read seems to indicate that the resources inside the > define should inherit any metaparameters passed into the define. > > See: > http://groups.google.com/

[Puppet Users] Checking for a class definition within an ERB file.

2009-01-19 Thread Trevor Vaughan
Hi all, I've been toying around with this for a little while and find that my ruby-fu is weak. In the Puppet language, I can do the following: if defined(Class["foo"]) { ...do stuff... } How do I do that in an ERB file? I.e. <% if class(foo) then %>do stuff<% end %> Or, is this impossible?

[Puppet Users] Re: NYC Puppet Meetup

2009-01-19 Thread Ajai Khattri
Yeah, let's have it on the day that half a dozen other NY user groups have their meetings shall we? :-) On Thu, Jan 15, 2009 at 10:10 AM, Larry Ludwig wrote: > > Hi All, > > We are wanting to having a Puppet Meetup in NYC on February 3th, 2009, > 6:30 PM. Place to be determined. Baring that m

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Jason Kohles
On Jan 19, 2009, at 12:27 PM, Larry Ludwig wrote: >> What the CPU is doing isn't really relevant, the EC2 machines are >> really just Xen instances, and you pay for every hour (or portion of >> an hour) that the instance is booted, regardless of whether it is >> working or not. > > So it's not ba

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Larry Ludwig
> What the CPU is doing isn't really relevant, the EC2 machines are   > really just Xen instances, and you pay for every hour (or portion of   > an hour) that the instance is booted, regardless of whether it is   > working or not. So it's not based upon CPU/hour, really instance/hour? Forgive me

[Puppet Users] Re: Augeas type proposal; long.

2009-01-19 Thread Robin Lee Powell
On Mon, Jan 19, 2009 at 09:12:25AM -0500, Bryan Kearney wrote: > > Example 2 > > - > > > > Again, working with the aliases file. I want to add an alias from > > "foo" to "b...@baz.com", but obviously I only want to add it once. > > onlyif won't work, but I really don't like the syntax of

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Larry Ludwig
>One major reason to not use gems (or CPAN for Perl), is that it doesn't > play together with the OS packaging system. If an RPM (for example) has > installed a file, gems and CPAN will happily overwrite it, without recording > in the RPM database that the file is now owned by another package. I

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Thomas Bellman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Larry Ludwig wrote: | Why not let Puppet install via ruby's gems? I started down a similar | path with CentOS/RH creating RPMs for gems and felt using the native | 'gem install' was better, especially when using different | architectures (ie i386 an

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Jason Kohles
On Jan 19, 2009, at 10:07 AM, Larry Ludwig wrote: > > Brian Gupta wrote: >> >> Mostly we want the ability, to leverage the micro-accounting EC2 >> offers us. (To lower operational costs). >> >> Since EC2 bills by the hour, wouldn't it be prudent to be able to >> spin >> down idling webservers d

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Larry Ludwig
Brian Gupta wrote: > > Mostly we want the ability, to leverage the micro-accounting EC2 > offers us. (To lower operational costs). > > Since EC2 bills by the hour, wouldn't it be prudent to be able to spin > down idling webservers during the evening, and spin up extra ones when > you know there ar

[Puppet Users] Re: Augeas type proposal; long.

2009-01-19 Thread Bryan Kearney
Robin Lee Powell wrote: > > Just to be clear: I am offering to write what I describe below if it > seems acceptable to others (and if I get the time). > > I love the idea of Augeas, and I love that Puppet has built-in > support for it. However, I'm finding that I'm routinely unable to > do thin

[Puppet Users] Re: Pattern matching in case statement

2009-01-19 Thread Felix Schäfer
Am 19.01.2009 um 13:08 schrieb : > I need my servers to decide which network they are in (i.e. dmz), > and the only clue is the servers IP-address. I was trying to > accomplish it like this, but it doesn’t work: > > case $ipaddress { > "10.1.1.*": { > $network = "net1" >

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Larry Ludwig
> Keep in mind we spin up and down virtual nodes regularly, so that > anything we can do to optimize deployment speed of a full rails stack > is helpful. (When not anything, we are avoiding baking the gems into > our base OS install image). > > Yea obviously in binary form is the fastest. I d

[Puppet Users] Pattern matching in case statement

2009-01-19 Thread sven.thomas
Hi all, I need my servers to decide which network they are in (i.e. dmz), and the only clue is the servers IP-address. I was trying to accomplish it like this, but it doesn't work: case $ipaddress { "10.1.1.*": { $network = "net1" } "10.2.2.*.*": { $netw

[Puppet Users] Re: Using deb package management for gems (was Re: NYC Puppet Meetup)

2009-01-19 Thread Larry Ludwig
Brian Gupta wrote: > On Sun, Jan 18, 2009 at 1:15 PM, Larry Ludwig wrote: > >> >>> Also, I am >>> looking to explore: debgem vs dpkg-tools (Two tools to make deploying >>> gems via Debian packages easier)http://www.debgem.com/ >>> andhttp://reprocessed.org/tags/dpkg-tools >>> >> W

[Puppet Users] puppet 0.24.4 & missing compiles

2009-01-19 Thread Christian Hofstaedtler
Hello, I've got a Puppet installation on 0.24.4 and see missing catalog compiles for some clients. Most other puppet clients compile fine and work fine. The logs give me this: while working fine: (on the master:) Jan 19 05:09:29 puppetmasterd[30489]: Caching node lb01.int.inqnet.at Jan 19 05:09