I'm trying to use ini_setting as a parent provider. Everything works well,
but to support purging, the resources provider need to specify the target
file via self.file_path. Initially this seems straightforward, but the
config file location can vary based on installation settings. All the
examples I've seen have a hard coded filepath in self.file_path. I can't
use parameter in the puppet type to provide the file path because it's only
accessible in the normal setter/getter via resources[:file_path].
scope.lookupvar is definitely not available, so is there a way to access
the catalog in self.* methods in the provider?

Thanks,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CACqVBqAVp6uLOGoQLjhCAw7gpBXu_bAdcoBu4Tyg64cVuK75KA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to