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,890

  1. hi88 dice:

    always i used to read smaller posts which also clear their motive, and that is also happening with this post which I am reading at this time.

  2. Joshuatop dice:

    Chao anh em, n?u anh em dang ki?m c?ng game khong b? ch?n d? g? g?c Da Ga d?ng b? qua con hang nay. T?c d? ban th?: bj88. V? b? thanh cong.

  3. hi88 dice:

    I delight in, lead to I discovered exactly what I used to be looking for. You’ve ended my 4 day long hunt! God Bless you man. Have a nice day. Bye

  4. I am extremely impressed with your writing skills as well as with
    the layout on your weblog. Is this a paid theme or did you modify it yourself?
    Either way keep up the excellent quality writing, it is rare to see
    a nice blog like this one nowadays.

  5. hi88 dice:

    I wanted to thank you for this fantastic read!! I absolutely enjoyed every little bit of it. I’ve got you book-marked to check out new things you post…

  6. hi88 dice:

    Hi there, You have done an incredible job. I will certainly digg it and personally recommend to my friends. I am sure they’ll be benefited from this website.

  7. hi88 dice:

    Hurrah! At last I got a website from where I be capable of actually obtain useful data regarding my study and knowledge.

  8. дайсон санкт петербург [url=https://dn-pylesos-2.ru/]dn-pylesos-2.ru[/url] .

  9. hi88 dice:

    Ahaa, its fastidious discussion regarding this post here at this website, I have read all that, so at this time me also commenting at this place.

  10. It’s going to be finish of mine day, but before
    ending I am reading this impressive post to improve my knowledge.

  11. ShawnWer dice:

    Il ambiente Nomini casino en ligne si propone come una piattaforma Nomini

  12. ShawnWer dice:

    Il ambiente Nomini casino en ligne si propone come una piattaforma https://gpyouhak.com/gpy/bbs/board.php?bo_table=free&wr_id=3755960

  13. I’m sharing this with our content team. We’ve been struggling to explain why “quality over quantity” isn’t just a cliché, and this illustrates it perfectly.

  14. hi88 dice:

    I’m amazed, I have to admit. Rarely do I encounter a blog that’s equally educative and entertaining, and without a doubt, you have hit the nail on the head. The issue is something which too few folks are speaking intelligently about. I am very happy I found this during my search for something concerning this.

  15. MichaelHinty dice:

    Follicle Insight: get cheap propecia – propecia medication

  16. Edwardjania dice:

    can you buy cheap clomid without rx [url=https://fertilitypctguide.us.com/#]fertility pct guide[/url] fertility pct guide

  17. visitor dice:

    Chip goals, delicate finishes over goalkeepers tracked live

  18. pinup_lkOt dice:

    cómo iniciar sesión en pin up [url=https://www.pinup2003.help]https://www.pinup2003.help[/url]

  19. hi88 dice:

    Why people still use to read news papers when in this technological world the whole thing is available on net?

  20. 타임케어 인천출장홈타이는 고객이
    있는 곳으로 24시간 언제든 찾아가는 프리미엄 홈케어 마사지 서비스입니다.
    인천 시 전 지역에서 출장 홈타이를 제공

  21. hi88 dice:

    Hmm is anyone else experiencing problems with the images on this blog loading? I’m trying to find out if its a problem on my end or if it’s the blog. Any responses would be greatly appreciated.

  22. hi88 dice:

    I am really impressed with your writing talents and also with the structure for your weblog. Is that this a paid theme or did you modify it your self? Anyway stay up the nice high quality writing, it is rare to look a great blog like this one nowadays..

  23. pinup_rfPa dice:

    pin-up depozit alınmadı [url=https://www.pinup2009.help]https://www.pinup2009.help[/url]

  24. xxxx dice:

    塔尔萨之王高清完整版AI深度学习内容匹配,海外华人可免费观看最新热播剧集。

  25. visitor dice:

    Free kick goals direct, curling efforts over the wall tracked

  26. hi88 dice:

    Highly energetic blog, I loved that bit. Will there be a part 2?

  27. MichaelHinty dice:

    ivermectin 500ml: purchase ivermectin – stromectol order

Responder a vn888 Cancelar respuesta