On Saturday, May 5, 2012 1:38:08 PM UTC-7, Luke Kanies wrote: > > > On Saturday, May 5, 2012 6:42:31 AM UTC-7, Philip Brown wrote: >> >> ... > > > Now the only major ugliness left, is that on successful trigger, the > --verbose output is: > notice: /Stage[main]//Sysprop[network/smtp:sendmail]/ensure: created > > I'd rather it said something different from "ensure: created" . A custom > message would be nice. > But I suppose I dont have any control over that. > > > > > You can set a custom message with the change_to_s method; see exec.rb for > an example. > > Errr.. my copy of exec.rb does not have this.
(puppet 2.7.6) judging by all the xxx_to_s methods in the type directory though, there's some interesting functionality here, that *really* needs to be documented :( http://docs.puppetlabs.com/guides/custom_types.html and then http://docs.puppetlabs.com/guides/provider_development.html are a great start.. but seems like the provider page, is only half finished, as it were. It could really use information like this. It also needs a bit of help from the point of view of someone coming in "cold" to those pages. Statements like "By default, you have to define all of your getter and setter methods." is lacking information, in what exactly that means :-} (Side comment: i wonder how I get "google groups' to turn off the fancy formatting in my posts... sigh...) Hmm. I'm trying out def change_to_s(oldval,newval) Puppet.debug "old is '#{oldval}', newval is '#{newval}'" end and it is not getting called -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-dev/-/E0o23Rwb2FwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
