Bryan Kearney
2008-Jul-08 13:09 UTC
[Puppet Users] How do I determine "why" to resources are connected
I am working on a custom type, and I am using the autorequire to ensure that the service mysqld is started before the type. I am using the following code: autorequire :service do reqs = Array.new() reqs << "mysqld" reqs end When I use this type in a recipie, I get a circular dependency error: err: Could not apply complete catalog: Found dependency cycles in the following relationships: When I graph it out, I see that my custom type is depdendent upon Service[mysqld] which in turn is dependent upon my type. Is there any way to determine "where" that second link came from? -- bk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Marcin Owsiany
2008-Jul-08 15:10 UTC
[Puppet Users] Re: How do I determine "why" to resources are connected
On Tue, Jul 08, 2008 at 09:09:37AM -0400, Bryan Kearney wrote:> > I am working on a custom type, and I am using the autorequire to ensure > that the service mysqld is started before the type. I am using the > following code: > > autorequire :service do > reqs = Array.new() > reqs << "mysqld" > reqs > end > > > When I use this type in a recipie, I get a circular dependency error: > > err: Could not apply complete catalog: Found dependency cycles in the > following relationships: > > When I graph it out, I see that my custom type is depdendent upon > Service[mysqld] which in turn is dependent upon my type. Is there any > way to determine "where" that second link came from?I think that puppet with --debug prints some information about dependencies... Marcin -- Marcin Owsiany <marcin@owsiany.pl> http://marcin.owsiany.pl/ GnuPG: 1024D/60F41216 FE67 DA2D 0ACA FC5E 3F75 D6F6 3A0D 8AA0 60F4 1216 "Every program in development at MIT expands until it can read mail." -- Unknown --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---