Davide Ferrari
2011-Oct-25 10:31 UTC
[Puppet Users] Requiring a File defined in another classs
Hi I have wrote these classes http://pastebin.com/WKbUurt4 but as you can see in the paste, it throws me a dependency error, but as much as I can see, everything is included and declared so the compiled manifest should be complete. Where''s the error? I''m using Debian Squeeze with Puppet 2.6.2 Thanks -- Davide Ferrari Senior System Administrator Atrapalo S.L. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Davide Ferrari
2011-Oct-25 10:51 UTC
[Puppet Users] Re: Requiring a File defined in another classs
On Tue, 2011-10-25 at 12:31 +0200, Davide Ferrari wrote:> Hi > > I have wrote these classes > > http://pastebin.com/WKbUurt4 >Forget it, it was simply a typo :/ (a missing /) Sorry for the noise -- Davide Ferrari Senior System Administrator Atrapalo S.L. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Felix Frank
2011-Oct-26 07:56 UTC
Re: [Puppet Users] Re: Requiring a File defined in another classs
Please note that requiring resources from foreign classes is generally bad practice. If possible, require the whole class that defines the resource. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
jcbollinger
2011-Oct-26 13:32 UTC
[Puppet Users] Re: Requiring a File defined in another classs
On Oct 26, 2:56 am, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote:> Please note that requiring resources from foreign classes is generally > bad practice. > If possible, require the whole class that defines the resource.Yes, that seems to be the prevailing opinion, but I am a bit looser myself. For me, it''s a question of documentation and interface. I see no problem inherent in having a class document that it declares certain resources, with the intent that other classes'' resources may depend on them. Those resources are thereby made part of the declaring class''s external interface. On the other hand, it is asking for future trouble for a class to depend on foreign classes'' resources thatare *not* documented available for that purpose. Inasmuch as I suspect the practice of documenting resources into a class''s interface is not widespread, in most situations my position boils down to the one Felix described. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.