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: 22,081

  1. pol88 dice:

    I loved as much as you’ll receive carried out right
    here. The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get bought an nervousness over that you wish be delivering the following.
    unwell unquestionably come further formerly again as exactly the same nearly a
    lot often inside case you shield this increase.

  2. Marvelous, what a web site it is! This website provides helpful facts to us, keep it up.

  3. m88 dice:

    My relatives every time say that I am killing my time here at web,
    except I know I am getting know-how daily by reading thes good posts.

  4. It’s going to be end of mine day, but before end I am
    reading this fantastic article to improve my knowledge.

  5. It’s awesome tօ pay a visit tһis web рage and reading thе
    views оf all friends on the topic of thiѕ
    article, ѡhile I am alѕo eager of ցetting experience.

    my site; Jackpot bet online

  6. Attractive component to content. I simply stumbled upon your
    website and in accession capital to assert that I acquire actually enjoyed account your weblog posts.
    Any way I’ll be subscribing on your feeds and even I achievement
    you access constantly fast.

  7. Innovative AI platform http://lumiabitai.com for crypto trading — passive income without stress. Machine learning algorithms analyze the market and manage transactions. Simple registration, clear interface, stable profit.

  8. miototo dice:

    Great weblog here! Additionally your site quite a bit up very fast!
    What host are you the use of? Can I get your associate hyperlink to your host?
    I desire my website loaded up as quickly as yours lol

  9. Innovative AI platform https://lumiabitai.com/ for crypto trading — passive income without stress. Machine learning algorithms analyze the market and manage transactions. Simple registration, clear interface, stable profit.

  10. 569 bet dice:

    I’ve been looking for something like this.

  11. AI platform https://bullbittrade.com/ for passive crypto trading. Robots trade 24/7, you earn. Without deep knowledge, without constant control. High speed, security and automatic strategy.

  12. website dice:

    Усильте позиции сайта быстро
    и эффективно!
    Закажите прогон Хрумером и ГСА по супернизкой цене — гарантия роста трафика и улучшения SEO-показателей вашего ресурса.

    Только проверенные базы и индивидуальный подход к каждому проекту.

    Увеличьте посещаемость и прибыль прямо сейчас!
    больще ифрЗДЕСЬ

  13. Yoᥙ havе made somе good pointѕ there. I ⅼooked on the net for mоre info about the issue and found most
    individuals will ɡo along ѡith your views оn tһіs
    website.

    mү web site :: chinas disfrazadas

  14. toto online dice:

    Wow! This blog looks just like my old one! It’s on a entirely different topic but it has pretty much the same layout and design. Excellent choice
    of colors!

  15. Private Blog Site Networks (PBNs) remain one of one of the
    most disputed yet powerful tools in search engine optimization. When made use
    of correctly, they can considerably increase search rankings by giving top notch
    back links. Incorrect usage can lead to penalties from Google.
    This overview describes the significance of PBNs in SEO, their advantages, risks,
    and finest techniques for risk-free and effective implementation.

  16. I’ve been looking for something like this.

  17. AI platform https://bullbittrade.com for passive crypto trading. Robots trade 24/7, you earn. Without deep knowledge, without constant control. High speed, security and automatic strategy.

  18. situs toto dice:

    Wonderful site. Plenty of helpful info here. I am sending it to several pals ans also
    sharing in delicious. And certainly, thank you on your sweat!

  19. diamond game dice:

    Your blog always inspires me.

  20. 购买伟哥 dice:

    Hey there! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good success. If you know of any please share.
    Many thanks!

  21. 토닥이 여성전용마사지는 오직 여성만을 위한 전국
    출장 전문 마사지 서비스입니다.
    대한민국 최초의 여성 전용 마사지 플랫폼으로서 수많은
    여성 고객에게 사랑받고

  22. toto dice:

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

  23. Roof dice:

    Your style is very unique in comparison to other folks I have read stuff from.
    I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this web site.

  24. Hello! I know this is kinda off topic however I’d figured
    I’d ask. Would you be interested in exchanging links or
    maybe guest writing a blog post or vice-versa?
    My website goes over a lot of the same subjects as yours and I
    believe we could greatly benefit from each other. If you
    are interested feel free to send me an e-mail. I look forward to hearing from you!
    Terrific blog by the way!

  25. 1win dice:

    This is gold, thank you!

Responder a Billionaire Brain Wave Reviews Cancelar respuesta