forked from bregman-arie/devops-resources
-
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
abregman
committed
Aug 29, 2021
1 parent
8d92c04
commit be4d16e
Showing
6 changed files
with
92 additions
and
3 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
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,3 @@ | ||
### CheatSheet | ||
|
||
* Split string to list of items using comma as the separator: `{% set list1 = variable1.split(',') %}` |
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
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
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
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,30 @@ | ||
## Virtualization | ||
|
||
### Virsh CheatSheet | ||
|
||
* List VMs: `virsh list --all` | ||
* Shutdown VMs: `virsh shutdown <VM_NAME>` | ||
* Delete VMs: `virsh undefine <VM_NAME>` | ||
|
||
* List pools: `virsh pool-list` | ||
* Delete pool content: `virsh pool-delete <POOL_NAME>` | ||
* Deactivate pool: `virsh pool-destroy <POOL_NAME>` | ||
* Delete the pool object: `virsh pool-undefine <POOL_NAME>` | ||
|
||
* List networks: `virsh net-list` | ||
* Delete network: `virsh net-undefine <NETWORK_NAME> && virsh net-destroy <NETWORK_NAME>` | ||
|
||
### Vagrant Resources | ||
|
||
Name | Description | ||
:------|:------: | ||
[Official Docs](https://www.vagrantup.com/intro/index.html) | Multi-container applications | ||
|
||
#### Vagrant Cheatsheet | ||
|
||
* Initialize vagrant file using Fedora image: `vagrant init fedora/33-cloud-base` | ||
* Bring up the VM: `vagrant up` | ||
* SSH into the machine: `vagrant ssh` | ||
* Shutdown: `vagrant halt` | ||
* Delete the VM: `vagrant destroy` | ||
* Reload Vagrant configuration: `vagrant reload` |