Dependency loop with apt source

I am trying to install a puppet module on https://github.com/dwerder/puppet-mongodb

One of the requirements for its work is to install the mongodb repository. Since I'm trying to deploy it to Debian, I tried using the following class to add the source:

class mongodb::apt::repo { include apt apt::source { '10gen': location => 'http://downloads-distro.mongodb.org/repo/debian-sysvinit', release => 'dist', repos => '10gen', key => '7F0CEB10', key_server => 'keyserver.ubuntu.com', include_src => false } } 

However, when I try to install the module (in the node test), I get the following output:

 root@debian :/etc/puppet/modules# puppet agent --test info: Caching catalog for debian.lan info: Applying configuration version '1353946258' err: Could not apply complete catalog: Found 1 dependency cycle: (Exec[apt_update] => Class[Apt::Update] => Anchor[apt::source::10gen] => Anchor[apt::source::10gen] => Apt::Source[10gen] => Class[Mongodb::Apt::Repo] => Package[mongodb-10gen] => Anchor[mongodb::install::end] => Anchor[mongodb::install::end] => File[10gen.list] => Apt::Source[10gen]) Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz 

: Completed directory in 0.06 seconds

The class is included in the module installation class at https://github.com/dwerder/puppet-mongodb/blob/master/manifests/install.pp

I'm not quite sure why this addiction cycle, any ideas?

+6
source share
1 answer

What was your last change (possibly since adding a loop).

Try suggesting to generate a chart. Publish the generated point file as an entity so we can explore further.

See the debug loop or missing dependency .

Note that some dependencies are explicit (require, →) or implicit (the resource provider adds the dependency on it independently) ... looking at the points file should help.

0
source

All Articles