[Puppet Users] Re: facter identifies Oracle Linux 6.1 as 'RedHat'

2011-08-23 Thread Avi Miller
Hi, On Aug 23, 8:58 am, Jeffrey wrote: > Noticed today that facter-1.6.0 is reporting Oracle Linux 6.1 as > "RedHat". I've added an issue for this on the Puppet Labs site[1] and submitted a patch via GitHub to determine OracleLinux properly from 5 Update 6 and 6. This adds "OracleLinux" as an op

Re: [Puppet Users] property file provider

2011-08-23 Thread Stefan Schulte
On Tue, Aug 23, 2011 at 05:47:07PM -0400, David Kavanagh wrote: > yes, That's actually does. I wasn't finding much to read about this. > > David Maybe http://www.ruby-doc.org/docs/ProgrammingRuby/html/language.html#UN -Stefan pgppZP1OBsrlU.pgp Description: PGP signature

Re: [Puppet Users] Difference between include and require

2011-08-23 Thread Douglas Garstang
Yes... that's what I had On Tue, Aug 23, 2011 at 10:53 AM, David Kavanagh wrote: > It seems there's a problem including a class multiple times. By > stating that one class requires another, you formalize the dependency, > but don't actually have an include. What you do then is to include the

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
yes, That's actually does. I wasn't finding much to read about this. David On Tue, Aug 23, 2011 at 5:12 PM, Stefan Schulte wrote: > On Tue, Aug 23, 2011 at 04:27:30PM -0400, David Kavanagh wrote: >> I understand regular expressions. been doing them a long time in >> various languages. But, how a

[Puppet Users] Re: Host timeouts.

2011-08-23 Thread Charlie Wyse
Oops, sorry, I moved this message over to mcollective users google groups. On Aug 23, 1:55 pm, Charlie Wyse wrote: > When I try to use mcollective to restart some jboss servers that take > a bit of time we get a timeout fail shown below.  We are using the mc- > shellcmd plugin which does have a t

Re: [Puppet Users] property file provider

2011-08-23 Thread Stefan Schulte
On Tue, Aug 23, 2011 at 04:27:30PM -0400, David Kavanagh wrote: > I understand regular expressions. been doing them a long time in > various languages. But, how are the fields determined from this regex? > > David > You have to put everything you want to capture in parentheses, so /^Hello (.*

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
Like a charm! What designates the fields in the regex? I'm having trouble finding documentation on that part. David On Tue, Aug 23, 2011 at 4:59 PM, Stefan Schulte wrote: > On Tue, Aug 23, 2011 at 04:19:40PM -0400, David Kavanagh wrote: >> for reference, here's how the regex matches the trailing

Re: [Puppet Users] property file provider

2011-08-23 Thread Stefan Schulte
On Tue, Aug 23, 2011 at 04:19:40PM -0400, David Kavanagh wrote: > for reference, here's how the regex matches the trailing comment; > http://rubular.com/r/vJUtBWpB6J > Yes, rubular shows all fields but the last field is in fact nil and not an empty string. Try to replace str += " # #{hash[:com

[Puppet Users] Host timeouts.

2011-08-23 Thread Charlie Wyse
When I try to use mcollective to restart some jboss servers that take a bit of time we get a timeout fail shown below. We are using the mc- shellcmd plugin which does have a timeout of 300 listed in the rb but we move that around and it seems to do no good. Is there a default timeout variable we

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
I understand regular expressions. been doing them a long time in various languages. But, how are the fields determined from this regex? David On Tue, Aug 23, 2011 at 4:19 PM, David Kavanagh wrote: > for reference, here's how the regex matches the trailing comment; > http://rubular.com/r/vJUtBWpB

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
for reference, here's how the regex matches the trailing comment; http://rubular.com/r/vJUtBWpB6J On Tue, Aug 23, 2011 at 4:17 PM, David Kavanagh wrote: > Hi Stefan, > I have it working using your suggestions (I took out my hacks). I > adjusted the match regex to match the quotes in the value po

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
Hi Stefan, I have it working using your suggestions (I took out my hacks). I adjusted the match regex to match the quotes in the value portion. Otherwise, I kept getting more quotes added in each time the file was processed. The only glitch now is that it always thinks there's a comment, so even if

[Puppet Users] Re: Dynamic lookup of $var

2011-08-23 Thread jblaine
Same here, Chuck. Updated the issue. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/CyGTQlF3kJUJ. To post to this group, send email to puppet-users@google

[Puppet Users] 2.7.1 slowness?

2011-08-23 Thread Digant C Kasundra
Is anyone else noticing slowness with 2.7.1? When I run puppet on my 2.6.8 box, it takes 11 seconds. On my second box with exactly the same catalog, it takes 35 seconds. -- Digant C Kasundra Infrastructure Systems Software Developer, ITS:IDG, Stanford University -- You received this messag

[Puppet Users] Parameterized classes vs defined-types

2011-08-23 Thread Digant C Kasundra
Out of curiosity, how are people using parameterized classes in a way that is distinct from defined-types? -- Digant C Kasundra Infrastructure Systems Software Developer, ITS:IDG, Stanford University -- You received this message because you are subscribed to the Google Groups "Puppet Users"

Re: [Puppet Users] Difference between include and require

2011-08-23 Thread David Kavanagh
It seems there's a problem including a class multiple times. By stating that one class requires another, you formalize the dependency, but don't actually have an include. What you do then is to include the class in your main implementation which uses that class. That way, if you have several classe

[Puppet Users] Difference between include and require

2011-08-23 Thread Douglas Garstang
Can someone please succinctly explain to me the difference between include and require? The documentation implies that simply putting 'require ' at the top of a different class automatically means that is fully implemented as a dependency. However, it doesn't seem to work that way. Also, I'm not

Re: [Puppet Users] Allow node to request a class/module?

2011-08-23 Thread Daniel Pittman
On Tue, Aug 23, 2011 at 07:26, jblaine wrote: > We have a need for nodes to specify a class to be included in their catalog. > What's the best (?) way to do this?  Best I can tell, we'd have to customize > the Facter facts reported by the node to the master. You got it in one: report whatever pr

Re: [Puppet Users] Resource Defaults and Virtual Resources

2011-08-23 Thread Nan Liu
On Tue, Aug 23, 2011 at 7:34 AM, Vincent wrote: > Hello, > > I am trying to set a defaults groups before realize virtual resource > (user) > The default value is not used, > is it possible to define the default groups at this level ? > > > User { groups => 'ops' } >    realize( >        User["vinc

Re: [Puppet Users] property file provider

2011-08-23 Thread Stefan Schulte
On Tue, Aug 23, 2011 at 10:32:54AM -0400, David Kavanagh wrote: > I did get this working. In a nutshell, I modified to_line like this; > def self.to_line(hash) > return super unless hash[:record_type] == :parsed > "#{hash[:name]}=#{hash[:value]}" > end As I said, I wouldn't to that. Ju

[Puppet Users] Resource Defaults and Virtual Resources

2011-08-23 Thread Vincent
Hello, I am trying to set a defaults groups before realize virtual resource (user) The default value is not used, is it possible to define the default groups at this level ? User { groups => 'ops' } realize( User["vincent"], .. -- You received this message because you are subscrib

Re: [Puppet Users] property file provider

2011-08-23 Thread David Kavanagh
I did get this working. In a nutshell, I modified to_line like this; def self.to_line(hash) return super unless hash[:record_type] == :parsed "#{hash[:name]}=#{hash[:value]}" end which handles the other line types. To handle wrapping values in quotes, I changed the type like this; ne

[Puppet Users] Re: err: Could not run Puppet configuration client: execution expired

2011-08-23 Thread jblaine
Sadly, Steven, I ran into this same exact problem in Puppet. Your solution won't be found in changing to a different server setup (webrick to Passenger, for instance). I've tested both with a large number of files and they both fall on their face. Puppet simply is not capable of serving large

[Puppet Users] Allow node to request a class/module?

2011-08-23 Thread jblaine
We have a need for nodes to specify a class to be included in their catalog. What's the best (?) way to do this? Best I can tell, we'd have to customize the Facter facts reported by the node to the master. -- You received this message because you are subscribed to the Google Groups "Puppet Use

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

2011-08-23 Thread Ohad Levy
On Tue, Aug 23, 2011 at 3:09 AM, puppetlurker wrote: > This looks promising! I should be able to create a fact on some > servers, then collect those servers in a template. I'm going to > upgrade to test this out. > > Another option, just in case you dont want to upgrade your puppet installation /

[Puppet Users] Re: exported resources and templating

2011-08-23 Thread puppetlurker
Nevermind, I found it: http://projects.puppetlabs.com/projects/puppet/wiki/Generating_a_config_file_from_fragments On Aug 23, 9:21 am, jcbollinger wrote: > On Aug 22, 8:11 am, puppetlurker wrote: > > > > > > > > > > > Greetings, > > > I'm having an issue with my implementation of exported res

[Puppet Users] Re: exported resources and templating

2011-08-23 Thread puppetlurker
On Aug 23, 9:21 am, jcbollinger wrote: > The way to do this with exported resources is for each node to export > a resource containing its own information only.  The trick is choosing > the resource to use for this. > > The simplest case would be if "/etc/php.d/memcache.ini" supports some > kin

[Puppet Users] Re: exported resources and templating

2011-08-23 Thread puppetlurker
Hmmm. I upgraded, but when running a test I get: /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- puppet/rails/resources (MissingSourceFile) # puppet help hostname err: no such file to load -- puppet/rails/resources There are: /usr/li

[Puppet Users] Re: Breaking operations on errors

2011-08-23 Thread jcbollinger
On Aug 22, 9:28 am, Brian Troutwine wrote: > On Mon, Aug 22, 2011 at 10:11 AM, jcbollinger > wrote: > > > > > > > > > On Aug 19, 7:30 pm, Brian Troutwine wrote: > > > Hello, all. > > > > Let's say I am building a super-weapon robot to destroy the world, save > > for > > > the people on a white

[Puppet Users] Re: exported resources and templating

2011-08-23 Thread jcbollinger
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 of all the servers. Previously, I hard coded > the $memcacheservers array in

[Puppet Users] Re: Multiple swap spaces

2011-08-23 Thread jcbollinger
On Aug 22, 12:12 pm, Stefan Schulte wrote: > Whenever you have the wrong device for a mount in your fstab you end up > with mounts in mounts. For me this would happens a lot for nfs mounts where > some machines are configured with hostname:/share and others with > hostname.domain.tld:/share > >

[Puppet Users] Re: Multiple swap spaces

2011-08-23 Thread jcbollinger
On Aug 22, 11:46 am, Stefan Schulte wrote: > On Mon, Aug 22, 2011 at 08:19:35AM -0700, jcbollinger wrote: > > > On Aug 21, 2:56 pm, Brian Troutwine wrote: [...] > > > Problem is that mount conflates the name of the > > > resource with it's mount path; I'm defining the same thing two ways ea

Re: [Puppet Users] Circular RPM dependencies...

2011-08-23 Thread Jakov Sosic
On 08/22/2011 06:29 PM, Mike Lococo wrote: > This is a long-standing bug, and one that I consider fairly major but > has been hard to get puppetlabs focused on. > > - The circular deps bug was reported 2 years ago. > http://projects.puppetlabs.com/issues/1935 > - A few months later a patch is s