2. About me
Bien Hoang Giang - Call me Jino :)
Age: 23
Sex: Female
Status: Had a boyfriend
bienhoang@github
bienhoanggiang@twitter
jinohoang1994@facebook
8. Vagrant come from heaven !!!
Create and configure lightweight,
reproducible, and portable
development environments.
Vagrant is write in Ruby and
some fucking technology :D
Offers a very simple command-line interface to
manage VMs
Supports all major virtual solutions: VirtualBox,
VMWare, and Hyper-V
Supports most popular software configuration tools,
including Ansible, Chef, Puppet, and Salt
Facilitates procedures to distribute and share virtual
environments
11. Vagrant Advantages/Disadvantages
Ad
- Run one command “vagrant up”
to setup and run environment
- Save time
- Setup one, run everywhere
- Cross-platform
- Make the real environment for
develop and testing.
Dis
- Need a power PC to run
- Easy to use but difficult to
understand and master
13. Let’s do the things below
Understand vagrant box
How to get the box
Vagrant box manage
Init vagrant Virtual Machine
Understand basic configuration
14. State of Virtual Machine
How to see vagrant machine status?
Vagrant global-status
Vagrant status
Machine State
- Power off
- Not created
- Running
- Saved
Vagrant Command
- Vagrant up
- Vagrant halt
15. Provisioning - Let’s Explain
Some type of Provision
- Shell:
Bash script, python, ruby script, shell…
- Server Configuration Manager Tool
Puppet
Ansible
SailStack
Chef
Ex: Shell Script
Config.vm.provision “shell”, path: “script.sh/.py”, run:
“always”
Ex: Ansible
Config.vm.provision “ansible”, playbook: “playbook.yml”
Ex: Deal with Provision
Vagrant up/reload --provision “name” / --no-provision
Vagrant provision