saa Infraestructura como código – Politraining

Infraestructura como código

Festival Politraining Industria 4.0

Infraestructura como código

En este nuevo artículo me gustaría explicar que es infraestructura
como código (IAC), pero primero definamos a que nos referimos cuando
hablamos sobre infraestructura.
Cuando hablamos de infraestructura nos referimos en este caso, a un
servidor(vps) , dominios, redes privadas. etc.

Definición

El concepto de infraestructura como código no es más que la forma de
automatización de nuestra infraestructura a través de código .

Puede que tu seas un freelance o trabajes en una compañía, en la que
constantemente se hace deploy de nuevas aplicaciones.
Imagina tener que estar creando un servidor(vps), agregando las llaves
ssh, creando un record A, load balancers, continuar con la instalación y
configuración de nginx ,mysql docker, php, etc. Todo esto cada vez que
tengas que hacer deploy de una nueva aplicación.
Este es un proceso en el que muchas veces se le dedica tiempo
innecesario.

Es por ello que muchas veces, es mejor encontrar o crear una solución para la automatización en este tipo de procesos.

Para poder trabajar o usar infraestructura como código, lo único que
tenemos que hacer es bien, crear nuestro propio script, o bien usar
alguna herramienta de un tercero.

Usualmente cuando trabajamos con infraestructura como código,
independiente de la herramienta que usamos, siempre trabajamos con algún
lenguaje para la descripción de la configuración, pudiendo ser json,
yaml o algún nuevo lenguaje propio del software (domain-specific
language ). dentro del archivo de configuración, es donde definiremos
todo los componentes necesarios para crear nuestra infraestructura,
variando de sintaxis entre los diferentes softwares que podemos usar.

Cabe mencionar que, usualmente este tipo de software nos permite,
configurar a nuestra infraestructura, de una manera muy detallada,
dependiendo del tipo de proveedor que elijamos , por ejemplo, poder
configurar redes privadas, sistema operativo, podemos agregar dominios,
subdominios , agregar nuestra claves ssh, elegir el datacenter etc. Algo
interesante es que, podemos agregar y ejecutar scripts dentro del vps
durante la construcción, esto para poder configurar dentro todo el
software.

Aunque de igual forma, tenemos otro concepto llamado configuración
como código (CaC)
Qué es exactamente el mismo concepto, pero este está orientado a la
configuración del software dentro de la infraestructura(vps), por
ejemplo la instalación y configuración de nginx, docker, ruby etc. Sin
embargo muchas veces los mismos proveedores (IaC) tienen la misma
funcionalidad o su funcionalidad es intercambiable.

Ventajas y desventajas.

Dentro de las ventajas como hemos mencionado es el de elaborar una
plantilla que podemos re-utilizar múltiples veces, eliminando la
necesidad de realizar configuraciones manuales. Esta sería, la principal
y más importante característica de este tipo de software.
Ya que con ello podemos hacer la replicación de la misma configuración,
para diferentes entornos, para testing, QA, producción, desarrollo, etc.

Otra ventaja que podemos encontrar es que usualmente este tipo de
software es del tipo agnóstico lo que quiere decir que no importa, el
proveedor en donde estés configurando nuestra infraestructura, pudiendo
ser digital ocean, amazon web services, azure, e inclusive virtualbox.

Una desventaja que podemos encontrar es quizá el tiempo que le
dedicamos en configurar nuestro archivo de configuración, así mismo, el
tener que modificar el archivo si es que agregamos una nueva tecnología o
configuración a nuestra infraestructura.

Lista de software para IaC y CaC

Debajo vemos una lista con varios de los proveedores de infraestructura y configuración como código más sobresalientes.
Cada uno de ellos comparten cierta similitud, en cuanto a configuración.

  • Terraform
  • Chef
  • Puppet
  • Ansible
  • SaltStack

Conclusión

La automatización es sin duda una de las mejores cosas que podemos
hacer para ahorrar tiempo y muchas veces recursos.
El uso de IaC, dentro de una empresa o de manera independiente trae
muchas ventajas a largo plazo. Este concepto de IaC no es para nada
nuevo, es un concepto de muchos años. De hecho muchos autores. hacen
referencia a que este concepto fue la base de la cual ha surgido toda
esta tendencia del devops.
Espero que este pequeño artículo te haya servido, o te haya incentivado a
investigar más sobre el tema, y tal vez a aprender una nueva
tecnología.

Comments: 137,189

  1. winpot dice:

    I think this is one of the most significant information for me. And i’m glad reading your article. But wanna remark on few general things, The site style is ideal, the articles is really excellent : D. Good job, cheers

  2. BobbyCem dice:

    The majority of us appreciate making several dollars through Sekabet casino

  3. When someone writes an paragraph he/she keeps the plan of a user in his/her
    brain that how a user can know it. Therefore that’s why this piece of writing is perfect.
    Thanks!

  4. winpot dice:

    It’s very straightforward to find out any matter on net as compared to textbooks, as I found this article at this web site.

  5. winpot dice:

    Greetings! I’ve been following your blog for a while now and finally got the bravery to go ahead and give you a shout out from New Caney Texas! Just wanted to tell you keep up the great job!

  6. winpot dice:

    Hi there Dear, are you really visiting this web site regularly, if so after that you will absolutely take pleasant knowledge.

  7. Joshuatop dice:

    Hi cac bac, bac nao mu?n tim san choi d?ng c?p d? choi Tai X?u thi xem th? d?a ch? nay. N?p rut 1-1: [url=https://gramodayalawcollege.org.in/#]Dola789[/url]. Chuc cac bac r?c r?.

  8. Joshuatop dice:

    Xin chao 500 anh em, ai dang tim san choi d?ng c?p d? choi Tai X?u thi tham kh?o ch? nay. Dang co khuy?n mai: https://gramodayalawcollege.org.in/#. Chuc anh em may m?n.

  9. Louiscaf dice:

    Hello mọi người, người anh em nào cần nhà cái uy tín để giải trí Tài Xỉu thì tham khảo chỗ này. Không lo lừa đảo: [url=https://homemaker.org.in/#]Game bài đổi thưởng[/url]. Về bờ thành công.

  10. winpot dice:

    These are genuinely enormous ideas in concerning blogging. You have touched some fastidious points here. Any way keep up wrinting.

  11. поездка в питер отзывы и рекомендации туристов [url=https://tury-v-piter.ru/]поездка в питер отзывы и рекомендации туристов[/url] .

  12. прогулки по петербургу официальный сайт [url=https://tury-v-piter.ru/]прогулки по петербургу официальный сайт[/url] .

  13. пылесос dyson [url=https://pylesos-dn-6.ru/]pylesos-dn-6.ru[/url] .

  14. winpot dice:

    This site definitely has all the information and facts I needed about this subject and didn’t know who to ask.

  15. Joshuatop dice:

    Hi cac bac, bac nao mu?n tim c?ng game khong b? ch?n d? choi Casino thi tham kh?o d?a ch? nay. Dang co khuy?n mai: https://pacebhadrak.org.in/#. Chuc anh em may m?n.

  16. Joshuatop dice:

    Chao anh em, n?u anh em dang ki?m trang choi xanh chin d? cay cu?c Game bai thi xem th? con hang nay. Khong lo l?a d?o: https://gramodayalawcollege.org.in/#. Chi?n th?ng nhe.

  17. StephenPhoth dice:

    Chào anh em, ai đang tìm chỗ nạp rút nhanh để cày cuốc Đá Gà thì xem thử con hàng này. Đang có khuyến mãi: [url=https://gramodayalawcollege.org.in/#]Link vào Dola789[/url]. Húp lộc đầy nhà.

  18. AnthonyZex dice:

    Hi các bác, bác nào muốn tìm trang chơi xanh chín để giải trí Tài Xỉu thì vào ngay con hàng này. Không lo lừa đảo: [url=https://pacebhadrak.org.in/#]Đăng nhập BJ88[/url]. Chúc anh em may mắn.

  19. winpot dice:

    Having read this I thought it was really informative. I appreciate you spending some time and effort to put this content together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worthwhile!

  20. winpot dice:

    I’m extremely inspired with your writing skills and also with the structure in your weblog. Is that this a paid topic or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to look a nice weblog like this one today..

  21. Həqiqətən demək istəyirəm ki, bu saytı tapdığıma şadam.

    Pinco platforma

  22. winpot dice:

    You can certainly see your skills in the article you write. The sector hopes for more passionate writers such as you who aren’t afraid to mention how they believe. All the time follow your heart.

  23. winpot dice:

    Good post! We will be linking to this particularly great content on our site. Keep up the great writing.

  24. Joshuatop dice:

    Chao anh em, bac nao mu?n tim trang choi xanh chin d? g? g?c Casino d?ng b? qua ch? nay. Khong lo l?a d?o: Link khong b? ch?n. Chuc cac bac r?c r?.

  25. winpot dice:

    Paragraph writing is also a excitement, if you be familiar with afterward you can write if not it is difficult to write.

  26. AnthonyZex dice:

    Hi các bác, bác nào muốn tìm trang chơi xanh chín để giải trí Game bài thì vào ngay địa chỉ này. Không lo lừa đảo: [url=https://homemaker.org.in/#]sun win[/url]. Chúc anh em may mắn.

  27. Leon BK dice:

    Spot on with this write-up, I truly feel this web site needs a great
    deal more attention. I’ll probably be back again to read more, thanks for the information!

  28. Louiscaf dice:

    Hello mọi người, người anh em nào cần cổng game không bị chặn để cày cuốc Game bài đừng bỏ qua trang này nhé. Không lo lừa đảo: [url=https://gramodayalawcollege.org.in/#]Dola789 đăng nhập[/url]. Chúc anh em may mắn.

  29. Joshuatop dice:

    Chao anh em, n?u anh em dang ki?m ch? n?p rut nhanh d? cay cu?c Tai X?u thi tham kh?o trang nay nhe. Khong lo l?a d?o: https://homemaker.org.in/#. V? b? thanh cong.

  30. Louiscaf dice:

    Chào anh em, ai đang tìm trang chơi xanh chín để cày cuốc Game bài đừng bỏ qua trang này nhé. Đang có khuyến mãi: https://pacebhadrak.org.in/#. Húp lộc đầy nhà.

  31. Joshuatop dice:

    Hi cac bac, bac nao mu?n tim trang choi xanh chin d? gi?i tri N? Hu d?ng b? qua d?a ch? nay. Khong lo l?a d?o: https://homemaker.org.in/#. V? b? thanh cong.

  32. winpot dice:

    Every weekend i used to pay a quick visit this web site, as i wish for enjoyment, for the reason that this this web site conations really fastidious funny information too.

  33. winpot dice:

    Remarkable! Its truly amazing post, I have got much clear idea concerning from this post.

  34. Hey there! I could have sworn I’ve been to this site before but after checking through some of the post I realized
    it’s new to me. Nonetheless, I’m definitely glad I found it
    and I’ll be book-marking and checking back often!

Responder a 記帳士 好考嗎 Cancelar respuesta