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: 136,271

  1. 撥筋課程 dice:

    https://ameblo.jp/kerrynamos5774/entry-12954327596.html
    There are plenty of options out there for plus dimension mom
    of the bride clothes.

  2. It’s an amazing paragraph in favor of all the internet people;
    they will get benefit from it I am sure.

  3. https://ognklbl.amebaownd.com/posts/58354780
    Even better, it’ll look great paired with heeled or flat sandals—whichever helps you are feeling your greatest
    on the dance ground.

  4. My family always say that I am wasting my time here at net,
    except I know I am getting familiarity everyday by reading thes fastidious articles or reviews.

  5. KevinLew dice:

    Xin chao 500 anh em, ai dang tim c?ng game khong b? ch?n d? gi?i tri Casino d?ng b? qua d?a ch? nay. Dang co khuy?n mai: [url=https://homemaker.org.in/#]sun win[/url]. Chuc anh em may m?n.

  6. StephenPhoth dice:

    Hello mọi người, nếu anh em đang kiếm cổng game không bị chặn để giải trí Nổ Hũ thì xem thử địa chỉ này. Không lo lừa đảo: [url=https://pacebhadrak.org.in/#]BJ88[/url]. Húp lộc đầy nhà.

  7. Hey there! Someone in my Myspace group shared this website with us so I came to look
    it over. I’m definitely loving the information. I’m bookmarking and will
    be tweeting this to my followers! Exceptional blog and outstanding design and style.

  8. AnthonyZex dice:

    Hi các bác, bác nào muốn tìm chỗ nạp rút nhanh để giải trí Nổ Hũ thì xem thử chỗ này. Uy tín luôn: [url=https://gramodayalawcollege.org.in/#]Tải app Dola789[/url]. Chúc các bác rực rỡ.

  9. gbgbet dice:

    Howdy! This blog post couldn’t be written much better! Reading through this article reminds me of my previous roommate! He constantly kept preaching about this. I am going to send this information to him. Pretty sure he’ll have a great read. Many thanks for sharing!

  10. mostbet_glmn dice:

    mostbet acces [url=www.mostbet2008.help]www.mostbet2008.help[/url]

  11. https://brainy-randie-4h2ixtzm.dcms.site/
    So lengthy as you’ve got got the soonlyweds’ approval,
    there’s absolutely nothing wrong with an allover sequin gown.

  12. StephenPhoth dice:

    Chào anh em, ai đang tìm sân chơi đẳng cấp để gỡ gạc Game bài thì tham khảo địa chỉ này. Đang có khuyến mãi: sunwin. Về bờ thành công.

  13. gbgbet dice:

    Ahaa, its pleasant discussion concerning this post at this place at this website, I have read all that, so now me also commenting at this place.

  14. gbgbet dice:

    Touche. Sound arguments. Keep up the good effort.

  15. When I originally commented I clicked the “Notify me when new comments are added” checkbox and
    now each time a comment is added I get three e-mails with the same
    comment. Is there any way you can remove me from that service?
    Appreciate it!

  16. gbgbet dice:

    Just wish to say your article is as surprising. The clarity in your post is just great and i can assume you’re an expert on this subject. Fine with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the rewarding work.

  17. gbgbet dice:

    Spot on with this write-up, I absolutely think this web site needs far more attention. I’ll probably be returning to read through more, thanks for the information!

Responder a WalterMup Cancelar respuesta