Fix azure shit and add yaml specifics

main
Gasper Spagnolo 2022-11-10 10:35:04 +01:00
parent 8d208a7ba8
commit 152d824dd0
4 changed files with 136 additions and 1 deletions

3
VIM.md
View File

@ -45,3 +45,6 @@ Comment Multiple Lines
- `:sav file.txt` ~ save new file - `:sav file.txt` ~ save new file
- `:new file.txt` ~ create new file and open horizontally - `:new file.txt` ~ create new file and open horizontally
- `:vsp file.txt` ~ create new file and open vertically - `:vsp file.txt` ~ create new file and open vertically
### Nvim tree mappings
` :help nvim-tree-default-mappings`

View File

@ -24,7 +24,103 @@ then issue this command: `ln -s /usr/bin/python3 /usr/bin/python`.
`ansible-galaxy collection install azure.azcollection` `ansible-galaxy collection install azure.azcollection`
`pip3 install "ansible[azure]"` (in venv preferably) // don't do that, rather that (`https://github.com/ansible/ansible/blob/stable-2.8/packaging/requirements/requirements-azure.txt`) So becouse i could not set it up properly, this is is my `requirements.txt`:
```python
adal==1.2.7
ansible==6.5.0
ansible-core==2.13.5
applicationinsights==0.11.10
argcomplete==1.12.3
azure-cli-core==2.34.0
azure-cli-telemetry==1.0.6
azure-common==1.1.11
azure-core==1.26.0
azure-graphrbac==0.61.1
azure-identity==1.7.0
azure-keyvault==1.0.0a1
azure-mgmt-apimanagement==0.2.0
azure-mgmt-authorization==0.51.1
azure-mgmt-automation==1.0.0
azure-mgmt-batch==5.0.1
azure-mgmt-cdn==3.0.0
azure-mgmt-compute==26.1.0
azure-mgmt-containerinstance==1.4.0
azure-mgmt-containerregistry==2.0.0
azure-mgmt-containerservice==9.1.0
azure-mgmt-core==1.3.2
azure-mgmt-cosmosdb==0.15.0
azure-mgmt-datafactory==2.0.0
azure-mgmt-datalake-nspkg==2.0.0
azure-mgmt-datalake-store==0.5.0
azure-mgmt-devtestlabs==3.0.0
azure-mgmt-dns==2.1.0
azure-mgmt-eventhub==2.0.0
azure-mgmt-hdinsight==0.1.0
azure-mgmt-iothub==0.7.0
azure-mgmt-keyvault==1.1.0
azure-mgmt-loganalytics==1.0.0
azure-mgmt-managedservices==1.0.0
azure-mgmt-managementgroups==0.2.0
azure-mgmt-marketplaceordering==0.1.0
azure-mgmt-monitor==3.0.0
azure-mgmt-network==19.1.0
azure-mgmt-notificationhubs==2.0.0
azure-mgmt-nspkg==2.0.0
azure-mgmt-privatedns==0.1.0
azure-mgmt-rdbms==1.9.0
azure-mgmt-recoveryservices==0.4.0
azure-mgmt-recoveryservicesbackup==0.6.0
azure-mgmt-redis==13.0.0
azure-mgmt-resource==10.2.0
azure-mgmt-search==3.0.0
azure-mgmt-servicebus==0.5.3
azure-mgmt-sql==3.0.1
azure-mgmt-storage==19.0.0
azure-mgmt-trafficmanager==0.50.0
azure-mgmt-web==0.41.0
azure-nspkg==2.0.0
azure-storage==0.35.1
bcrypt==4.0.1
certifi==2022.9.24
cffi==1.15.1
charset-normalizer==2.1.1
cryptography==38.0.1
humanfriendly==10.0
idna==3.4
isodate==0.6.1
Jinja2==3.1.2
jmespath==1.0.1
knack==0.9.0
MarkupSafe==2.1.1
msal==1.20.0
msal-extensions==0.3.1
msrest==0.6.21
msrestazure==0.6.4
oauthlib==3.2.2
packaging==21.3
paramiko==2.11.0
pkginfo==1.8.3
portalocker==1.7.1
psutil==5.9.3
pycparser==2.21
Pygments==2.13.0
PyJWT==2.6.0
PyNaCl==1.5.0
pyOpenSSL==22.1.0
pyparsing==3.0.9
PySocks==1.7.1
python-dateutil==2.8.2
PyYAML==6.0
requests==2.28.1
requests-oauthlib==1.3.1
resolvelib==0.8.1
six==1.16.0
tabulate==0.9.0
typing_extensions==4.4.0
urllib3==1.26.12
xmltodict==0.13.0
```
so then just run `pip3 install -r requirements.txt` and you should be ready to rock!
Then go to Azure website and generate a new resource group. Then go to Azure website and generate a new resource group.
Try to generate az command for that Try to generate az command for that

View File

@ -6,3 +6,4 @@ ssh into host proxmox and execute
```bash ```bash
root@spanskiduh:~# qm set <vm_id> --cpu host root@spanskiduh:~# qm set <vm_id> --cpu host
``` ```
Next go to web interface and shut down the machine (just reboot won't work).

35
yaml.md Normal file
View File

@ -0,0 +1,35 @@
# YAML
## Have you ever wondered what the fuck are those pointers in yaml files?
Well here is [example](https://ktomk.github.io/writing/yaml-anchor-alias-and-merge-key.html) that explains it all:
```yml
---
- &CENTER { x: 1, y: 2 }
- &LEFT { x: 0, y: 2 }
- &BIG { r: 10 }
- &SMALL { r: 1 }
# All the following maps are equal:
- # Explicit keys
x: 1
y: 2
r: 10
label: center/big
- # Merge one map
<< : *CENTER
r: 10
label: center/big
- # Merge multiple maps
<< : [ *CENTER, *BIG ]
label: center/big
- # Override
<< : [ *BIG, *LEFT, *SMALL ]
x: 1
label: center/big
```