问题描述
我收到消息:
Puppet::Parser::AST::Resource failed with error ArgumentError:在节点 vagrant-ubuntu 上的/tmp/vagrant-puppet-1/manifests/site.pp:15 找不到声明的类 git-precision-64.wp.comcast.net
可能最好的主意是看到它的实际效果.我已经创建了我正在使用的确切清单的 GitHub 存储库.是这里:https://github.com/jamorat/puppet-example
Probably the best idea is to see this in action. I have created a GitHub repo of the exact manifest I am using. It is here:https://github.com/jamorat/puppet-example
清单和 git 模块就在那里.如果你有 Vagrant,这可以是 vagrant up
,你会自己看到错误.在这里收到答案和/或作为提交会很酷(为此仍然会在此处给出答案.)
The manifests and git module are there. If you have Vagrant, this can be vagrant up
and you will see the error for yourself. Would be cool to either receive an answer here and/or also as a commit (for which credit would still be given here for answer.)
非常感谢!
推荐答案
你需要配置vagrant与木偶模块路径.附带说明一下,您通常还会将清单和模块文件夹放在同一个文件夹中,而不是将模块放在清单中.
You need to configure vagrant with the puppet module path. On a side note, you would also usually keep the manifest and module folder in the same folder, instead of modules inside manifests.
这篇关于找不到流浪木偶类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!