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: 116,996

  1. RichardHex dice:

    I was wondering about buying generic pills online. I saw a cool archive that compares affordable options: п»їhttps://polkcity.us.com/# pharmacy mexico city. Check it out.

  2. Danielsnoni dice:

    п»їRecently, I stumbled upon a helpful report about cheap Indian generics. It covers WHO-GMP protocols for ED medication. For those interested in reliable shipping to USA, visit this link: п»їhttps://kisawyer.us.com/# top online pharmacy india. Good info.

  3. Danielsnoni dice:

    п»їJust now, I found an informative report concerning ordering meds from India. It covers WHO-GMP protocols on prescriptions. If you are looking for Trusted Indian sources, go here: п»їhttps://kisawyer.us.com/# cheapest online pharmacy india. Might be useful.

  4. flashburn dice:

    on online-winz flashburn we offer more than 6000 virtual slot machines – free and in demo versions.

  5. WOW just what I was looking for. Came here by searching
    for Long-term Rent a car Sri Lanka
    rental Sri Lanka

  6. situs slot dice:

    Hi, I think your site might be having browser compatibility issues.
    When I look at your website in Opera, it
    looks fine but when opening in Internet Explorer, it has
    some overlapping. I just wanted to give you a quick heads up!
    Other then that, superb blog!

  7. Your article helped me a lot, is there any more related content? Thanks! https://www.binance.info/pt-PT/register?ref=KDN7HDOR

  8. Danielsnoni dice:

    п»їActually, I discovered a great page concerning Indian Pharmacy exports. It covers the manufacturing standards on prescriptions. In case you need factory prices, read this: п»ї[url=https://kisawyer.us.com/#]reading[/url]. Worth a read.

  9. Danielsnoni dice:

    п»їTo be honest, I stumbled upon a great report regarding ordering meds from India. It covers CDSCO regulations on prescriptions. If anyone wants factory prices, read this: п»ї[url=https://kisawyer.us.com/#]website[/url]. It helped me.

  10. elitbet dice:

    still , specific casino not yet comments buyers. The table below
    contains information about the languages used at
    the elitbet elitbet.

  11. Diplomi_mtSn dice:

    где можно купить диплом медсестры [url=frei-diplom13.ru]где можно купить диплом медсестры[/url] .

  12. Adult content site offers a range of videos for adult entertainment.
    Select secure adult sites for a safe experience.

    Feel free to surf to my web blog – ONLINE VIAGRA PHARMACY

  13. nk88 dice:

    Great post. I used to be checking constantly this blog and
    I am inspired! Very helpful information specially the remaining part
    🙂 I maintain such info a lot. I was seeking this particular info for a long time.
    Thank you and best of luck.

  14. Diplomi_inPt dice:

    купил аттестат за 9 класс [url=http://r-diploma26.ru]купил аттестат за 9 класс[/url] .

  15. RichardHex dice:

    Quick question about buying generic pills online. I discovered a decent archive that compares best pharmacies: п»їhttps://polkcity.us.com/# mexican pharmacies that ship to the united states. Any thoughts?.

  16. Danielsnoni dice:

    п»їActually, I discovered an interesting report regarding generic pills from India. It covers WHO-GMP protocols for generic meds. If anyone wants reliable shipping to USA, go here: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Good info.

  17. LloydRop dice:

    I was wondering about ordering meds from Mexico. I discovered a decent post that lists trusted vendors: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url]. Seems useful..

  18. Ralphkic dice:

    п»їRecently, I came across an informative page concerning cheap Indian generics. It explains CDSCO regulations for ED medication. In case you need reliable shipping to USA, take a look: п»їthis link. Good info.

  19. Diplomi_ydSn dice:

    можно ли купить диплом медсестры [url=https://frei-diplom13.ru/]можно ли купить диплом медсестры[/url] .

  20. Ralphkic dice:

    п»їJust now, I stumbled upon a helpful article concerning cheap Indian generics. It explains CDSCO regulations for generic meds. If anyone wants factory prices, check this out: п»ї[url=https://kisawyer.us.com/#]online pharmacy india[/url]. Hope it helps.

  21. Danielsnoni dice:

    п»їRecently, I found a useful page regarding generic pills from India. It covers the manufacturing standards for generic meds. In case you need cheaper alternatives, read this: п»їfollow. Might be useful.

  22. Ralphkic dice:

    п»їActually, I stumbled upon an interesting guide concerning buying affordable antibiotics. It details WHO-GMP protocols for ED medication. In case you need reliable shipping to USA, go here: п»ї[url=https://kisawyer.us.com/#]reputable indian pharmacies[/url]. Worth a read.

  23. Danielsnoni dice:

    п»їActually, I found a useful report about ordering meds from India. The site discusses how to save money for ED medication. For those interested in reliable shipping to USA, go here: п»їhttps://kisawyer.us.com/# reputable indian online pharmacy. Good info.

  24. моды dice:

    You actually make it seem so easy together with your presentation but I find this topic
    to be really one thing that I believe I’d by no means understand.
    It sort of feels too complicated and extremely extensive for me.
    I’m having a look forward to your next put up, I will
    attempt to get the hold of it!

Responder a city car driving cheat codes Cancelar respuesta