这就是我的Vagrantfile
样子:
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.json = {
postgresql: {
password: {
postgres: 'password'
}
},
database: {
create: ['mydb']
},
'build-essential' => {
compiletime: true
}
}
chef.run_list = ['recipe[build-essential]', 'recipe[openssl]', 'recipe[postgresql::server]', 'recipe[database::postgresql]']
end
我也用过precise32
盒子。当我的虚拟机在之后启动时vagrant up
,我得到了很长的回溯,并带有错误消息:undefined method
ruby' for Config:Module`。
有人遇到过这个吗?