[Puppet Users] Re: SSL Makes My Brain Bleed

2009-11-25 Thread Paul Lathrop
On Fri, Nov 6, 2009 at 4:49 PM, Paul Lathrop wrote: > Hi guys, > > Really could use some help with the way Puppet uses SSL. In my > environment, I need to have 2 puppetmasters. One of them is > responsible for passing out configurations to production machines, the > second one is responsible for p

[Puppet Users] Weird puppet/foreman behavior

2009-11-25 Thread Martin Englund
I've setup my puppetmaster with passenger & foreman (using external nodes), and I'm seeing something strange: when I run two puppet clients concurrently, the config for first one to run will sometimes be applied to the second. E.g. I'm setting the GCOS field for root to include the hostname, and I

Re: [Puppet Users] Weird puppet/foreman behavior

2009-11-25 Thread Paul Lathrop
You are probably running passenger version 2.2.5 - I ran into this problem as well. See the thread "Serious issue with 0.25.1, at wits end" for the solution. On Wed, Nov 25, 2009 at 2:26 AM, Martin Englund wrote: > I've setup my puppetmaster with passenger & foreman (using external > nodes), and

[Puppet Users] Re: Weird puppet/foreman behavior

2009-11-25 Thread Martin Englund
Paul, On Nov 25, 10:37 am, Paul Lathrop wrote: > You are probably running passenger version 2.2.5 - I ran into this > problem as well. See the thread "Serious issue with 0.25.1, at wits > end" for the solution. > thanks for pointing it out - it looks exactly like my problem! I'll give the fix Chr

Re: [Puppet Users] Re: No format match the given format name or mime-type (b64_zlib_yaml)

2009-11-25 Thread Brice Figureau
On Tue, 2009-11-24 at 18:09 -0600, Dan Bode wrote: > Changing code should not be required, there is a parameter used to > determine the serialization format. Dan, I'm not sure this settings obey to this parameter since this is a wor-around fix for #2668. As I said earlier in the thread this prob

Re: [Puppet Users] are read-only type attributes usable?

2009-11-25 Thread Andrew Schulman
> Thanks for the docs update - the TypeReference is auto-generated from > the Puppet source so I deleted your update from the current wiki and > committed it into the relevant section of the code. When will the wiki page be regenerated? So far it hasn't been, so my edits have vanished. Thanks, A

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread Christopher Johnston
ah! I am still learning ruby here so appreciate the time spent to show me this. Shouldn't this also work to subtract (1) from the integer? Works in a ruby script but not here. 19 <% processorcount.to_i - 1 %> 20 <% for cpu in (0..processorcount.to_i) %> On Mon, Nov 23, 2009 at 9:17 PM, Ohad

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread Peter Meier
> ah! I am still learning ruby here so appreciate the time spent to show me > this. > > Shouldn't this also work to subtract (1) from the integer? Works in a ruby > script but not here. > > 19 <% processorcount.to_i - 1 %> > 20 <% for cpu in (0..processorcount.to_i) %> you mean it still counts u

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread Christopher Johnston
Ignore me, I had a typo. I had put the parentheses around (0..(processorcount.to_i-1) but I forgot the closing ')' -Chris On Wed, Nov 25, 2009 at 11:30 AM, Peter Meier wrote: > > ah! I am still learning ruby here so appreciate the time spent to show > me > > this. > > > > Shouldn't this also

[Puppet Users] Re: SLES 10 client keeps removing and re-adding accounts to groups

2009-11-25 Thread Jason Amato
Using ralsh led me in the right direction, thanks. SLES (SuSE) complains about this and RHEL does not. If I use ' gid => 100' (which points to group unix) and include that same group in the 'groups => ['staff','unix'] ' list, then SLES complains and acts funny. Removing the group 'unix' from th

[Puppet Users] Re: No format match the given format name or mime-type (b64_zlib_yaml)

2009-11-25 Thread Jamie
Hi puppetd --genconfig | grep preferred_serialization_format # preferred_serialization_format = pson above is the same on puppetmaster and client --> I386 AND X86_64 versions rpm -q zlib zlib-1.2.3-3 zlib-1.2.3-3 On Nov 24, 4:09 pm, Dan Bode wrote: > Hi Jamie, > > Changing code should no

[Puppet Users] Re: No format match the given format name or mime-type (b64_zlib_yaml)

2009-11-25 Thread Jamie
Is there a way I can tell if my versions are messed up besides this? I used 0.25.1rc2 for a while, but iirc, I reinstalled the puppetmaster w/ the finished 0.25.1. Maybe I'm wrong? Could that be the problem? puppetmasterd --version 0.25.1 puppetd --version 0.25.1 On Nov 25, 6:04 am, Brice Figur

[Puppet Users] Grouping a set of hosts

2009-11-25 Thread Bob
Hello All, I just joined this group and am not sure this question has been answered before. How do you apply configuration changes to a set of hosts? I know this works, but was looking for a more elegant method. node host1,host2,host3{ include . } Thanks in advance.

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread Ian Ward Comfort
On 23 Nov 2009, at 3:41 PM, Christopher Johnston wrote: > Yes it prints 4 directly into the file, but I cant put > processorcount into the loop. Works fine in ruby but erb fails. > Any ideas here on how to do this? I need to be able to determine > the number of processors on the systems so

[Puppet Users] how do i override/redefine a resource that is declared in another class?

2009-11-25 Thread mark
hi all, newbie here... i've been fiddling around with the inherits form...but..i can't seem to get any headway out of it. i've been googling and looking at some docs, but i think i might still be confused as to how things work. - what i've found seems to talk about overrinding variables $variable,

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread br...@reductivelabs.com
On Mon, Nov 23, 2009 at 3:41 PM, Christopher Johnston wrote: > Yes it prints 4 directly into the file, but I cant put processorcount into > the loop. Works fine in ruby but erb fails. Any ideas here on how to do > this? I need to be able to determine the number of processors on the > systems so

Re: [Puppet Users] Templates and loops..

2009-11-25 Thread Ian Ward Comfort
On 23 Nov 2009, at 7:33 AM, Christopher Johnston wrote: > Its definitely there.. I even put a <%= processorcount %> to make > sure the variable is set. > > <% processorcount.to_i-1 %> > <% for cpu in (0..processorcount) %> Try: <% for cpu in (0 .. processorcount.to_i) %> -- Ian Ward C

[Puppet Users] Puppet custom functions and user permissions

2009-11-25 Thread symfrog
Puppet custom functions and user permissions I am busy writing a custom function to automatically add OSSEC agents to a OSSEC server after installation. Unfortunately, it seems that puppetmasterd is not respecting the entries in /etc/group in linux. No matter how many other groups the puppet user

Re: [Puppet Users] are read-only type attributes usable?

2009-11-25 Thread Peter Meier
>> Thanks for the docs update - the TypeReference is auto-generated from >> the Puppet source so I deleted your update from the current wiki and >> committed it into the relevant section of the code. > > When will the wiki page be regenerated? So far it hasn't been, so my edits > have vanished. T

Re: [Puppet Users] how do i override/redefine a resource that is declared in another class?

2009-11-25 Thread Peter Meier
Hi > i've been fiddling around with the inherits form...but..i can't seem > to get any headway out of it. What is your problem with inheritance? Maybe we can give you a way out and following example shows you that it is the way to go: $ cat foo.pp class a { file{'/tmp/a': ensure => file} file

Re: [Puppet Users] are read-only type attributes usable?

2009-11-25 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Schulman wrote: >> Thanks for the docs update - the TypeReference is auto-generated from >> the Puppet source so I deleted your update from the current wiki and >> committed it into the relevant section of the code. > > When will the wiki page

Re: [Puppet Users] Grouping a set of hosts

2009-11-25 Thread Dan Bode
Hi Bob, Welcome to the puppet forums! How do you apply configuration changes to a set of hosts? > > I know this works, but was looking for a more elegant method. > > node host1,host2,host3{ > > include . > > } > > For

Re: [Puppet Users] Grouping a set of hosts

2009-11-25 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan Bode wrote: > Hi Bob, > > Welcome to the puppet forums! > > > How do you apply configuration changes to a set of hosts? > > I know this works, but was looking for a more elegant method. > > node host1,host2,host3{ > >

Re: [Puppet Users] Grouping a set of hosts

2009-11-25 Thread LOhit
Hi Dan, Thanks for the pointers. Coincidentally, I stumbled upon "foreman" last night while googling for "external nodes configuration". Best regards, -Bob On Thu, Nov 26, 2009 at 3:47 AM, Dan Bode wrote: > Hi Bob, > > Welcome to the puppet forums! > > > How do you apply configuration changes

[Puppet Users] Selectors

2009-11-25 Thread Douglas Garstang
The docs at http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial say: file { "/etc/config": owner => $operatingsystem ? { "sunos" => "adm", "redhat" => "bin", default => undef, }, } I have this.. file { "home_dirs": name => $domain