On Friday, November 16, 2012 5:44:09 AM UTC-6, Gavin Williams wrote: > > However still looks like if one of the *:options *doesn't match, then the > whole lot gets set again... I guess that's a reasonable logic in that if > one doesn't match, it's quite possible other's don't match, so set them all > to be safe... Unless I missed something? > > What you continue to miss is that you are treating all the options as a single property. That's ok, but it means that at the level of the resource / provider interface, Puppet cannot set individual options, only all of them as a group. You can't have it both ways.
Inside your provider, however, you can implement the interface to the underlying tool any way you want. In particular, in your options= function, you can look at the current value and the value being set, extract the changes, and apply only those. I guess you were trying to do something like that in your insync? function, but if you're doing something like that then options= is probably where it should go. John -- 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/-/uFOu3gp_0kQJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.