Skip to content

tchedem/vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Vagrant is a Virtual Machine (VM) Provisioner Tools.

In simple words, it allow you to quickly deploy (run, shutdown, reboot, build, delete) virtual machine but plus you can use it's provisionning feature to install require dependencies or packages on your virtual machines.

The provisionning feature can use different modules (Ansible)

In practice, to work with vagrant, you will write an descriptive file, that contain your server configurations. And you can build that file dozen time instead of configuring VM manually each time.

How to use it?
Snapshot

Before you create a snapshot, you might need some steps.

. Make sure you are in the right folder

cd /your/vagrant/project/path

To be sure, type the following command

vagrant status

If you are in the right vagrant project, you will get a list of created VMs with they status like this:

Current machine states:

logs                      running (virtualbox)
web                       not created (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

.Create the snapshort

vagrant snapshot save machines_before_configs

. List snapshot

vagrant snapshot list

. Restore machine to the snapshot state

vagrant snapshot restore machines_before_configs

. Delete a snapshort.

vagrant snapshot delete machines_before_configs

. Destroy and rebuild the whole infra

vagrant destroy -f; vagrant up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published