我有以下定义:
原文链接:https://www.f2er.com/javaschema/281787.htmlclass Nginx::install{ ... } class Nginx::service{ ... } class Nginx::config{ ... } class Nginx{ include Nginx::install,Nginx::service,Nginx::config } class jenkins::Nginx{ include Nginx file{'/etc/Nginx/sites-enabled/jenkins': source => ...,require => Class['Nginx'],} }
但是当我运行它时,Puppet告诉我,我有一个循环:
err: Could not apply complete catalog: Found 1 dependency cycle: (Class[Jenkins::Nginx] => File[/etc/Nginx/sites-available/jenkins] => Class[Jenkins::Nginx]) Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
jenkins :: Nginx中对Nginx的简单引用引用了它自己.我怎么告诉Puppet我依赖顶级Nginx类呢?
我试图将我的依赖项更改为Class [‘:: Nginx’](好像我在Ruby中),而Puppet现在告诉我它无法找到依赖项.