Oficina de infraestrutura como código (apresentando o Puppet)
Infraestrutura como código
-
Upload
gabriell-nascimento -
Category
Technology
-
view
421 -
download
0
Transcript of Infraestrutura como código
![Page 1: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/1.jpg)
Infraestruturacomo código
Gabriell Nascimento
![Page 2: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/2.jpg)
O que é?●Um conceito de DevOps●Automação●Provisionamento●Orquestração
![Page 3: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/3.jpg)
BD, Web, DNS,Armazenamento…
![Page 4: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/4.jpg)
BD
BD
Web
Web
Armazenamento
DNS
![Page 5: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/5.jpg)
E o que tem de mais?
Roda alguns scripts
![Page 6: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/6.jpg)
Engenharia de software●Reusabilidade●Compartilhamento●Testes●Programação em par
![Page 7: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/7.jpg)
![Page 8: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/8.jpg)
# Exemplo com Ansible$ tree ..├── playbook.yml├── hosts.txt└── roles
└── setup├── defaults
│ └── main.yml ├── files │ └── somefile └── tasks └── main.yml
$ ansible-playbook -i hosts.txt playbook.yml...
![Page 9: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/9.jpg)
$ cat hosts.txt[local]localhost ansible_connection=local
$ cat playbook.yml- hosts: all roles: - setup
$ cat roles/setup/tasks/main.yml- name: Instala pacotes básicos apt: name={{ item }} state=present update_cache=yes with_items: - vim - rsync
![Page 10: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/10.jpg)
Benefícios●Integridade●Escalonamento●Manutenção●Versionamento●Documentação
![Page 11: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/11.jpg)
Pra saber maishttps://www.thoughtworks.com/insights/blog/infrastructure-code-reason-smilehttp://www.infoq.com/presentations/infrastructure-as-codehttp://kief.com/infrastructure-as-code-versus-automation.htmlhttp://www.agileweboperations.com/the-implications-of-infrastructure-as-code
![Page 12: Infraestrutura como código](https://reader036.fdocumentos.tips/reader036/viewer/2022082722/58f322341a28ab335c8b4635/html5/thumbnails/12.jpg)
Obrigado!