[Puppet-dev] Re: Inheritance and Resource Overrides

2009-02-16 Thread Paul Lathrop
On Mon, Feb 16, 2009 at 7:53 AM, Luke Kanies wrote: > It makes sense, I'm just concerned about the repercussions. Is it > unreasonable for people to want to override a given parameter more > than once? Yes, if it happens outside of a class hierarchy. > I'm torn here, because I agree that the i

[Puppet-dev] ANNOUNCE: Facter 1.5.4

2009-02-16 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A new Facter release is available - 1.5.4. This is a maintenance release that will be the last of the 1.5.x branch. It combines a number of fixes, a new fact - physicalprocessorcount, and support for flavours of Oracle Linux. Full list of change

[Puppet-dev] Re: Facter - the future REDUX

2009-02-16 Thread Luke Kanies
On Feb 16, 2009, at 6:03 PM, Paul Nasrat wrote: > >> Based on our discussions from our last dev call, I think the branch >> should instead be called 'next', rather than '1.anything'. > > Indeed. > >> I'll make and publish such a branch right now. > > Thanks I'll start going over the tickets and g

[Puppet-dev] Re: Facter - the future REDUX

2009-02-16 Thread Paul Nasrat
> Based on our discussions from our last dev call, I think the branch > should instead be called 'next', rather than '1.anything'. Indeed. > I'll make and publish such a branch right now. Thanks I'll start going over the tickets and generating new ones shortly after (maybe tomorrow) Paul --~-

[Puppet-dev] Re: Facter - the future REDUX

2009-02-16 Thread Luke Kanies
On Feb 16, 2009, at 5:53 PM, Paul Nasrat wrote: > >> I would maybe describe this as 'setting TTL on fact values' or >> something similar -- the TTL is the critical bit, since we're already >> caching values. > > Yeah. > >> That seems to be it. Let us know when you're done. :) > > Will start when

[Puppet-dev] Re: Facter - the future REDUX

2009-02-16 Thread Paul Nasrat
> I would maybe describe this as 'setting TTL on fact values' or > something similar -- the TTL is the critical bit, since we're already > caching values. Yeah. > That seems to be it. Let us know when you're done. :) Will start when I can see 1.9.x branch in say github.com/reductivelabs/facter

[Puppet-dev] Re: Facter - the future REDUX

2009-02-16 Thread Luke Kanies
On Feb 16, 2009, at 1:35 PM, Paul Nasrat wrote: > > I've tried to capture all the key features I've seen in this thread > below to eventually translate into feature requests/stories: > > * Namespaces > * Hierachical grouping > * Collapsing information for coarse grained logic (has_interface?) > *

[Puppet-dev] Re: Inheritance and Resource Overrides

2009-02-16 Thread Russ Allbery
Luke Kanies writes: > I'm torn here, because I agree that the inheritance system has gotten in > the way too often, but I'm not sure that just removing the concept of > inheritance is the correct move. > > Anyone else have any opinions about this? Anyone see other ways to > reduce the complexit

[Puppet-dev] Re: [PATCH 1/1] Ensure puppetmasterd integration tests run locally

2009-02-16 Thread Luke Kanies
On Feb 16, 2009, at 1:12 PM, Paul Nasrat wrote: > > 2009/2/16 Luke Kanies : >> >> Are these changes to ENV done in the same process or in a subprocess >> after a fork? >> >> If they're they same process, they should probably clean the value up >> to its previous value. > > The patch does that by

[Puppet-dev] Facter - the future REDUX

2009-02-16 Thread Paul Nasrat
I've tried to capture all the key features I've seen in this thread below to eventually translate into feature requests/stories: * Namespaces * Hierachical grouping * Collapsing information for coarse grained logic (has_interface?) * External fact loading mechanisms (note I think these depend o

[Puppet-dev] Re: [PATCH 1/1] Ensure puppetmasterd integration tests run locally

2009-02-16 Thread Paul Nasrat
2009/2/16 Luke Kanies : > > Are these changes to ENV done in the same process or in a subprocess > after a fork? > > If they're they same process, they should probably clean the value up > to its previous value. The patch does that by setting @rubylib and restoring it after: >> +@rubylib

[Puppet-dev] Re: [PATCH 00/22] Application Controller, take 3

2009-02-16 Thread Paul Nasrat
> Oh, one more thing -- this isn't required or anything, but it would be > simpler to read this commit series if you ran it through 'rebase -i > master, and squashed paired commits. I've added a note on the DevelopmentLifecycle to let people who may not know about rebase -i they can and should do

[Puppet-dev] Re: [PATCH 06/22] Move pi to the Application Controller paradigm

2009-02-16 Thread Luke Kanies
On Feb 14, 2009, at 4:17 PM, Brice Figureau wrote: > > On 14/02/09 17:45, Brice Figureau wrote: >> Signed-off-by: Brice Figureau >> --- >> bin/pi | 223 >> +--- >> bin/pi => lib/puppet/application/pi.rb | 99 ++- >> spec/

[Puppet-dev] Re: [PATCH 1/1] Fix #1933 - Inconsistent resource evaluation order in subsequent evaluation runs

2009-02-16 Thread Luke Kanies
On Feb 6, 2009, at 1:30 PM, Brice Figureau wrote: > > On 5/02/09 23:26, Luke Kanies wrote: >> On Feb 5, 2009, at 4:18 PM, Brice Figureau wrote: >> >>> I know I assigned the bug to Luke, but I had 5 spare minutes >>> tonight, and >>> wanted to try to solve this as this is affecting me. >>> So far

[Puppet-dev] Re: [PATCH 22/22] Remove --version handling from applications

2009-02-16 Thread Luke Kanies
Nice. On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Signed-off-by: Brice Figureau > --- > lib/puppet/application/filebucket.rb|5 - > lib/puppet/application/puppet.rb|5 - > lib/puppet/application/puppetca.rb |3 --- > lib/puppet/application/puppetd.r

[Puppet-dev] Re: [PATCH 00/22] Application Controller, take 3

2009-02-16 Thread Brice Figureau
On 16/02/09 18:17, Luke Kanies wrote: > On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > >> Hi, >> >> I'm proud to announce I've finished my work on the Application >> Controller >> refactoring. It is based on (a rather) current master (so it is on >> top of #1405). >> >> I tested all ap

[Puppet-dev] Re: [PATCH 07/22] Move puppetrun to Application Controller paradigm

2009-02-16 Thread Luke Kanies
I don't think it should be done as part of this commit series, but this executable is clearly ripe for refactoring, now that it's migrated and tested. That's a lot of long methods. On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Signed-off-by: Brice Figureau > --- > bin/puppetrun

[Puppet-dev] Re: [PATCH 00/22] Application Controller, take 3

2009-02-16 Thread Luke Kanies
On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Hi, > > I'm proud to announce I've finished my work on the Application > Controller > refactoring. It is based on (a rather) current master (so it is on > top of #1405). > > I tested all applications before the rebasing so I'm pretty >

[Puppet-dev] Re: [PATCH 00/22] Application Controller, take 3

2009-02-16 Thread Luke Kanies
On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > Hi, > > I'm proud to announce I've finished my work on the Application > Controller > refactoring. It is based on (a rather) current master (so it is on > top of #1405). > > I tested all applications before the rebasing so I'm pretty > c

[Puppet-dev] Re: [PATCH 01/22] Introducing the Application Controller

2009-02-16 Thread Brice Figureau
Hi Luke, On 16/02/09 17:16, Luke Kanies wrote: > Looks good. Thanks > I'm not sure how worth it is to go through and do point-by-point > reviews here, since there's such a huge amount of code, but I'll do > what I can. OK, fair enough :-) > Note that the overall code is great, and I'd acc

[Puppet-dev] Re: [PATCH 04/22] Move puppet to the Application Controller paradigm

2009-02-16 Thread Luke Kanies
On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Signed-off-by: Brice Figureau > --- > bin/puppet | 191 + > lib/puppet/application/puppet.rb | 151 > spec/unit/application/puppet.rb | 291 +

[Puppet-dev] Re: [PATCH 03/22] Move filebucket to the Application Controller paradigm

2009-02-16 Thread Luke Kanies
I would like to reiterate, great work, this makes the executables so much more maintainable. On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Signed-off-by: Brice Figureau > --- > bin/filebucket | 122 +-- > lib/puppet/application/filebucket.rb |

[Puppet-dev] Re: [PATCH 02/22] Move PuppetCA to the Application Controller paradigm

2009-02-16 Thread Luke Kanies
Holy crap this is awesome. Really, the whole CA Interface class should be pulled into this application -- it's essentially duplicate functionality, now that you've got this. But that can be done at a later date. On Feb 14, 2009, at 10:45 AM, Brice Figureau wrote: > > Signed-off-by: Brice

[Puppet-dev] Re: [PATCH 01/22] Introducing the Application Controller

2009-02-16 Thread Luke Kanies
Looks good. I'm not sure how worth it is to go through and do point-by-point reviews here, since there's such a huge amount of code, but I'll do what I can. Note that the overall code is great, and I'd accept the patches as they are now. These are just little points. I think there are ju

[Puppet-dev] Re: [PATCH 0/1] Added a "hosts" function to the template wrapper

2009-02-16 Thread Luke Kanies
On Feb 14, 2009, at 1:51 PM, Eric Gerlach wrote: > > On Fri, Feb 13, 2009 at 09:52:38AM -0600, Luke Kanies wrote: >> >> On Feb 11, 2009, at 6:08 PM, Eric Gerlach wrote: >> >>> >>> Hi all, >>> >>> I know that I might be breaking some ettiquette by posting a patch >>> without >>> lurking first, but

[Puppet-dev] Re: S3 as a file source

2009-02-16 Thread Luke Kanies
On Feb 15, 2009, at 7:20 PM, Robin Sheat wrote: > > I'm interested in the idea of using S3 as a file source for puppet, so > you could have something like: > > file { "/etc/myfile.conf": >source => "s3://bucket/path/to/myfile.conf", >... > } > > There are ruby libraries out there that wor

[Puppet-dev] Re: Inheritance and Resource Overrides

2009-02-16 Thread Luke Kanies
On Feb 13, 2009, at 6:32 PM, Paul Lathrop wrote: > > On Fri, Feb 13, 2009 at 4:07 PM, Luke Kanies wrote: >> I don't know that it's a subtlety; there are cases where you'd want >> to >> override a given parameter multiple times; linux, then debian, then >> ubuntu, for instance. >> >> I agree th

[Puppet-dev] Re: [PATCH 1/1] Ensure puppetmasterd integration tests run locally

2009-02-16 Thread Luke Kanies
Are these changes to ENV done in the same process or in a subprocess after a fork? If they're they same process, they should probably clean the value up to its previous value. On Feb 12, 2009, at 10:30 AM, Paul Nasrat wrote: > > This patch fixes up the puppetmasterd tests to run locally. >