Vagrant is a layer of perl scripts written to automate the process of setting up virtual machines.
Vagrant can work with a lot of Hypervisors but internally we only use VirtualBox.
After Vagrant is done setting up the virtual machine Ansible takes over to provision the machine with all the tools a project needs.
vagrant up
Starts up a vagrant boxvagrant provision
Re-provisions the box. This allows you to restart the initial installation processvagrant halt
Stops the box. You can start it again using vagrant up
vagrant destroy
Removes the box including all it's files from your machineroot
, Password: root
root
, Password: root
vagrant
, Password: vagrant
| Command | Description | |:---------------------- |:------------------------------------ | | service nginx restart | Restarts the Nginx Webserver | | service mongod restart | Restarts the MongoDB NoSQL server | | service mysql restart | Restarts the MySQL database server | | mc | Midnight commmander (Filesystem GUI) | | htop | Graphical top (Service Manager) | | dos2unix "file" | Converts windows line endings | | sudo su | Elevates to root level | | drush | CLI for Drupal |
| Path | Description | |:---------------- |:-------------------------------------------- | | /etc/mongod.conf | MongoDB configuration file | | /etc/mysql | MySQL configuration files | | /etc/php | PHP configuration files | | /var/lib/mysql | MySQL data files | | /var/lib/mongo | MongoDB data files | | /var/log/nginx | Nginx log files | | /var/log/mysql | MySQL log files | | /var/log/mongo | MongoDB log files | | /vagrant | Vagrant home folder | | /var/source | Linked to project folder on your own machine | | /var/www | Symlinked to /var/source |
Checkout the _scripts/vagrant/ansible folder to customize you setup. The main.yml defines roles that are being used during the vagrant provision.
Last modified | Tuesday, February 2, 2021, 3:09:34 PM UTC |
Last author | Glenn de Haan |
Commit ID | b908c1b |