Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Dan Bode
On Fri, May 4, 2012 at 2:03 PM, Philip Brown wrote: > Hmm, i guess I slightly misunderstood: my ensure routine should return > false or true, i guess. > > But I'm still missing info :( > In my trivial example below, the "ensure" routine gets called and prints > out its debug line. But the other r

Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Dan Bode
On Fri, May 4, 2012 at 1:46 PM, Philip Brown wrote: > > > On Friday, May 4, 2012 1:29:19 PM UTC-7, Luke Kanies wrote: > >> On May 4, 2012, at 11:08 AM, Philip Brown wrote: >> >> >> >> I dont see how to send some kind of message to the logs, "hey, something >> changed, but I'm fixing it". >>

[Puppet-dev] Naming of new provider to be submitted

2012-05-04 Thread Philip Brown
The good news is, I hope to have a new type/provider combo to submit to the puppet source next week :) Seems like I'm making good progress. The bad news is, I now need to pick a name that's going to be good for the long haul, before I submit it :) So I'm asking here for suggestions. I'm writin

[Puppet-dev] (puppetlabs/puppet) Bug/2.7.x/14288 gem provider fails on bad input

2012-05-04 Thread wearetherobots
On Fri May 04 21:20:39 UTC 2012 pull request #735 was closed. Bug/2.7.x/14288 gem provider fails on bad input requested by (daniel-pittman) The pull request was merged by: pcarlisle -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet-dev] how to allow user specified property names in provider code

2012-05-04 Thread Philip Brown
On Friday, May 4, 2012 1:42:35 PM UTC-7, Chris Price wrote: > > I'm not an expert on the topic, but my understanding is that you can't > create a type without well-defined property/parameter names. Or, to put it > a different way, there is currently no officially sanctioned means by which > t

Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Philip Brown
On Friday, May 4, 2012 2:03:59 PM UTC-7, Philip Brown wrote: > > > Puppet::Type.type(:sysprop).provide(:solaris) do > desc "Provider for Solaris system properties" > defaultfor :operatingsystem => :solaris > > def create > Puppet.debug "sysprop.create called" > end > def destroy >

Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Philip Brown
Hmm, i guess I slightly misunderstood: my ensure routine should return false or true, i guess. But I'm still missing info :( In my trivial example below, the "ensure" routine gets called and prints out its debug line. But the other routines do not. Instead, I see debug: /Stage[main]//Sysprop[sys

Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Philip Brown
On Friday, May 4, 2012 1:29:19 PM UTC-7, Luke Kanies wrote: > > On May 4, 2012, at 11:08 AM, Philip Brown wrote: > > > I dont see how to send some kind of message to the logs, "hey, something > changed, but I'm fixing it". > > > In all cases I can think of, Puppet will do the appropriate lo

Re: [Puppet-dev] how to allow user specified property names in provider code

2012-05-04 Thread Chris Price
I'm not an expert on the topic, but my understanding is that you can't create a type without well-defined property/parameter names. Or, to put it a different way, there is currently no officially sanctioned means by which to support dynamic property/parameter names for a type or a provider. One w

Re: [Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Luke Kanies
On May 4, 2012, at 11:08 AM, Philip Brown wrote: > I've looked through a few "ensure" providing .rb files, and would like to > verify something. > > None of the ones I've looked at, seem to explicitly return any kind of value > for "Hey, I updated something". > Nor do even may other kinds of u

[Puppet-dev] (puppetlabs/puppet) (#13341) nested exceptions

2012-05-04 Thread wearetherobots
Please review pull request #741: (#13341) nested exceptions opened by (pcarlisle) Description: This refactors the base Puppet::Error exception to allow nested exceptions, enabling full context of an original error to be retained. It modifies our log_exception method to pr

[Puppet-dev] (puppetlabs/puppet-acceptance) (maint) Add step for dynamic pkg repo cfg

2012-05-04 Thread wearetherobots
On Fri May 04 18:42:34 UTC 2012 pull request #204 was closed. (maint) Add step for dynamic pkg repo cfg requested by (djm68) The pull request was merged by: haus -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. T

[Puppet-dev] How to have "ensure" routines notify something changed

2012-05-04 Thread Philip Brown
I've looked through a few "ensure" providing .rb files, and would like to verify something. None of the ones I've looked at, seem to explicitly return any kind of value for "Hey, I updated something". Nor do even may other kinds of utils that I look at. For example: def mode=(value) begi

[Puppet-dev] (puppetlabs/puppet-acceptance) Use cygpath to get the Puppet Enterprise binary directory instead of har...

2012-05-04 Thread wearetherobots
On Fri May 04 17:35:35 UTC 2012 pull request #187 was closed. Use cygpath to get the Puppet Enterprise binary directory instead of har... requested by (mkincaid) The pull request was merged by: djm68 -- You received this message because you are subscribed to the Goog

[Puppet-dev] (puppetlabs/puppet-acceptance) Bump expected console-auth version to 1.0.10

2012-05-04 Thread wearetherobots
On Fri May 04 17:34:11 UTC 2012 pull request #203 was closed. Bump expected console-auth version to 1.0.10 requested by (haus) The pull request was merged by: djm68 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group

Re: [Puppet-dev] where do these provider entry points get defined?

2012-05-04 Thread Luke Kanies
On May 4, 2012, at 9:58 AM, Philip Brown wrote: > I'm looking at the "user" providers. > They all seem to have this function "addcmd" defined. > > The manual on providers and types seems to say that all provider entrypoints > are defined in the "type" file. > > However, nowhere in type/user.rb

[Puppet-dev] where do these provider entry points get defined?

2012-05-04 Thread Philip Brown
I'm looking at the "user" providers. They all seem to have this function "addcmd" defined. The manual on providers and types seems to say that all provider entrypoints are defined in the "type" file. However, nowhere in type/user.rb file, is "addcmd" mentioned. Where is this defined? Sounds li

[Puppet-dev] (puppetlabs/puppet) get eix cachefile location from eix

2012-05-04 Thread wearetherobots
Please review pull request #740: get eix cachefile location from eix opened by (hairmare) Description: I want to keep the eix cache file in a single location for a vserver setup I'm doing. This commit helps by allowing me to decide where I want to store the cache through