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: 93,031

  1. GlennDiz dice:

    buy amoxicillin: buy amoxicillin – Buy Amoxicillin for tooth infection

  2. We have been helping Canadians Get a Loan Against
    Their Vehicle for Repairs Since March 2009 and are among the
    very few Completely Online Lenders In Canada.
    With us you can obtain a Car Repair Loan Online from anywhere in Canada as long
    as you have a Fully Paid Off Vehicle that is 8 Years old or newer.

    We look forward to meeting all your financial needs.

  3. I personally find that the checking analytics process is simple and the easy onboarding makes it even better. Definitely recommend to anyone in crypto.

  4. кухни спб на заказ [url=www.kuhni-spb-4.ru/]www.kuhni-spb-4.ru/[/url] .

  5. and minerals than refined grains.ラブドール エロThe analysis states that a high intake of whole grains helps protect against many health conditions,

  6. Хорошие ссылки помогают блогу быстрее расти и развиваться.

    Прогон Хрумером под ключ прогон сайта хрумером для траста соцсетей — это необычный, но эффективный ход.

  7. Kendall here — I’ve tried portfolio tracking and the seamless withdrawals impressed me.

  8. Diplomi_arki dice:

    купить диплом техникума образец пять плюс [url=http://frei-diplom9.ru/]купить диплом техникума образец пять плюс[/url] .

  9. Diplomi_mlon dice:

    купить диплом строителя [url=http://rudik-diplom11.ru]купить диплом строителя[/url] .

  10. ラブドール 風俗in common with others,that Bingleypreferred your elder sister to any other young woman in the country.

  11. ставки на футбол сегодня [url=www.prognozy-na-futbol-10.ru/]ставки на футбол сегодня[/url] .

  12. The staking process is simple and the clear transparency makes it even better. The mobile app makes daily use simple.

  13. GlennDiz dice:

    ClomiCare USA: Buy Clomid online – Clomid price

  14. to get a promotion,人形 エロbuy their own apartment/car,

  15. aptos 2025 dice:

    I personally find that the interface is useful analytics, and I enjoy using the mobile app here.

  16. エロ ラブドールStart your list early so you can complete some things that can be done ahead of time.[1] Don’t rush through your tasks,

  17. and closed on something.lovedollIt was a small Chinesebox of black and gold-dust lacquer,

  18. I’ve been using it for half a year for staking, and the easy onboarding stands out.

  19. I personally find that casey here — I’ve tried swapping tokens and the intuitive UI impressed me.

  20. современное медицинское оборудование [url=https://xn—–6kcdfldbfd2aga1bqjlbbb4b4d7d1fzd.xn--p1ai/]xn—–6kcdfldbfd2aga1bqjlbbb4b4d7d1fzd.xn--p1ai[/url] .

  21. The cross-chain transfers process is simple and the accurate charts makes it even better. I moved funds across chains without a problem.

  22. please join us for our annual holiday office party.Everyone at Harper’s Toy Box wants to wish you a very prosperous new year!Thank you for your business and support.ラブドール 男

  23. オナホEnjoy the magic of the season and return with a heart full of stories to share.May your break be filled with joyous moments and the company of those you hold dear.

  24. кухня на заказ спб [url=kuhni-spb-4.ru]kuhni-spb-4.ru[/url] .

  25. DavidbaK dice:

    buy zithromax [url=https://zithromedsonline.com/#]generic zithromax[/url] cheap zithromax

  26. ставки на футбол [url=prognozy-na-futbol-10.ru]ставки на футбол[/url] .

  27. прогнозы хоккей [url=http://www.prognozy-na-khokkej5.ru]прогнозы хоккей[/url] .

  28. Thank you for some other informative site. Where else could I get that type of info written in such an ideal way?
    I have a mission that I am simply now operating on, and I’ve been at the glance out for such information.

  29. リアル ラブドールEVs produce zero emissions,making them a cleaner alternative to gasoline-powered cars.

  30. This is my first time pay a visit at here and i am really pleassant to read all at single place.

  31. Whats up very cool blog!! Man .. Beautiful .. Wonderful ..
    I will bookmark your website and take the feeds additionally?
    I’m glad to search out numerous useful info right here
    in the submit, we’d like work out extra techniques in this regard, thank you for sharing.

    . . . . .

  32. Diplomi_yion dice:

    купить диплом в находке [url=https://rudik-diplom11.ru]купить диплом в находке[/url] .

  33. AlbertMuh dice:

    Металлопрокат в Сургуте ЖБИ ХМАО Производим и поставляем ЖБИ изделия в ХМАО. В нашем ассортименте: плиты перекрытия, фундаментные блоки, сваи, кольца колодцев и другие железобетонные изделия. Высокое качество, соответствие ГОСТ, выгодные цены. Осуществляем доставку по всему Ханты-Мансийскому автономному округу. Закажите ЖБИ у проверенного производителя!

  34. The fiat on-ramp tools are easy onboarding and trustworthy service.

  35. I blog often and I truly thank you for your information. Your article has truly peaked my interest.

    I will bookmark your site and keep checking for new information about
    once a week. I subscribed to your Feed too.

  36. The testing new tokens process is simple and the scalable features makes it even better.

  37. I’ve been active for over two years, mostly for trading, and it’s always responsive team.

  38. GlennDiz dice:

    Best place to buy propecia: Best place to buy propecia – Propecia buy online

  39. Good day! This is kind of off topic but I need some help from
    an established blog. Is it very difficult to set up your own blog?
    I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about setting up my own but I’m not sure where to
    start. Do you have any points or suggestions?
    Cheers

  40. I’ve been using it for almost a year for fiat on-ramp, and the trustworthy service stands out.

  41. I was skeptical, but after a few days of fiat on-ramp, the fast transactions convinced me.

  42. 68WIN dice:

    Hi there, this weekend is pleasant in favor of me, as this time i am reading this impressive educational post here at my home.

  43. оборудование для клиник [url=xn—–6kcdfldbfd2aga1bqjlbbb4b4d7d1fzd.xn--p1ai]xn—–6kcdfldbfd2aga1bqjlbbb4b4d7d1fzd.xn--p1ai[/url] .

  44. StephenSef dice:

    Fantastic blog you have here but I was wanting to know if you knew of any message boards that cover the same topics discussed in this article? I’d really love to be a part of online community where I can get comments from other experienced people that share the same interest. If you have any recommendations, please let me know. Bless you!
    keepstyle

Responder a pendle token market Cancelar respuesta