Re: [Puppet Users] Inter-Module Dependency

2011-02-18 Thread Felix Frank
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

Re: [Puppet Users] Inter-Module Dependency

2011-02-16 Thread Derek J. Balling
> 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

Re: [Puppet Users] Inter-Module Dependency

2011-02-15 Thread Daniel Pittman
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

Re: [Puppet Users] Inter-Module Dependency

2011-02-15 Thread Gabriel Filion
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

Re: [Puppet Users] Inter-Module Dependency

2011-02-15 Thread Nan Liu
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

Re: [Puppet Users] Inter-Module Dependency

2011-02-15 Thread Daniel Pittman
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

[Puppet Users] Inter-Module Dependency

2011-02-15 Thread Derek J. Balling
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