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: 15,639

  1. Mighty Dog Roofing
    13768 Reikmer Ꭰr N
    Maple Grove, Minnesota 55311, United Ⴝtates
    (763) 280-5115
    efficient roof inspections

  2. excvgldx dice:

    Also, look for the bargain table nearby the front from the store full of items approximately 50 percent from the regular price. Any reputable business online puts their shopping cart solution on a secure server. This can be a common occurrence as January 1 kicks off a whole new year of pharmacy benefits and beneficiaries are locked in (with minor exceptions naturally called qualifying life events or QLEs) until the next open enrollment season in November.

  3. I discovered useful points from this.

  4. The thoroughness in this piece is praiseworthy.

  5. More content pieces like this would make the blogosphere more useful.

  6. Hello to all, how is everything, I think every one is getting more from this web page, and your views are nice
    in favor of new visitors.

  7. Ahaa, its nice discussion concerning this post at this
    place at this webpage, I have read all that, so at this time me also
    commenting here.

  8. I am sure this paragraph has touched all the internet users, its really really nice paragraph on building up new webpage.

  9. I’ll surely return to read more.

  10. My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on various websites for about a year and am anxious about switching to another platform.
    I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress
    posts into it? Any help would be greatly appreciated!

  11. More posts like this would make the web richer.

  12. https://cz-marketing-438.tor1.digitaloceanspaces.com/research/cz-marketing-(178).html
    This mom’s robe featured a striped off-the-shoulder neckline that was a
    wonderful complement to the bride’s personal wedding costume.

  13. More articles like this would make the blogosphere richer.

  14. What’s up, the whole thing is going sound here and ofcourse
    every one is sharing data, that’s genuinely excellent, keep up writing.

  15. With havin so much content and articles do you ever run into any issues
    of plagorism or copyright violation? My website has a lot of completely unique content I’ve either created myself or
    outsourced but it appears a lot of it is popping it up all over the internet without
    my agreement. Do you know any methods to help stop content from being ripped off?
    I’d really appreciate it.

  16. Thanks for putting this up. It’s a solid effort.

  17. Thanks for ones marvelous posting! I genuinely enjoyed reading it, you will be a great author.I will
    be sure to bookmark your blog and will come back later
    in life. I want to encourage you continue your great job, have a nice morning!

  18. I’ll gladly be back for more.

  19. rvbykw dice:

    “(3) The Washington Post(4) commemorated the closing having a write-up that contained just a bit of Schadenfreude. The pharmacist technician must have the prepared prescription, reviewed by way of a pharmacist, before dispensing or submitting the completed order to some patient or customer. The application deadline is within late April, but it’s best to apply much sooner.

  20. The detail in this piece is remarkable.

  21. It is not my first time to visit this website, i am browsing this website dailly and take pleasant facts
    from here daily.

  22. I took away a great deal from this.

  23. I really like what you guys tend to be up too. Such clever work and reporting!

    Keep up the superb works guys I’ve included you guys to my blogroll.

  24. Such a useful bit of content.

  25. Hi to all, it’s genuinely a fastidious for me to pay a visit this website, it consists of helpful Information.

  26. John Wright dice:

    I’ll definitely bookmark this page.

  27. I’ll surely be back for more.

  28. obdzcku dice:

    Remember the Golden Rule: As hard as it can be some times, you can obtain a lot more done in the calm friendly manner then you definitely ever will accomplish by pounding your fist on the counter. ” A good response to this just isn’t “I’m seeking a job. In order to register while using GPh – C, pharmacy technicians must obtain sometimes a 3 Level 3 qualifications.

  29. I really admired the approach this was laid out.

  30. Such a valuable bit of content.

Responder a Soho303 Cancelar respuesta