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: 58,537

  1. пин ап пополнение счёта [url=http://pinup5008.ru]http://pinup5008.ru[/url]

  2. Josephthemi dice:

    cialis prix: Intimi Santé – achat discret de Cialis 20mg

  3. Traders may be in a zone of risk, as there are no regulatory authorities overseeing their
    transactions or protecting their funds binarium on binarium.

    Stop by my website; https://web-binarium.org/

  4. список seo агентств [url=https://www.reiting-seo-kompanii.ru]https://www.reiting-seo-kompanii.ru[/url] .

  5. pin up uz [url=pinup5008.ru]pinup5008.ru[/url]

  6. at length he started a dispute upon the hackneyedcomparison betwixt blank verse and rhyme,オナホ フィギュアand the professors opened withgreat clamour,

  7. лечение запоя
    narkolog-krasnodar019.ru
    экстренный вывод из запоя краснодар

  8. технический английский перевод [url=http://dzen.ru/a/aPFFa3ZMdGVq1wVQ/]http://dzen.ru/a/aPFFa3ZMdGVq1wVQ/[/url] .

  9. kitu360com dice:

    It’s awesome in favor of me to have a web page, which is useful
    in support of my experience. thanks admin

  10. Ꭺ片 dice:

    I really like reading through a post that will make men and women think.

    Also, thanks for permitting me to comment!

    Here is my blog post … Ꭺ片

  11. Cierra Purdy dice:

    Your blog is a treasure trove of valuable insights and thought-provoking commentary. Your dedication to your craft is evident in every word you write. Keep up the fantastic work!

  12. viagra ultra dice:

    Mark Wilhelm, the man who infamously fed 42-year-old mother-of-three Dianne Brimble
    the toxic dose of the date rape drug Fantasy which killed her on the floor
    of his cruise ship cabin, is back in Adelaide after fleeing town almost 20 years ago.

  13. Mickeylurne dice:

    http://pilloleverdi.com/# acquisto farmaci con ricetta

  14. медицинский перевод справок [url=http://telegra.ph/Medicinskij-perevod-tochnost-kak-vopros-zhizni-i-zdorovya-10-16/]http://telegra.ph/Medicinskij-perevod-tochnost-kak-vopros-zhizni-i-zdorovya-10-16/[/url] .

  15. медицинский технический перевод [url=teletype.in/@alexd78/HN462R01hzy]teletype.in/@alexd78/HN462R01hzy[/url] .

  16. The other day, while I was at work, my cousin stole my iphone
    and tested to see if it can survive a 40 foot drop,
    just so she can be a youtube sensation. My apple
    ipad is now broken and she has 83 views. I know this is completely off topic but I had to share it with someone!

  17. pin up slot o‘yinlari [url=https://pinup5007.ru/]https://pinup5007.ru/[/url]

  18. seo marketing agency ranking [url=http://www.reiting-seo-kompaniy.ru]http://www.reiting-seo-kompaniy.ru[/url] .

  19. seo продвижение рейтинг компаний [url=http://seo-prodvizhenie-reiting.ru]http://seo-prodvizhenie-reiting.ru[/url] .

  20. пин ап авиатор взлом [url=pinup5008.ru]пин ап авиатор взлом[/url]

  21. infinitalink.click – Hoping they add more transparency and user experiences/testimonials in upcoming updates.

  22. findnewopportunitieshere.click – The layout seems clean and inviting, good first impression.

  23. пин ап мобильный вход [url=https://pinup5007.ru]https://pinup5007.ru[/url]

  24. быстрое сео продвижение сайта [url=http://reiting-runeta-seo.ru/]http://reiting-runeta-seo.ru/[/url] .

  25. Так, https://lulu-castagnette.ru/ в 1996 году появляется бренд lulu castagnette.

    мысль организации модного бренда принадлежит Шарлему Шами и бетона жене.

  26. Neal Brucken dice:

    inspiredailyandgrow.click – Mobile browsing was smooth, site seems responsive which is a plus for me.

  27. Raymondseazy dice:

    acheter Cialis en ligne France: Cialis générique pas cher – IntimiSanté

  28. Zetta Denton dice:

    startsomethingamazingtoday.click – The layout is clean and navigation felt smooth during a quick glance.

  29. Diplomi_opka dice:

    купить диплом в петрозаводске [url=rudik-diplom1.ru]купить диплом в петрозаводске[/url] .

  30. Diplomi_hzSn dice:

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

  31. pin up bonus aktivatsiya [url=www.pinup5008.ru]www.pinup5008.ru[/url]

  32. Diplomi_ocOr dice:

    можно ли в техникуме купить диплом [url=www.frei-diplom12.ru/]можно ли в техникуме купить диплом[/url] .

  33. Hey! I know this is kinda off topic but I was wondering if you knew where I could locate a captcha plugin for my
    comment form? I’m using the same blog platform as yours and I’m having
    problems finding one? Thanks a lot!

  34. Georgevot dice:

    livraison rapide et confidentielle [url=http://intimisante.com/#]achat discret de Cialis 20mg[/url] Cialis générique pas cher

  35. Diplomi_bqMt dice:

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

  36. Great article, thank you for sharing these insights! I’ve tested many methods for building backlinks, and what really worked for me was using AI-powered automation. With us, we can scale link building in a safe and efficient way. It’s amazing to see how much time this saves compared to manual outreach. https://seoexpertebamberg.de/

  37. Raymondseazy dice:

    cialis kaufen: cialis 20mg preis – cialis generika

  38. LarryLag dice:

    https://tadalafiloexpress.shop/# farmacia online fiable en Espana

  39. of course like your website but you have to check the spelling on several of your posts A number of them are rife with spelling issues and I in finding it very troublesome to inform the reality on the other hand I will certainly come back again

  40. компании по продвижению сайта [url=www.reiting-kompanii-po-prodvizheniyu-sajtov.ru]www.reiting-kompanii-po-prodvizheniyu-sajtov.ru[/url] .

  41. Ahmed Johns dice:

    Your blog is a testament to your expertise and dedication to your craft. I’m constantly impressed by the depth of your knowledge and the clarity of your explanations. Keep up the amazing work!

  42. seo топ 10 [url=seo-prodvizhenie-reiting.ru]seo-prodvizhenie-reiting.ru[/url] .

  43. It is appropriate time to make some plans for the future and it’s
    time to be happy. I’ve read this post and if I could I wish to suggest you some interesting things or suggestions.
    Perhaps you can write next articles referring to this article.
    I desire to read even more things about it!

  44. Briam dice:

    [url=https://engage.alaska.edu/uas/page.aspx?pid=534&dgs2366=3&rid2366=16596&tid2366=10750/]how to spot fake shoes nike[/url] – where to buy rep

    [img]https://im.gurl.eu.org/file/AgACAgEAAxkDAAEBPCdobOMz7TNnpqdy8X6xh3yyRNyjYgACCrAxG6SIYEd1fI6LnpI6TwEAAwIAA3gAAzYE.png[/img]

  45. thepowerofcreativity – Friendly tone and useful examples make this site stand out for me.

  46. топ агентств seo продвижения [url=https://reiting-seo-kompanii.ru]https://reiting-seo-kompanii.ru[/url] .

  47. Diplomi_tbOr dice:

    диплом кулинарного техникума купить [url=https://educ-ua7.ru]https://educ-ua7.ru[/url] .

  48. Diplomi_mykn dice:

    купить диплом занесением реестр украины [url=www.frei-diplom6.ru]www.frei-diplom6.ru[/url] .

Responder a pin_up_uz_pzka Cancelar respuesta