Skip to content

Commit

Permalink
vagrant
Browse files Browse the repository at this point in the history
  • 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.
79 changes: 79 additions & 0 deletions vagrant.md
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
```

0 comments on commit 1d9a95e

Please sign in to comment.