Vagrantfile(相关部分)
config.vm.provision :chef_solo do |chef|
chef.add_recipe "yum"
# various recipes..
# in one of these i create the 'localuser' user
end
config.vm.synced_folder "./site/frontend", "/var/www/vhosts/site/frontend", :owner=> 'localuser', :group=>'apache', :extra => 'dmode=755,fmode=755'
当我第一次做时,vagrant up
我在安装时出错,因为它找不到本地用户(共享文件夹的安装在配置之前)
我可以做些什么来与稍后创建的所有者共享文件夹?