Vagrant / Puppet错误-Error:在node32节点上找不到apt32的类apt

时间:2015-05-16 11:27:16

标签: java maven ubuntu vagrant virtual-machine

我正在尝试使用java / maven / tomcat建立一个完整的开发环境。到目前为止,我可以运行一个工作正常的实例,我现在正试图将它们打包在一起并遇到问题。

我尝试了各种各样的事情,但总是得到同样的错误:Error: Could not find class apt for precise32 on node precise32

我已经在共享文件夹上安装了各种木偶模块,认为这有助于解决,因为我发现一篇帖子说sodlib是必需的,这是安装在该文件夹中。我不太确定我哪里出错了。我可以直接进入虚拟机,确认共享文件夹可用,并安装了putty。

流浪文件:

Vagrant.configure("2") do |config|
  config.vm.box = "hashicorp/precise32"
  config.vm.network :private_network, ip: '192.168.33.10'
  config.vm.network :forwarded_port, guest: 8080, host: 4880
  config.vm.network :forwarded_port, guest: 8000, host: 4800
  config.vm.network :forwarded_port, guest: 1099, host: 1099
  config.vm.synced_folder "/..path../Vagrant_MASTER/Shared_Resources/artifacts", "/artifacts", create: true

  config.vm.provision :shell, :path => "puppet_script.sh"
  #share the puppet folder?
  config.vm.synced_folder  "/..path../Vagrant_MASTER/Shared_Resources/puppet", "/puppet", create:true
  config.vm.provision :puppet do |puppet|
    puppet.module_path = "/..path../Vagrant_MASTER/Shared_Resources/puppet/modules" 
    puppet.manifests_path = "/..path../Vagrant_MASTER/Shared_Resources/puppet/manifests"
    puppet.manifest_file  = "/..path../Vagrant_MASTER/Shared_Resources/puppet/java-maven-tomcat7.pp"
  end

  config.vm.provider :virtualbox do |vb|
    vb.customize ["modifyvm", :id, "--memory", "1024"]
  end
end

木偶剧本是木偶网站的副本。

感谢您的帮助。

0 个答案:

没有答案