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
我不是曲確定爲什麼這個依賴週期發生,任何想法?
你有沒有想過這個?我有類似的問題。 – 2013-04-30 17:20:58