Shell Provisioner
Shell Provisioner
Provisioner name: "shell"
The Vagrant Shell provisioner allows you to upload and execute a script within the guest machine.
Shell provisioning is ideal for users new to Vagrant who want to get up and running quickly and provides a strong alternative for users who are not comfortable with a full configuration management system such as Chef or Puppet.
For POSIX-like machines, the shell provisioner executes scripts with SSH. For Windows guest machines that are configured to use WinRM, the shell provisioner executes PowerShell and Batch scripts over WinRM.
Options
The shell provisioner takes various options. One of inline
or path
is required:
-
inline
(string) - Specifies a shell command inline to execute on the remote machine. See the inline scripts登录查看完整内容