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: 30,395

  1. Новости мира музыки рассказывают
    о новых альбомах.

    My web-site milton keynes university hospital jobs

  2. Claudia pondered the words hehad spoken before saying,”And he hath said thy eyes be blessed becausethou seest something hidden.irontech doll

  3. Casino Bonus dice:

    Hey there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard
    on. Any tips?

  4. Pretty! This was a really wonderful article.
    Many thanks for supplying this information.

  5. перевод договора с грузинского на русский [url=www.onlineperevodchik.ru/]www.onlineperevodchik.ru/[/url] .

  6. результаты матчей [url=http://www.novosti-sporta-11.ru]результаты матчей[/url] .

  7. keo nha cai dice:

    I know this site presents quality dependent posts and
    extra data, is there any other web site which offers these kinds of information in quality?

  8. AnthonyHow dice:

    india pharmacy mail order: BharatMeds Direct – BharatMeds Direct

  9. RichardFopsy dice:

    BharatMeds Direct: Online medicine home delivery – buy prescription drugs from india

  10. セクシー えろa little removed from the hearth,busy at my knitting,

  11. Hello There. I found your blog the usage of msn. That is a very smartly
    written article. I’ll be sure to bookmark it and come back to read more of your helpful info.
    Thanks for the post. I’ll certainly return.

  12. セクシー えろand Miss’s pony has trodden dahn two rigs o’corn,and plottered through,

  13. bycontinual exercise,and their taste disagreeable,ラブドール 最 高級

  14. 你爸爸的鸡巴断了,你倒霉的阴部,你爸爸的网络钓鱼,你妈妈的内脏

  15. lovedollI can,t even recognize GrosvenorSquare.

  16. It was kindness for him whichinduced me to bear it alone: had I expressed the agony I frequentlyfelt,he would have been taught to long for its alleviation as ardentlyas it’s over,セクシー えろ

  17. СтавкиПрогнозы [url=https://stavki-prognozy-two.ru/]stavki-prognozy-two.ru[/url] .

  18. Haroldnot dice:

    BharatMeds Direct: BharatMeds Direct – online shopping pharmacy india

  19. which I was assured theKing had intended for me personally.Lastly,ラブドール 女性 用

  20. エロ 着物na para mandingnanggaling sa bungo ng canyang ulo ang lahat ng iyon; nguni’t dapatsabihin,sa icapupuri niya,

  21. えろ 人形his whole face wasovershadowed by this tremendous nozzle,and the rueful eagerness withwhich he explained this unlucky accident,

  22. le coucher de soleil rouge etor que je suis loin de dédaigner,d’ailleurs,コスプレ r18

  23. mostbet_hdpn dice:

    mostbet virtual idman [url=https://mostbet4136.ru]https://mostbet4136.ru[/url]

  24. Very nice post. I just stumbled upon your blog and wished to mention that I’ve truly enjoyed
    surfing around your blog posts. After all I
    will be subscribing to your rss feed and I’m hoping you write again very soon!

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

  26. vet near me dice:

    Its like you read my mind! You appear to know a lot
    about this, like you wrote the book in it or something.

    I think that you can do with some pics to drive the message home
    a bit, but other than that, this is great blog. A great read.
    I will definitely be back.

  27. Ibelieve she meant no harm; for when once she made you cry in goodearnest,it seldom happened that she would not keep you company,セクシー えろ

  28. エロ ランジェリーangipinagpatuloy ni Elias na hindi pinansin ang mga sinalita ngbinata;nais po ninyng ituly ang isang panucalang dakila,maypinagdaanan po cay,

  29. ボディ スーツ エロawayan ng? maliliit.Ang mg?a malalaki aykaraniwan nang walang kibo at maayos ang kagayakan na gaya ng? mg?anagaaral na aleman.

  30. Kennethhaima dice:

    top 10 pharmacies in india [url=https://bharatmedsdirect.com/#]Online medicine home delivery[/url] reputable indian pharmacies

  31. I have been browsing online more than 3 hours today, yet
    I never found any interesting article like yours. It is pretty worth enough for me.

    In my opinion, if all web owners and bloggers made good content as you did, the internet
    will be much more useful than ever before.

  32. спортивные трансляции [url=https://novosti-sporta-12.ru/]https://novosti-sporta-12.ru/[/url] .

  33. “Mypoor,高級 ラブドールunfortunate grl! ? ?dare say the marrage t legal,

  34. Regina Idell dice:

    Welcome to NanoDefense Pro is the official website of a powerful supplement that is an advanced skincare and nail support formula that uses cutting-edge nanotechnology to rejuvenate and restore health from within.

  35. hello!,I love your writing so so much! proportion we be in contact more about your article
    on AOL? I require an expert in this area to unravel my problem.
    Maybe that is you! Having a look ahead to see you.

    Review my blog post วีไอพีล็อตโต้

  36. Ming Winzler dice:

    Welcome to NanoDefense Pro is the official website of a powerful supplement that is an advanced skincare and nail support formula that uses cutting-edge nanotechnology to rejuvenate and restore health from within.

  37. condenada,海外 コスプレ えろmaldita! ?Mapacasama nawa ang inangnanganac sa iyo!ang isinigaw;?sayaw papatayin cata sa capapalong latigo.

  38. RichardFopsy dice:

    BharatMeds Direct: world pharmacy india – online shopping pharmacy india

  39. who was actually enamoured of a martial life,最 高級 ラブドールand missed nooccasion of distinguishing himself,

  40. Anónimo dice:

    At this moment I am ready to do my breakfast, when having my breakfast coming
    over again to reead further news.

    my blog :: geopivko.cz

  41. link slot dice:

    Someone essentially assist to make seriously articles I’d state.
    This is the first time I frequented your web page and up to now?
    I surprised with the analysis you made to make this actual put
    up incredible. Magnificent process!

  42. Hello there! I just wish to offer you a big thumbs up for
    your great info you have right here on this post. I am coming back to your blog for more
    soon.

Agrega tu comenatio