Chef - Mount - 如何添加持久性 (/p:yes)

Chef - Mount - how to add persistence (/p:yes)

我想在windows机器上用chef挂载网盘,我想模拟的cmd是

net use z: \path\to\drive /u:user@domain password /p:yes

我正在使用挂载资源:

mount 'Z:' do
  action :mount
  device drive_path
  username user
  domain domain
  password password
  fstype 'nfs'
end

我的问题是我不知道(也无法在文档中找到)如何添加 /persistent:yes

我们实际上并没有使用 net use CLI,而是调用了 NetUseAdd Win32 API,而且我实际上不确定该标志是否可用称呼。可能需要使用不同的电话?我的 Windows-fu 太弱了,不知道具体细节,但我很确定答案是 "you can't change it, what you see is what you get".