2012-11-26 27 views
6

我試圖安裝木偶模塊在https://github.com/dwerder/puppet-mongodb依賴循環使用apt源

一個爲它工作的要求是要有MongoDB的倉庫設置。因爲我想將它部署在Debian我試着用下面的類添加源:

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 
    } 
} 

然而,在嘗試安裝模塊(測試節點上)我得到以下的輸出:

[email protected]:/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 

通知:在0.06秒

成品目錄運行的類包含在模塊的安裝類在https://github.com/dwerder/puppet-mongodb/blob/master/manifests/install.pp

我不是曲確定爲什麼這個依賴週期發生,任何想法?

+1

你有沒有想過這個?我有類似的問題。 – 2013-04-30 17:20:58

回答

0

你最後的改變是什麼(這可能是你添加週期的那一刻)。

嘗試建議來生成圖。將生成的點文件作爲要點發布,以便我們可以進一步調查。請參閱Debugging cycle or missing dependency

請注意,某些依賴項是顯式的(require, - >)或隱式的(資源提供者通過它自己添加依賴項)...查看點文件應該有所幫助。