Re: [Puppet-dev] Accessing puppet catalog in provider self.* methods

2015-01-29 Thread Trevor Vaughan
Hi Nan, Not sure if this will do what you want, but can you use 'initialize' to set up an instance variable that pulls from the catalog and then reference that instance variable later in your self.* methods? Thanks, Trevor On Thu, Jan 29, 2015 at 8:37 PM, Nan Liu wrote: > I'm trying to use in

[Puppet-dev] Accessing puppet catalog in provider self.* methods

2015-01-29 Thread Nan Liu
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

[Puppet-dev] Re: The host type has unexpected behavior and is not idempotent

2015-01-29 Thread Eli Young
On Thursday, January 29, 2015 at 7:27:10 AM UTC-8, John Bollinger wrote: > > > DNS resolvers are irrelevant to the hosts file format. The hosts file is > not a *DNS* data source, even if resolver libraries happen to consult it, > too. In fact, the original objective of DNS was to altogether r

[Puppet-dev] Re: The host type has unexpected behavior and is not idempotent

2015-01-29 Thread John Bollinger
On Tuesday, January 27, 2015 at 10:02:06 PM UTC-6, Eli Young wrote: > > > On Tuesday, January 27, 2015 at 2:53:46 PM UTC-8, John Bollinger wrote: >> >> >> As far as I can tell, it is a design characteristic of the current hosts >> file format that it associates each address with exactly one cano