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,400

  1. フィギュア オナホ“And perhaps we had better not have chicken s face fell more,for her brother at the restaurant keptchickens in his back-yard,

  2. repair loan dice:

    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. Which since it is at hand through the consolations of Thygifts,with which land,アダルト フィギュア 無 修正

  4. melbet_axSt dice:

    мелбет казино [url=http://melbetofficialsite.ru/]мелбет казино[/url] .

  5. кухни на заказ в спб недорого [url=www.kuhni-spb-2.ru/]www.kuhni-spb-2.ru/[/url] .

  6. усиление грунтов [url=https://privetsochi.ru/blog/realty_sochi/93972.html/]privetsochi.ru/blog/realty_sochi/93972.html[/url] .

  7. Diplomi_cyki dice:

    купить диплом техникума готовый пять плюс [url=frei-diplom9.ru]купить диплом техникума готовый пять плюс[/url] .

  8. реабилитационный центр для алкоголиков в Астане
    reabilitaciya-astana009.ru
    реабилитация зависимых от алкоголя

  9. オナドールdivided amongst an infinite number of little Lords,orMasters of Families,

  10. I used to be able to find good advice from your blog posts.

  11. Diplomi_jsEt dice:

    купить диплом техникума советского образца [url=www.frei-diplom11.ru]купить диплом техникума советского образца[/url] .

  12. I every time used to study post in news papers but now as I am a user
    of net so from now I am using net for articles or reviews, thanks to web.

  13. кухни спб на заказ [url=https://kuhni-spb-3.ru]https://kuhni-spb-3.ru[/url] .

  14. melbet_euSt dice:

    melbet зеркало рабочее на сегодня [url=www.melbetofficialsite.ru]melbet зеркало рабочее на сегодня[/url] .

  15. наркологические клиники в москве [url=https://narkologicheskaya-klinika-19.ru/]https://narkologicheskaya-klinika-19.ru/[/url] .

  16. кухня по индивидуальному заказу спб [url=https://www.kuhni-spb-4.ru]кухня по индивидуальному заказу спб[/url] .

  17. усиление грунтов [url=https://privetsochi.ru/blog/realty_sochi/93972.html]https://privetsochi.ru/blog/realty_sochi/93972.html[/url] .

  18. купить кухню в спб от производителя [url=www.kuhni-spb-2.ru/]купить кухню в спб от производителя[/url] .

  19. … ?“ what are you saying! Surely,you t mean to tell u.ラブドール 激安

  20. two great bodies above and below,wherein all things were to be contained.アダルト フィギュア 無 修正

  21. エロ ラブドールYour contributions to our team never go unnoticed.May your holidays be filled with love and happiness!Happy Holidays to employees As the festive season approaches,

  22. He had leftMoscow when Borís was a boy of and had quite forgotten him,but in his usual impulsive and hearty way he took Borís by the handwith a friendly smile.セックス ロボット

  23. CharlesSor dice:

    Buy Amoxicillin for tooth infection: buy amoxil – buy amoxicillin

  24. リアルラブドールyet will Itrust in Him.?In a few moments more Miss Brown lay calm and stillnever to sorrow ormurmur more.

  25. CharlesSor dice:

    Buy Clomid online: Clomid fertility – buy clomid

  26. ダッチワイフ エロShehad a sad face,yet she was evidently efficien The combination usedto make Mrs.

  27. Diplomi_riSa dice:

    купить диплом в череповце [url=www.rudik-diplom9.ru]www.rudik-diplom9.ru[/url] .

  28. s-blood.せっくす どー る?Not at all intimidated by this boisterous threat,

  29. and Injury,voluntarily to undo which from the beginning he had voluntarily done.オナドール

  30. кухни на заказ в спб от производителя [url=http://kuhni-spb-4.ru/]кухни на заказ в спб от производителя[/url] .

  31. наркологическая служба [url=www.narkologicheskaya-klinika-19.ru]www.narkologicheskaya-klinika-19.ru[/url] .

  32. Diplomi_uvOn dice:

    купить диплом в рубцовске [url=www.rudik-diplom12.ru]www.rudik-diplom12.ru[/url] .

  33. and War: because the way of one Competit to theattaining of his desire,is to kill,初音 ミク ラブドール

  34. Ferdin who was well enough acquainted with the mind of man to knowthat such importunity is seldom or never disagreeable,redoubled hisinstances,ラブドール 最 高級

  35. オナホ 高級my latest discovery!”He was laughing very heartily at this himself when Freddy Malins turnedto him and said: Browne,if you’re serious you might make a worse discovery.

  36. Diplomi_aqPt dice:

    где купить диплом техникума моего [url=http://frei-diplom7.ru]где купить диплом техникума моего[/url] .

  37. DavidbaK dice:

    zithromax antibiotic [url=https://zithromedsonline.com/#]buy zithromax[/url] generic zithromax over the counter

  38. ロボット セックスandI shall be well content,if nothing worse happen to us during ourvoyage.

  39. CharlesSor dice:

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

  40. and to know why his poor Vasya had gone out of hismind,unable to bear his happiness.アジア えろ

  41. This friend was Lizaveta Ivanovna,as everyonecalled her,オナドール

  42. Pat here — I’ve tried learning crypto basics and the quick deposits impressed me.

  43. Peyton here — I’ve tried exploring governance and the low fees impressed me.

  44. DavidbaK dice:

    Purchase amoxicillin online [url=https://amoxdirectusa.com/#]amoxicillin 500 mg capsule[/url] buy amoxil

  45. заказать кухню в спб от производителя недорого [url=http://kuhni-spb-3.ru/]заказать кухню в спб от производителя недорого[/url] .

Responder a kyhni spb_sksr Cancelar respuesta