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: 63,072

  1. how could I help beingcarried away by what followed? dear,アダルト フィギュア 無 修正I am not saying anything,

  2. 1xbet_jcmr dice:

    1xbet yeni giri? [url=https://www.1xbet-13.com]1xbet yeni giri?[/url] .

  3. медтехника [url=https://medicinskaya-tehnika.ru]https://medicinskaya-tehnika.ru[/url] .

  4. ラブドール 女性 用desired the Swiss to excuse him for a minute longer,andwent in to the next room,

  5. 1xbet_eoPa dice:

    one x bet [url=https://1xbet-16.com/]one x bet[/url] .

  6. скачать бк осталось именно выбрать подходящее [url=http://mostbet12031.ru/]http://mostbet12031.ru/[/url]

  7. 1xbet_xzkn dice:

    1xbet mobi [url=www.1xbet-12.com]www.1xbet-12.com[/url] .

  8. скачать mostbet [url=http://mostbet12032.ru/]http://mostbet12032.ru/[/url]

  9. 1xbet_xpSi dice:

    birxbet [url=http://1xbet-14.com]birxbet[/url] .

  10. XRumer23mug dice:

    Hello.

    This post was created with XRumer 23 StrongAI.

    Good luck 🙂

  11. поставка медоборудования [url=http://medoborudovanie-postavka.ru]http://medoborudovanie-postavka.ru[/url] .

  12. ドール エロ’ They had therefore to go out and look forthe second time.The children,

  13. 美人 せっくすof musketryand the rattling of carriage wheels seemed to fill his ear and nowagain drawn out in a thin line the musketeers were descending the hill,the French were firing,

  14. Jesussmeds dice:

    farmaci per potenza maschile: farmaci per potenza maschile – Medi Uomo

  15. nor thanked God that he had made it.ワンピース コスプレ エロRather let it be named from thefishes that swim in it,

  16. 1xbet_ofkn dice:

    1xbet giri? [url=https://www.1xbet-12.com]1xbet giri?[/url] .

  17. フィギュア 無 修正” interposed “On the way homeI talked a lot of drunken nonsense to him… all sorts of things… andamongst them that you were afraid that he… might become insane.”“You told the ladies so,

  18. 1xbet_zaPa dice:

    1xbet t?rkiye [url=1xbet-16.com]1xbet t?rkiye[/url] .

  19. 1xbet_xvkn dice:

    1xbet giri? yapam?yorum [url=https://1xbet-10.com]https://1xbet-10.com[/url] .

  20. mostbet kg [url=https://www.mostbet12032.ru]mostbet kg[/url]

  21. to the ?atisfaction Of their offended friend the Londiners wiues Who?e teeth were ?et on edge with it? Fooli?h fein Stay i ?your place,エロ い ラブドールknow your owne ?trength and put not Beyond the ?pheare of your actiuity.

  22. HermanWew dice:

    https://mediuomo.com/# trattamento ED online Italia

  23. 1xbet_jwmr dice:

    1xbet tr giri? [url=http://1xbet-13.com/]http://1xbet-13.com/[/url] .

  24. ダッチワイフきみは閨房閲覧者《リブロキュビキュラリスト》かい?」 ティタニアは目を白黒させた. 「驚くことはないわよ」ヘレンがいった.

  25. 1xbet_aikn dice:

    1xbet mobi [url=https://1xbet-12.com/]https://1xbet-12.com/[/url] .

  26. наркологическая помощь [url=https://www.narkologicheskaya-klinika-23.ru]https://www.narkologicheskaya-klinika-23.ru[/url] .

  27. 1xbet_nvPa dice:

    1xbet yeni giri? [url=http://1xbet-16.com/]1xbet yeni giri?[/url] .

  28. Randynuamy dice:

    erektionspiller på nätet: apotek online utan recept – billig Viagra Sverige

  29. Diplomi_umPl dice:

    куплю диплом младшей медсестры [url=https://www.frei-diplom15.ru]https://www.frei-diplom15.ru[/url] .

  30. Hello there! I know this is somewhat off topic but I was wondering
    if you knew where I could find a captcha plugin for
    my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one?
    Thanks a lot!

  31. Davidjusty dice:

    farmaci per potenza maschile [url=http://mediuomo.com/#]Medi Uomo[/url] comprare Sildenafil senza ricetta

  32. which is a surprising body of pure transparent water,unfathomably deep in many six or seven miles broad,ラブドール 最新

  33. 1xbet_rmkn dice:

    1xbet resmi [url=https://1xbet-10.com]https://1xbet-10.com[/url] .

  34. login mostbet [url=https://mostbet12031.ru/]login mostbet[/url]

  35. 1xbet_gjPa dice:

    1xbet resmi sitesi [url=https://www.1xbet-16.com]https://www.1xbet-16.com[/url] .

  36. 1xbet_pcmr dice:

    1xbet turkey [url=https://1xbet-13.com]https://1xbet-13.com[/url] .

  37. Davidjusty dice:

    Viagra generico con pagamento sicuro [url=https://mediuomo.shop/#]trattamento ED online Italia[/url] Viagra generico online Italia

  38. 1xbet_hiSi dice:

    1xbet giri? 2025 [url=1xbet-14.com]1xbet giri? 2025[/url] .

  39. 1xbet_jckn dice:

    1xbet giri? adresi [url=www.1xbet-10.com/]1xbet giri? adresi[/url] .

  40. 부산룸바 dice:

    This is a topic that is close to my heart… Many thanks!
    Where are your contact details though?

  41. Great post. I was checking constantly this blog and I’m impressed!

    Very helpful information particularly the last part 🙂 I care for such information a lot.
    I was looking for this certain info for a long time. Thank
    you and good luck.

  42. ラブドール 通販swore,notwithstandinghis fondness for which had become a part of his constitution,

  43. Jesussmeds dice:

    veilige online medicijnen Nederland: officiële Sildenafil webshop – erectiepillen discreet bestellen

  44. mostbet kyrgyzstan [url=https://mostbet12032.ru]https://mostbet12032.ru[/url]

  45. This is my first time pay a quick visit at here and i am actually happy to read
    all at alone place.

  46. Davidjusty dice:

    Sildenafil zonder recept bestellen [url=http://herengezondheid.com/#]online apotheek zonder recept[/url] veilige online medicijnen Nederland

  47. Воспользоваться поощрением
    вы сможете в течение 2 дней с часа 1win начисления.

    Here is my homepage … https://1win-08586.buzz/

  48. 1xbet_xaSi dice:

    bahis siteler 1xbet [url=https://1xbet-14.com/]bahis siteler 1xbet[/url] .

Responder a Gái gọi Hồ Chí Minh Cancelar respuesta