Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
On 02.12.2009 18:27, Peter Meier wrote: >> What do you mean by once? It's slow? Or some other reason? >> I need to get the first item, then the second, and if the second is not >> there pass the first. >> (ip_list is a custom fact that lists the machines ip addresses sorted, >> except 127.0.0.1) >>

Re: [Puppet Users] manitest - a simple tool to help your puppet development and testing

2009-12-02 Thread Scott Smith
Paul Nasrat wrote: > translation stuff but really I'd say if you have a complex multi-arch > setup you should ensure you have "development" and "test" systems for > your systems people to work on and that can integrate with manifest > testing tools. > Good point. What about easily spinning up inst

Re: [Puppet Users] Could not retrieve catalog

2009-12-02 Thread James Turnbull
Luv Linux wrote: > I'm running puppet for the first ime. I've finished the install but > I'm stuck at the certificate part. > The puppet master (0.24.4-3) is running on Ubuntu Lenny and the puppet > client (0.24.8-4.el5) is running on CentOS 5.3. Not a good idea to have clients with a later versi

[Puppet Users] Could not retrieve catalog

2009-12-02 Thread Luv Linux
Hello all, I'm running puppet for the first ime. I've finished the install but I'm stuck at the certificate part. The puppet master (0.24.4-3) is running on Ubuntu Lenny and the puppet client (0.24.8-4.el5) is running on CentOS 5.3. After the install, from the client side, I've run: puppetd --ser

Re: [Puppet Users] Managing parameters with External Nodes

2009-12-02 Thread Ohad Levy
+1 for foreman ;) generally, external nodes parameters can be complex data structures (e.g. arrays and hashs) but you should know what you are doing ;) one solution would be to define variables in difference levels, e.g. put your dns settings in the domain/subnet level, put your ipaddress in the

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread Luke Kanies
On Dec 2, 2009, at 11:51 AM, Andrew Schulman wrote: >>> It takes a really long time for >>> http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. >>> I've >>> noticed it for a while, but today for the first time it actually >>> timed out >>> on me. >> >> We're in the process of moving

[Puppet Users] unwanted flattening of arrays

2009-12-02 Thread Kjetil Torgrim Homme
if you do $var = [[1,2,3], [4,5,6]] $var will be set to [1,2,3,4,5,6]. you can observe this with a template like <% var.each do |el| -%> array element: <%= el %> <% end -%> on the other hand, $a = [1,2,3] $b = [4,5,6] $var = [$a, $b] will preserve the arrays within the array, w

Re: [Puppet Users] manitest - a simple tool to help your puppet development and testing

2009-12-02 Thread Paul Nasrat
2009/12/2 Scott Smith : > Ohad Levy wrote: >> Hi Scott, >> >> I don't see how this can help us, see explanation from previous email :) >> Ohad >> > > Yeah :) I guess I was just alluding to the idea of using a chrooted jail > that emulated another arch. :) Mock can pretty much only do setarch so th

[Puppet Users] problems with async storeconfigs

2009-12-02 Thread Matthew Delves
I've managed to get async storeconfigs going on the puppet server, though am finding that it isn't updating the nagios configuration that I also have configured. Is this an expected behavior of async storeconfigs? Thanks, Matt Delves -- You received this message because you are subscribed to t

Re: [Puppet Users] manitest - a simple tool to help your puppet development and testing

2009-12-02 Thread Scott Smith
Ohad Levy wrote: > Hi Scott, > > I don't see how this can help us, see explanation from previous email :) > Ohad > Yeah :) I guess I was just alluding to the idea of using a chrooted jail that emulated another arch. :) -scott -- You received this message because you are subscribed to the Goo

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread Andrew Schulman
> >> If someone wants to edit those docs for now to do exactly that, that > >> might be a good interim step, while we're waiting for Bruce's work to > >> come through. > > > > OK. If there's no objection I'll do it. > > I've done it: > > http://reductivelabs.com/trac/puppet/wiki/TypeReferen

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Schulman wrote: >>> It takes a really long time for >>> http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. >>> I've >>> noticed it for a while, but today for the first time it actually >>> timed out >>> on me. >> We're in th

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread Andrew Schulman
> > It takes a really long time for > > http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. > > I've > > noticed it for a while, but today for the first time it actually > > timed out > > on me. > > We're in the process of moving these pages to a static, external > format, ba

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread R.I.Pienaar
hello, - "Luke Kanies" wrote: > On Dec 2, 2009, at 11:12 AM, Andrew Schulman wrote: > > > It takes a really long time for > > http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. > > > I've > > noticed it for a while, but today for the first time it actually > > timed out

Re: [Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread Luke Kanies
On Dec 2, 2009, at 11:12 AM, Andrew Schulman wrote: > It takes a really long time for > http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. > I've > noticed it for a while, but today for the first time it actually > timed out > on me. > > Any idea what's making this page take s

[Puppet Users] /wiki/TypeReference is slow/timing out

2009-12-02 Thread Andrew Schulman
It takes a really long time for http://reductivelabs.com/trac/puppet/wiki/TypeReference to render. I've noticed it for a while, but today for the first time it actually timed out on me. Any idea what's making this page take so long? Is it just too much restructured text? It is a very long page.

[Puppet Users] Managing parameters with External Nodes

2009-12-02 Thread jw2dot...@gmail.com
There's been off-and-on discussion on this list about external nodes, and it's provided a lot if insight as to how others are using this feature. We're trying to move toward it, but struggling with how to manage all the parameters that we use in our node manifests today. All of our modules and ma

[Puppet Users] Service Type Question

2009-12-02 Thread Christopher Johnston
When the service type runs, is it possible to have it forceful shutdown a service if the process name does not match the pattern? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com.

Re: [Puppet Users] puppetmaster SQL failing

2009-12-02 Thread Eric Gerlach
I already thanked Ohad on IRC, but wanted to let the annals of history know that he was right. Cheers, Eric On Wed, Dec 02, 2009 at 09:23:09AM +0800, Ohad Levy wrote: > Which version of rails are you using? I kind of remember an issue with 2.1 > and multiple connections > > Ohad > > On Wed, De

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Peter Meier
> What do you mean by once? It's slow? Or some other reason? > I need to get the first item, then the second, and if the second is not > there pass the first. > (ip_list is a custom fact that lists the machines ip addresses sorted, > except 127.0.0.1) if you already have custom facts, why not do t

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Thomas Bellman
Silviu Paragina wrote: > On 02.12.2009 17:39, Thomas Bellman wrote: >> If you only need it once, you can abuse inline_template() to do it: >> >> $ip_list_arr = split($ip_list, ",") >> $ip_external = inline_template("<%= ip_list_arr[0] %>") > What do you mean by once? It's slow? Or so

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
On 02.12.2009 17:39, Thomas Bellman wrote: > Silviu Paragina wrote: > > >> Are there any such things? For example >> $ip_list_arr=split(ip_list,",") >> $ip_external=*$ip_list_arr[0]* >> >> Or the only way to do it, is via custom functions? >> I think I read something like this before, but can't

Re: [Puppet Users] Array [int] accessors?

2009-12-02 Thread Thomas Bellman
Silviu Paragina wrote: > Are there any such things? For example > $ip_list_arr=split(ip_list,",") > $ip_external=*$ip_list_arr[0]* > > Or the only way to do it, is via custom functions? > I think I read something like this before, but can't remember where or > if it was with a custom function or

Re: [Puppet Users] manitest - a simple tool to help your puppet development and testing

2009-12-02 Thread Ohad Levy
On Wed, Dec 2, 2009 at 2:47 AM, Nigel Kersten wrote: > > Ohad, I noticed you have /etc/puppet/manifests/site.pp hard-wired > there. We actually serve our manifests out of a different location, so > I had to do a minor tweak to get that working. > latest code allow you to tweak it via a command li

[Puppet Users] Array [int] accessors?

2009-12-02 Thread Silviu Paragina
Are there any such things? For example $ip_list_arr=split(ip_list,",") $ip_external=*$ip_list_arr[0]* Or the only way to do it, is via custom functions? I think I read something like this before, but can't remember where or if it was with a custom function or not. Silviu -- You received this

[Puppet Users] Re: Want to add AIX lpars as Puppet targets (clients)

2009-12-02 Thread Andrew Forgue
I compiled my own Ruby (1.8.7p72), Facter (1.5.7), and my own Puppet in BFF format with GCC on AIX 5.3 TL 9 (won't work on earlier AIX). I can make these files available if you want, or I can supply you with the templates used in mkinstallp. Take a look at http://reductivelabs.com/trac/puppet/wik