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: 52,261

  1. для тех, кто предпочитает стратегию и математику, Mellstroy казино зеркало доступны десятки разновидностей настольных игр.

  2. ラブドール 最 高級and his heart throbbedwith rapture,when he heard Sir Stentor value himself upon the liningof his pockets.

  3. and he was determined to forge to stamp the thingou to crush it as one would crush the adder that had stung one.what right had Basil to have spoken to him as he had done? Whohad made him a judge over others? He had said things that weredreadful,lovedoll

  4. cam girls dice:

    If you want to grow your know-how just keep visiting this website and be updated with the hottest gossip posted here.

  5. I am not sure where you’re getting your info, but great topic.
    I needs to spend some time learning much more or understanding more.

    Thanks for magnificent info I was looking for this information for my mission.

  6. JamesCaW dice:

    best UK online chemist for Prednisolone: order steroid medication safely online – Prednisolone tablets UK online

  7. 高級 ラブドールThey were both agreed that Good Luck was solovable that he practcally amounted to an obsesson.One sde of the wall was lned wth rough,

  8. аренда навесного оборудования на экскаватор [url=www.arenda-ekskavatora-pogruzchika-cena-2.ru/]аренда навесного оборудования на экскаватор[/url] .

  9. The best choice I made for trading. Smooth and scalable features. The dashboard gives a complete view of my holdings.

  10. The vision for the Mtaur coin is truly inspiring. The team has a clear path to success.

    Here is my blog post; minotaurus token

  11. Diplomi_cvei dice:

    где купить дипломы медсестры [url=https://frei-diplom14.ru/]где купить дипломы медсестры[/url] .

  12. перепланировка нежилого помещения [url=www.pereplanirovka-nezhilogo-pomeshcheniya8.ru/]www.pereplanirovka-nezhilogo-pomeshcheniya8.ru/[/url] .

  13. August dice:

    I just found out about this site and I find it fascinating
    by the benefits it offers. Has anyone used this product?
    You can check it out here: [Synaptigen](https://synaptigen-sale.us). Excited to see the feedback from others.
    Keep up the good work!

  14. услуги аренды экскаватора погрузчика [url=https://www.arenda-ekskavatora-pogruzchika-cena-2.ru]услуги аренды экскаватора погрузчика[/url] .

  15. согласование перепланировки в нежилом здании [url=http://pereplanirovka-nezhilogo-pomeshcheniya8.ru/]http://pereplanirovka-nezhilogo-pomeshcheniya8.ru/[/url] .

  16. разрешение на перепланировку нежилого помещения не требуется [url=https://pereplanirovka-nezhilogo-pomeshcheniya11.ru]https://pereplanirovka-nezhilogo-pomeshcheniya11.ru[/url] .

  17. HerbertPef dice:

    http://britmedsdirect.com/# order medication online legally in the UK

  18. Michealomine dice:

    I like how Aster Dex keeps funding rates transparent. No hidden tricks, just pure trading mechanics.
    [url=https://aster-perps.xyz]Aster Dex[/url]

  19. I’m not that much of a online reader to be honest but your blogs really nice, keep it up!
    I’ll go ahead and bookmark your website to come back in the future.
    All the best

  20. I have read so many posts concerning the blogger
    lovers however this paragraph is truly a fastidious piece of writing, keep it up.

  21. услуги экскаватора погрузчика в москве [url=https://arenda-ekskavatora-pogruzchika-cena-2.ru/]arenda-ekskavatora-pogruzchika-cena-2.ru[/url] .

  22. whenever she looked at saw him in his towel,dripping water,ラブドール リアル

  23. Shawn here — I’ve tried providing liquidity and the reliable uptime impressed me.

  24. and this inits turn was overcome by the vision vouchsafed to Wilkinrevealing to her the steps to be taken for its overcoming.Having gotSan Salvatorethe beautiful,ダッチワイフ エロ

  25. перепланировка нежилого помещения [url=pereplanirovka-nezhilogo-pomeshcheniya8.ru]pereplanirovka-nezhilogo-pomeshcheniya8.ru[/url] .

  26. which could not failof turning out to the advantage of his education.せっくす どー るFerdinand was enteredin the same academy,

  27. Tipsters dice:

    When I initially commented I clicked the “Notify me when new comments are added” checkbox and now
    each time a comment is added I get four emails with
    the same comment. Is there any way you can remove people from that service?
    Many thanks!

  28. услуги экскаватора москва [url=https://arenda-mini-ekskavatora-v-moskve-2.ru/]услуги экскаватора москва[/url] .

  29. INS买粉 dice:

    It’s very trouble-free to find out any matter on web as compared to books, as I found this post at this web site.

  30. аренда экскаватора москва и область [url=www.arenda-ekskavatora-pogruzchika-cena-2.ru]www.arenda-ekskavatora-pogruzchika-cena-2.ru[/url] .

  31. WOW just what I was searching for. Came here by searching for biscuit
    crumbs wholesaler

  32. Spot on with this write-up, I honestly believe this website needs a great deal
    more attention. I’ll probably be back again to read through more, thanks for the
    info!

  33. BrettKnins dice:

    private online pharmacy UK: order medication online legally in the UK – private online pharmacy UK

  34. как узаконить перепланировку нежилого помещения [url=http://www.pereplanirovka-nezhilogo-pomeshcheniya10.ru]как узаконить перепланировку нежилого помещения[/url] .

  35. автоматический карниз для штор [url=www.elektrokarnizy797.ru/]www.elektrokarnizy797.ru/[/url] .

  36. This platform exceeded my expectations with intuitive UI and reliable uptime. The updates are frequent and clear.

  37. аренда экскаваторов погрузчиков [url=http://www.arenda-ekskavatora-pogruzchika-cena-2.ru]аренда экскаваторов погрузчиков[/url] .

  38. перепланировка нежилых помещений [url=http://www.pereplanirovka-nezhilogo-pomeshcheniya8.ru]http://www.pereplanirovka-nezhilogo-pomeshcheniya8.ru[/url] .

  39. автоматические гардины для штор [url=www.karniz-elektroprivodom.ru]www.karniz-elektroprivodom.ru[/url] .

  40. карниз с приводом для штор [url=www.karniz-shtor-elektroprivodom.ru]www.karniz-shtor-elektroprivodom.ru[/url] .

  41. エロ 人形He undertook to prove that poverty wasa blessing to a natio that oatmeal was preferable to wheat-flour,andthat the worship of Cloaci in temples which admitted both sexe andevery rank of votaries promiscuously,

Responder a Lurlene Cancelar respuesta