forked from cherkavi/cheat-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vitali Cherkashyn
authored and
Vitali Cherkashyn
committed
Jun 15, 2018
1 parent
816a25d
commit 1d9a95e
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# vagrant | ||
* [download](https://releases.hashicorp.com/vagrant/) | ||
* [reestr](https://www.vagrantup.com/docs/boxes.html) | ||
|
||
## init project | ||
``` | ||
vagrant init | ||
``` | ||
|
||
## check "Vagrantfile" | ||
``` | ||
vagrant validate | ||
``` | ||
|
||
## start | ||
``` | ||
vagrant up | ||
``` | ||
|
||
## stop machine for a while, save state | ||
``` | ||
vagrant suspend | ||
``` | ||
|
||
## re-start machine after stop | ||
``` | ||
vagrant resume | ||
``` | ||
|
||
## current machine status | ||
``` | ||
vagrant status | ||
``` | ||
|
||
|
||
## 'switch off power' | ||
``` | ||
vagrant halt | ||
``` | ||
|
||
## destroy - remove cache from .vagrant.d | ||
``` | ||
vagrant destroy | ||
``` | ||
|
||
## connect to machine | ||
``` | ||
vagrant ssh | ||
``` | ||
|
||
## default shared folder | ||
``` | ||
/vagrant | ||
``` | ||
|
||
|
||
## plugins | ||
``` | ||
vagrant plugin install {plugin name} | ||
``` | ||
|
||
### porxy plugin - vagrant-proxyconf | ||
``` | ||
config.proxy.http = "10.32.2.11:3128" | ||
config.proxy.https = "10.32.2.11:3128" | ||
config.proxy.no_proxy = "localhost,127.0.0.1" | ||
``` | ||
|
||
## cookbook | ||
|
||
### start ansible | ||
``` | ||
config.vm.provision "ansible_local" do |ansible| | ||
ansible.playbook = "playbook.yml" | ||
ansible.install_mode = "pip" | ||
ansible.version = "2.2.1.0" | ||
end | ||
``` | ||
|