0
我想允許將參數追加到config.vm.synced_folder
。我希望用戶在此配置中附加其他參數。Vagrantfile合併/附加參數
我到目前爲止有:
append_params = 'x: false, y: false'
config.vm.synced_folder x['folder'], "/var/www", create: true, type: "nfs", append_params
如果我刪除, append_params
它的工作原理。但隨着它,它失敗,錯誤:
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
D:/x/Vagrantfile:32: syntax error, unexpected '\n', expecting =>
我如何可以追加上要求config.vm.synced_folder
附加參數?
化妝參數,在我的情況下工作的解決方案'append_params'一個'Hash'例如'append_params = {x:false,y:false}',然後在第2行添加** append_params – engineersmnky