Provisioning

34 views
Skip to first unread message

Solanki Ketul

unread,
Jan 25, 2021, 8:51:36 AM1/25/21
to Vagrant
Hello,
          I have some confusion. What does provisioning actually do? Which are the files which run on provisioning? What is the need for provisioning?
 
          I couldn't find a satisfactory answer on google.

jmc...@gmail.com

unread,
Jan 25, 2021, 9:01:02 PM1/25/21
to Vagrant
Provisioning is an optional step that occurs after vagrant brings up the guest VM.

In your Vagrantfile, you can specify provisioning steps. The two kinds of provisioning I'm familiar with are shell and ansible.

Shell provisioning is most often done with shell scripts included in the Vagrantfile, but can be done with external scripts.

Ansible provisioning starts by pointing to an Ansible playbook.

It's also possible to do the equivalent of shell provisioning with Powershell on Windows guests, but I've never tried that.

What does provisioning do? There's a split. Many aspects of setting up a guest can be done by preparing a specialized "box" for Vagrant to load. But when you are starting with a more generic box, the provisioning step can be used to install additional software packages or configure the VM to work in a particular environment or relationship. 

 -- jmcg

Solanki Ketul

unread,
Jan 26, 2021, 12:14:01 AM1/26/21
to vagra...@googlegroups.com
Thank you for the information.😄

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/a37aee71-0fe0-43d6-aec2-b993b8d3ec37n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages