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

  1. Hildegard dice:

    Hello there I am so happy I found your web site, I really found
    you by accident, while I was browsing on Digg for something else, Anyways I
    am here now and would just like to say kudos for a fantastic post and a all
    round enjoyable blog (I also love the theme/design), I don’t have time to read it all at the moment but I
    have saved it and also added in your RSS feeds, so
    when I have time I will be back to read a lot more, Please do keep
    up the excellent job.

  2. Askіng questiⲟns arе genuinely nnice thing if yⲟu are not understanding anything totally,
    exсept this piece of writing offers pleasant understanmding even.

  3. RandyProne dice:

    Топовое онлайн-казино с лицензией Кюрасао, где тебя ждут сотни игр https://persona-food.ru/

  4. sport bets [url=https://sportbets32.ru/]sportbets32.ru[/url] .

  5. Diplomi_deEt dice:

    купить аттестат 11 классов в братске [url=https://www.arus-diplom25.ru]купить аттестат 11 классов в братске[/url] .

  6. a whispered sneer that had reached his earsone night as he waited at the stage-door,had set loose a train ofhorrible thought He remembered it as if it had been the lash of ahunting-crop across his face.ラブドール 販売

  7. glo cart dice:

    At this time I am going away to do my breakfast, later than having my breakfast coming over again to read further news.

  8. jepang 88 dice:

    Fastidious answers in return of this matter with real arguments and
    describing everything concerning that.

  9. He pointed out almost every individual and generallyintroduced them to our notice,with a flourish of panegyrick–Seeing theking approach,エロ 人形

  10. jepangbet dice:

    Luar biasa sekali membaca artikel tentang JEPANGBET ini. Review yang diberikan sangat
    berguna. Saya pribadi sudah lama mencari situs permainan slot terpercaya, dan ternyata daftar JEPANGBET memang pas sekali.

    Apalagi link alternatif JEPANGBET yang dibagikan di sini memudahkan ketika situs utama terblokir.
    Fitur yang cepat membuat pengalaman main gates of olympus semakin seru.

    Harapannya JEPANGBET terus tetap terpercaya di tahun 2025, karena banyak pemain telah membuktikan keamanan data.

  11. Really liked this article. We specialize in supply chain solutions,
    and while we’re asset-based in the East, our brokerage
    arm lets us offer true coast-to-coast coverage.
    If it moves on a truck, we can handle it—especially food-grade freight.
    Pittston has been our launchpad for growth and a perfect fit
    for shippers targeting the Northeast.

  12. Yet there was somethingmeritorious in her appearance,最 高級 ラブドールas it denoted her an indefatigableminister to the pleasure of mankind,

  13. ставки прогнозы [url=https://www.stavki-prognozy-one.ru]https://www.stavki-prognozy-one.ru[/url] .

  14. オナホ フィギュアthat they may be the soonerfattened in coop in consequence of this cruel retention.Of the fish,

  15. RichardFopsy dice:

    BorderMeds Express: BorderMeds Express – sildenafil mexico online

  16. せっくす どー るBut Ferdins views were not confined to the narrow field of thisalliance.He attempted divers enterprises in the world of gallantry,

  17. website dice:

    In terms of online entertainment options, there’s hardly anything more thrilling than the excitement of
    online casino slots. Thanks to the rise of online gambling,
    players now have access to a wide range of virtual
    slot machines without stepping outside. For fans
    of traditional slots or new-age slots with progressive jackpots, you’re spoiled for choice.What makes these games even more popular is the simplicity of
    gameplay. Different from more strategic casino games, you can just spin and enjoy.
    Set your wager, spin the reels, and wait for the outcome.
    It’s a game of luck that can be incredibly rewarding.

    For those curious about how to get started, this article breaks it all down really well about how online slot machines work.

    It offers detailed insights into volatility, bonus rounds, and fair play.
    Highly recommended if you’re serious about playing smart.
    Read the full article here: [insert article URL].
    To sum up, slot games online provide easy access to fun and potential rewards.

    Just remember, always play within your limits and have fun.
    Good luck and happy spinning!

  18. ラブドール avno very pleasant news tocommunicate.The doctor,

  19. mostbet_pnKi dice:

    mostbet aviator hack uz [url=http://mostbet4161.ru]http://mostbet4161.ru[/url]

  20. lovedolland for a moment the same curious feeling of loathing forBasil Hallward that had made him kill him as he sat in the chair cameback to him,and he grew cold with passion.

  21. Hi there i am kavin, its my first occasion to commenting anyplace, when i read this
    paragraph i thought i could also create comment due to this brilliant post.

  22. Kennethhaima dice:

    Imdur [url=https://maplemedsdirect.shop/#]best online pharmacy that does not require a prescription in india[/url] dutasteride pharmacy

  23. AnthonyHow dice:

    legit mexican pharmacy for hair loss pills: BorderMeds Express – п»їmexican pharmacy

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

  25. who overheard the was immediately seizedwith a palsy of fear.せっくす どー るHe trembled at every joint,

  26. and the rest suspect it of something sinister or selfish,せっくす どー るfrom thesuggestions of their own sordid and vicious inclinations.

  27. ラブドール リアルbecause he was by nature a cool man,yet such was theinfluence on him of,

Responder a دانلود آهنگ جدید زانکو Cancelar respuesta