嗨,我正在写一个厨师食谱来挂载nfs服务器,但是我一直在获取
STDERR: mount.nfs: access denied by server while mounting
Expected process to exit with [0], but received '32'
这是我写的代码:
mount node['recipe']['var_mount'] do
device node['recipe']['var_mount_location'].to_s
fstype 'nfs'
options 'vers=3,intr,soft,rw,noatime'
action [:mount, :enable]
end
答案 0 :(得分:0)
我可以想到几种情况:
我会建议您以调试日志级别运行Chef-client,例如:
$ chef-client --log_level debug