vagrantProvision


Syntax

  • config.vm.provision "shell", inline: COMMANDS
  • config.vm.provision "shell", path: "relativePath/script.sh"

Parameters

ParameterDetails
COMMANDSThe shell commands to run. Can be a string (e.g. "echo \"Hello, World!\"") or a string variable (e.g. $setup).

Remarks

Provisioning is used to automatically configure a virtual machine. It is performed automatically when a virtual machine is first created (using vagrant up). It can also be re-run later using vagrant provision.