echocat/puppet-mongodb

Found 1 dependency cycle

Closed this issue · 1 comments

After upgrading from 3.4.3 to 3.5.0 I'm getting:
Error: Failed to apply catalog: Found 1 dependency cycle: (Anchor[apt::source::mongodb-source] => Apt::Source[mongodb-source] => Class[Mongodb::Repos::Apt] => Class[Apt::Update] => Exec[apt_update] => Class[Apt::Update] => Anchor[apt::source::mongodb-source])

this is puppet 3.8.6 and the installed modules:

/etc/puppet/modules
├── ajcrowe-supervisord (v0.6.0)
├── darin-zypprepo (v1.0.2)
├── duosecurity-duo_unix (v0.3.1)
├── dwerder-mongodb (v3.5.0)
├── fadeit-s3_backup (v0.2.0)
├── installmcollective (???)
├── jfryman-nginx (v0.2.7)
├── loggly-loggly (v1.0.4)
├── nanliu-staging (v1.0.3)
├── petems-swap_file (v2.1.0)
├── puppet (???)
├── puppet-mcollective (v2.1.1)
├── puppetlabs-activemq (v0.4.0)
├── puppetlabs-apt (v1.8.0)
├── puppetlabs-concat (v1.2.1)
├── puppetlabs-firewall (v1.6.0)
├── puppetlabs-java (v1.3.0)
├── puppetlabs-nodejs (v0.8.0)
├── puppetlabs-rabbitmq (v5.2.3)
├── puppetlabs-stdlib (v4.6.0)
├── puppetlabs-vcsrepo (v1.2.0)
├── purpleidea-gluster (v0.1.0)
├── richardc-datacat (v0.5.0)
├── rodjek-logrotate (v1.1.1)
├── rtyler-jenkins (v1.4.0)
├── saz-ssh (v2.6.0)
├── serverdensity-serverdensity_agent (v0.9.5)
└── thias-sysctl (v1.0.2)

and our code

  class { 'mongodb':
    package_name    => 'mongodb-org',
    package_ensure  => '3.0.11',
    logdir          => '/var/log/mongodb',
    # only debian like distros
    old_servicename => 'mongod'
  }
  mongodb::mongod { "localhost_${mongoPort}":
    mongod_port    => $mongoPort,
    mongod_replSet => $replicaSet,
  }

what could be causing this?

Looks like you use the puppetlab-apt somewhere and enforcing it to run before the mongo module. Maybe with a stage or another anchor.