Re: [Puppet Users] ldap node attributes containing dash ( - )

2010-05-06 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I don't think that ruby itself allows variables with dashes in the name since it will probably interpret them as minus signs and try to interpret the variables around the symbol. Trevor On 05/06/2010 07:31 PM, donavan wrote: > Am I missing some cleve

Re: [Puppet Users] Re: mcollective scalability

2010-05-06 Thread Eric Shamow
Matt, Really great posts -- you've inspired me to take a crack at MCollective. -Eric On Thu, May 6, 2010 at 4:11 AM, Matt Wallace wrote: > On Wed, 2010-05-05 at 23:31 -0700, donavan wrote: >> > 2000 nodes certainly is within my goals with the design, that said there >> > has not been such a b

[Puppet Users] ldap node attributes containing dash ( - )

2010-05-06 Thread donavan
Am I missing some clever way to use variables containing a dash in the name? We're using LDAP nodes I may have a node like this example: dn: cn=ns01.domain.com,cn=machines,o=domain cn: ns01.domain.com objectClass: top objectClass: puppetClient ipHostNumber: 192.201.112.90 parentnode: basenode-wit

Re: [Puppet Users] Re: Introducing Scaffold

2010-05-06 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/05/10 2:30 AM, Ken wrote: > Nice one James - we (people I work with) had discussed a tool just > like this on the weekend - so your timing is eerie :-). I hope for > your sake your not psychic and reading my mind ... > I'm not - merely a sign of

[Puppet Users] Best practices for puppet-proxys

2010-05-06 Thread Thomas von Steiger
Hi, I think about whats the best solution to have puppet-proxys for systems without direct connection to the puppetmaster. - Route all the trafic with iptable forwarding to one puppetmaster. - Build puppetmaster-proxy vm's installed from a puppetmaster. - Using http-proxy services. Are there any

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Michael DeHaan
On Thu, May 6, 2010 at 5:21 PM, Michael DeHaan wrote: >> I am working on an EC2 type/provider, here is an example of its usage: >> >> noder{'blah': >>   ensure => present, >>   user => 'user', >>   password => 'password', >>   image => 'ami-84db39ed', >>   desc => 'happy instance', >> } >> > > you

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Michael DeHaan
> I am working on an EC2 type/provider, here is an example of its usage: > > noder{'blah': >   ensure => present, >   user => 'user', >   password => 'password', >   image => 'ami-84db39ed', >   desc => 'happy instance', > } > your noder example looks good ... you could add a virt_type and not use

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Dan Bode
On Thu, May 6, 2010 at 1:54 PM, Michael DeHaan wrote: > On Thu, May 6, 2010 at 2:50 PM, Dan Bode wrote: > > Hi Carla, > > > > I am currently working on a "noder" type that I will use to model cloud > > provisioning with puppet. It would be nice if we could use the same type > > specification. Let

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Michael DeHaan
On Thu, May 6, 2010 at 4:54 PM, Michael DeHaan wrote: > On Thu, May 6, 2010 at 2:50 PM, Dan Bode wrote: >> Hi Carla, >> >> I am currently working on a "noder" type that I will use to model cloud >> provisioning with puppet. It would be nice if we could use the same type >> specification. Let me g

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Michael DeHaan
On Thu, May 6, 2010 at 2:50 PM, Dan Bode wrote: > Hi Carla, > > I am currently working on a "noder" type that I will use to model cloud > provisioning with puppet. It would be nice if we could use the same type > specification. Let me get what I have checked in to github so you can at > least have

[Puppet Users] Custom Type fails with "No namevar for..."

2010-05-06 Thread Andreas Schäfer
Hi, I'm trying to create a custom type for Puppet 0.25.4. The type is located in a custom module and looks like this: gent...@rei ~/puppet-gentryx $ cat modules/gentoo_useflags/lib/puppet/type/useflag.rb module Puppet newtype(:useflag) do newparam(:name) do desc "Foo Bar" isnam

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Carla Araujo
Hello Dan, On Thu, May 6, 2010 at 3:50 PM, Dan Bode wrote: > Hi Carla, > > I am currently working on a "noder" type that I will use to model cloud > provisioning with puppet. It would be nice if we could use the same type > specification. Let me get what I have checked in to github so you can at

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Dan Bode
Hi Carla, I am currently working on a "noder" type that I will use to model cloud provisioning with puppet. It would be nice if we could use the same type specification. Let me get what I have checked in to github so you can at least have a peek at the specification. Also, here is a primitive exa

Re: [Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Carla Araujo
Hi! On Thu, May 6, 2010 at 3:17 PM, Marc Fournier wrote: > > Cool, I'm looking forward to check out your work ! > > Just wondering if there are plans to use libvirt, which supports > much more systems than just xen and kvm ? It even seems to have ruby > bindings. > > Marc Yes, I will use libvir

[Puppet Users] Re: Managing producton & backup datacenter

2010-05-06 Thread donavan
> Can you please explain this method a bit more, for the > unexperienced like me? > > Showing the actual code would be great, if it's possible. Sure, I assume you mean the exported resource part. Using storeconfigs[1] it's possible to exchange information between nodes. Brice has some great explan

[Puppet Users] Re: GSoC - Introducing myself

2010-05-06 Thread Marc Fournier
Hello, > My name is Carla, and I am one of Google Summer of Code 2010 students > selected to work on Puppet this summer. My proposal is to develop > types for management of virtual machines, initially focus on Xen and > KVM. Cool, I'm looking forward to check out your work ! Just wondering if th

Re: [Puppet Users] List of available variables for use in templates

2010-05-06 Thread Ed Greenberg
On 05/06/2010 10:26 AM, Michael DeHaan wrote: On Wed, May 5, 2010 at 5:07 PM, Ed Greenberg wrote: When writing an ERB template, I know that I can define variables in my nodes and classes, and that the facter variables for the node are available. I'd like to know if there are any other pred

Re: [Puppet Users] custom facts run three times?

2010-05-06 Thread Michael DeHaan
Yeah, that's not so efficient. Please file a bug on this one! On Thu, May 6, 2010 at 12:19 PM, Dan Carley wrote: > On 6 May 2010 17:05, Joe McDonagh wrote: >> >> I have this similar issue- I notice the "loading facts in " message >> twice when running puppet. > > Likewise - printed twice. I

[Puppet Users] Re: Introducing Scaffold

2010-05-06 Thread Ken
Nice one James - we (people I work with) had discussed a tool just like this on the weekend - so your timing is eerie :-). I hope for your sake your not psychic and reading my mind ... 2 things dude ... I'm sure they are obvious and you've thought of them already. * I notice your shipping a templ

Re: [Puppet Users] custom facts run three times?

2010-05-06 Thread Dan Carley
On 6 May 2010 17:05, Joe McDonagh wrote: > > I have this similar issue- I notice the "loading facts in " message > twice when running puppet. Likewise - printed twice. It's been low on my priority list because it doesn't seem to have any negative effect, but since you mention it. Facter 1.5

Re: [Puppet Users] custom facts run three times?

2010-05-06 Thread Joe McDonagh
On 05/06/2010 11:37 AM, Michael DeHaan wrote: On Mon, May 3, 2010 at 4:32 PM, Marcus, Allan B wrote: I put a puts "running my fact" into a custom fact. Then I run puppetd from a client in debug mode. I see the "running my fact" three times. Does this mean that the custome fact code is

Re: [Puppet Users] Issue with naginator and elusive nagios cfg file corruption (#3712)

2010-05-06 Thread Joe McDonagh
On 05/04/2010 04:38 PM, Joe McDonagh wrote: On 05/04/2010 03:00 PM, David Schmitt wrote: Am 03.05.2010 21:33, schrieb Joe McDonagh: Hello, I have run into a data corruption problem with naginator that is fairly difficult for me to track down. Hand-written configurations do not suffer from this

[Puppet Users] Freebsd package provider

2010-05-06 Thread ross
I just realized I should've posted here instead of on the puppet-dev list to get people to test this out. I've re-written the freebsd package provider for puppet so that it supports updates and ensure => latest, so if anyone has a freebsd machine they're willing to test on, that would be awesome.

Re: [Puppet Users] custom facts run three times?

2010-05-06 Thread Michael DeHaan
On Mon, May 3, 2010 at 4:32 PM, Marcus, Allan B wrote: > I put a >   puts "running my fact" > into a custom fact. Then I run puppetd from a client in debug mode. I see the > "running my fact" three times. Does this mean that the custome fact code is > executing three times on the client every ti

Re: [Puppet Users] Re: puppet for switches

2010-05-06 Thread Michael DeHaan
On Wed, May 5, 2010 at 8:53 PM, Geoff Crompton wrote: > seph wrote: >> >> Geoff Crompton writes: >> >>> This might be a crazy idea, but it just popped into my head, and I >>> wanted to know if it's possible. Perhaps not possible right now, but >>> possible in a theoretical sense. >>> >>> Is it po

Re: [Puppet Users] Pre-sign "offline" servers?

2010-05-06 Thread Patrick
This looks like http://groups.google.com/group/puppet-users/browse_thread/thread/d31811e3d9f883f4/348e4f48a7fd66e1 to me. On May 6, 2010, at 6:46 AM, Phillip B Oldham wrote: > How can I pre-sign a server which doesn't yet have a domain pointing > to it? > > I'm trying to get an EC2 "base im

Re: [Puppet Users] determine whether host responds to an IP address

2010-05-06 Thread Michael DeHaan
On Wed, May 5, 2010 at 2:38 PM, Casey Feskens wrote: > Hey folks, > > I'm looking for a best practice for determining whether a host has a > specific IP address configured on it, in order to make puppet configuration > decisions.  I know there are a list of facts for each interface with an > assoc

Re: [Puppet Users] List of available variables for use in templates

2010-05-06 Thread Michael DeHaan
On Wed, May 5, 2010 at 5:07 PM, Ed Greenberg wrote: > When writing an ERB template, I know that I can define variables in my nodes > and classes, and that the facter variables for the node are available. > > I'd like to know if there are any other predefined puppet variables > available. In specif

[Puppet Users] Re: Pre-sign "offline" servers?

2010-05-06 Thread Phillip B Oldham
Should probably mention: Master is a CentOS 5.2 box running puppet 0.25.4, not running inside EC2. Client is a CentOS 5.4 box also running puppet 0.25.4, EC2 instance. Puppet has been installed from yum on both machines, and both are "clean". -- You received this message because you are subscri

[Puppet Users] Pre-sign "offline" servers?

2010-05-06 Thread Phillip B Oldham
How can I pre-sign a server which doesn't yet have a domain pointing to it? I'm trying to get an EC2 "base image" together which is pre-signed with our master, so I can spin-up as many instances as required. These instances which will all share the same characteristics and files (they're basically

[Puppet Users] External CA management

2010-05-06 Thread piir D.K
Hello, I'm tryning to have puppet working whitout handling any part of a pki. On one side I've got a puppet installation working, on the other side a PKI.(dogtag) I try to tell puppetmasterd to use my CA.crt and an already functionning cert, but at launch time it still generates his own certifica

[Puppet Users] Re: Puppet manifests under version control issue

2010-05-06 Thread Maxim Ianoglo
Hello, I found my issue. I should export the PATH variable - not just define it: export PATH='/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/ bin:/sbin:/ and now it works Thank you. -- Maxim Ianoglo -- You received this message because you are subscribed to the Google Groups "Puppet Us

RE: [Puppet Users] Introducing Scaffold

2010-05-06 Thread Gabriel - IP Guys
I have *JUST* finished setting up my puppet basics, I have about 15 servers that I was going to use to test. If you require someone to work with on testing scaffold, then feel free to get to me, and we can discuss my setup, and the things you wish to test. I think it might be a good idea that I *d

Re: [Puppet Users] Re: Managing producton & backup datacenter

2010-05-06 Thread Cosimo Streppone
On Thu, 06 May 2010 08:54:51 +0200, donavan wrote: > But for more sophisticated puppet setups - what are your ways to determine > which environment you are in. I wrote a custom fact, location, that embeds all the logic in a tiny bit of custom Ruby. (In fact, it just grabs the hostname, do

Re: [Puppet Users] Re: mcollective scalability

2010-05-06 Thread Matt Wallace
On Wed, 2010-05-05 at 23:31 -0700, donavan wrote: > > 2000 nodes certainly is within my goals with the design, that said there > > has not been such a big deploy. > > We've got 500+ nodes on mcollective currently. Nothing special as far > as setup, a few of the contrib agents and few more in hous

Re: [Puppet Users] node inheritance, variable scope, and pain.

2010-05-06 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I suspect we will turn 'node default' into 'class default', then include that > rather than inheriting that, since that does fix the scope issue. this is imho the way to go if you don't want to switch over to an external node tool. For each node I