On 02/16/2011 11:30 AM, Derek J. Balling wrote:
>> For what it is worth, for an extremely well known interface like
>> /etc/resolv.conf I would subscribe to the file resource, but for most
>> cases I prefer to depend on the class. So, I think both answers are
>> right, and I didn't explain why I c
> For what it is worth, for an extremely well known interface like
> /etc/resolv.conf I would subscribe to the file resource, but for most
> cases I prefer to depend on the class. So, I think both answers are
> right, and I didn't explain why I chose the apparently tighter binding
> this time arou
On Tue, Feb 15, 2011 at 17:11, Gabriel Filion wrote:
> On 11-02-15 05:25 PM, Nan Liu wrote:
>> You can also create class level dependency so it is less tightly
>> coupled to a specific resource which may benefit you in the long run
>> should you need to refactor dns_config class.
>>
>> class rando
On 11-02-15 05:25 PM, Nan Liu wrote:
> You can also create class level dependency so it is less tightly
> coupled to a specific resource which may benefit you in the long run
> should you need to refactor dns_config class.
>
> class random_app {
> require dns_config
> ...
> }
hmm this actuall
On Tue, Feb 15, 2011 at 2:09 PM, Daniel Pittman wrote:
> On Tue, Feb 15, 2011 at 11:05, Derek J. Balling wrote:
>
> […]
>> So I've got two modules, one for "random_app" and one for "dns_config".
>> "dns_config" has a file resource "resolv.conf" which is just what the name
>> implies.
>>
>> I wa
On Tue, Feb 15, 2011 at 11:05, Derek J. Balling wrote:
[…]
> So I've got two modules, one for "random_app" and one for "dns_config".
> "dns_config" has a file resource "resolv.conf" which is just what the name
> implies.
>
> I want service 'foo' in my random_app module to subscribe to dns_confi
I tried looking in the language tutorial for this, but I couldn't find a
reference for how to do it, but I'm sure it must be possible.
So I've got two modules, one for "random_app" and one for "dns_config".
"dns_config" has a file resource "resolv.conf" which is just what the name
implies.
I w