0
我期待通過Vagrant 1.9.5部署CentOS 7 VirtualBox VM,並且我想運行一些本地部署的puppet模塊。在Vagrant部署期間運行puppet模塊時無法找到類
下面我Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.hostname = "test01.virtual"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules/"
puppet.options = ['--verbose']
end
end
下./puppet/manifests我default.pp文件:
Package { allow_virtual => true }
include mycode-dummy
木偶模塊似乎確定:
$ grep class puppet/modules/mycode-dummy/manifests/init.pp
class dummy($path = '/tmp/dummy',
當我運行vagrant up我收到以下錯誤信息:
....
==> default: Info: Loading facts
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
==> default: Error: Could not find class mycode-dummy for test01.virtual on node test01.virtual
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
它也發生在其他模塊和其他流浪箱。
我沒趕上錯了...
BR
FLEX
==>默認:錯誤:木偶::分析器:: AST ::資源失敗,錯誤引發ArgumentError:在找不到聲明的類空的/ tmp /vagrant-puppet/manifests-846018e2aa141a5eb79a64b4015fc5f3/default.pp:9在節點test01.virtual – FleX
對不起,修復了一個錯字 –
非常感謝,它的工作原理(在我將模塊從mycode-dummy重命名爲dummy後)!!!! – FleX