Skip to content
Snippets Groups Projects
Commit a557b931 authored by Vincent Mazenod's avatar Vincent Mazenod
Browse files

cri wip

parent 32cdd3a8
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,14 @@
* puppet, chief, salt ...
## ansible Φ
* idempotence
* héritage
* réutilisabilité
* parallélisation
## ansible
* écrit en python
......@@ -146,21 +154,36 @@ ansible-playbook ansible/playbooks/ovh/duncan.yml
## variable
* pas de `-` pas de `.` pas de nuémrique pure dans les noms de variables
* dans l'inventaire
* via la ligne de commande
* dans les rôles
* default
* dans l'inventaire
* `group_vars`, `host_vars`
* extra vars (gagne toujours à la précédence)
* [héritage des variables](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#variable-precedence-where-should-i-put-a-variable)
## variable & secret
* from env ou Vault
* acces dynamique
* `ansible-vault` nous on utilise vault by HashiCorp
* https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html
## variable & secret
* [var_prompts](https://docs.ansible.com/ansible/latest/user_guide/playbooks_prompts.html)
* ceux là devraient être dans un keepass
* gitlab
* vault
## task / basic
* debug
* raw
* shell
* command
* [debug](https://docs.ansible.com/ansible/latest/modules/debug_module.html)
* [raw](https://docs.ansible.com/ansible/latest/modules/raw_module.html)
* [command](https://docs.ansible.com/ansible/latest/modules/command_module.html#command-module)
* [shell](https://docs.ansible.com/ansible/latest/modules/shell_module.html)
## task / basic
......@@ -188,7 +211,6 @@ ansible-playbook ansible/playbooks/ovh/duncan.yml
* pip
* pexpect (require pexcpect)
## roles
......@@ -215,10 +237,11 @@ ansible-galaxy install -f -r requirements.yml -p ansible/roles/public
## skeleton
https://github.com/mrjk/ansible-skel
* https://github.com/mrjk/ansible-skel
```
ansible-galaxy init --role-skeleton stack/ansible/roles/skeleton/role-with-vagrant
ansible-galaxy init --role-skeleton /path/to/stack/ansible/roles/skeletons/role-with-vagrant gitlab
```
## ansible.cfg
# aws
# bws
![aws](images/aws.png "aws")<!-- .element width="30%" -->
![bws](images/aws.png "aws")<!-- .element width="30%" -->
aka **AW**esome **S**tack
aka **B** rew **W** ired **S** tack
## requirement
* proxmox aka pve
* ansible
* terraform
* [proxmox-provisionner](https://github.com/Telmate/terraform-provider-proxmox)
* [proxmox-api](https://github.com/Telmate/proxmox-api-go)
* du love <3
## soyons honnête
Tous repose sur
* [proxmox-provisionner - pulse](https://github.com/Telmate/terraform-provider-proxmox/pulse)
* [proxmox-api - pulse](https://github.com/Telmate/proxmox-api-go/pulse)
## PCA / PRA
* mise à jour
* maquettes documentées / réutilisables
* étude de l'architecture
* procédure de démontage / d'amaigrissement
* rationalisation des projets en cours
* gestion de l'existant
* IaaS pour les projets à venir
* initiaition à terraform
* introduction à go
* notamment sur les providers proxmox / terraform
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment