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: 70,331

  1. ?Aba! nariyan p ba cay?ang itinanng,at tiningnan si Ibarra ngwari’y nangguiguilalas.ストッキング エロ

  2. HaroldPsype dice:

    buy medicine online legally Ireland: pharmacy delivery Ireland – online pharmacy

  3. HaroldPsype dice:

    promo codes for online drugstores: best online pharmacy – best pharmacy sites with discounts

  4. オナドールnot a drop of rain hadfallen all those days.Again dust,

  5. сайт натяжной потолок [url=http://natyazhnye-potolki-nizhniy-novgorod-1.ru/]http://natyazhnye-potolki-nizhniy-novgorod-1.ru/[/url] .

  6. 1xbet [url=www.1xbet-giris-5.com]1xbet[/url] .

  7. Hermanvow dice:

    non-prescription medicines UK [url=https://ukmedsguide.shop/#]Uk Meds Guide[/url] cheap medicines online UK

  8. JohnnyHaf dice:

    promo codes for online drugstores: Safe Meds Guide – trusted online pharmacy USA

  9. рейтинг агентств digital рекламы [url=http://luchshie-digital-agencstva.ru/]http://luchshie-digital-agencstva.ru/[/url] .

  10. and curled him up on thefoot of s blanke ever so natural,ボディ スーツ えろthinking td be some funwhen Jim found him there.

  11. discoverpossibility – Found some interesting pieces here, definitely will come back later.

  12. Tarra Toyn dice:

    growtogethercommunity – Good find! I look forward to seeing how their offerings expand in future.

  13. Cris Scoles dice:

    discoverbetterdeals – I’ve bookmarked this, looks like a good place for deals and quality too.

  14. Since the admin of this website is working, no question very shortly it will be
    renowned, due to its feature contents.

  15. Keely Farias dice:

    explorecreativeconcepts – The website feels professional yet friendly — good combination.

  16. shopthenexttrend – The design is simple yet stylish, feels modern and clean.

  17. The countess reflected a moment and took a pinch from a goldsnuffbox with her husbs portrait on it.“m quite worn out by these caller However,セックス ロボット

  18. HaroldPsype dice:

    pharmacy online: compare pharmacy websites – cheap medicines online Australia

  19. thinkbigmovefast – Great layout and the visuals really pop, nice job overall.

  20. Useful info. Lucky me I found your web site by
    chance, and I’m stunned why this twist of fate didn’t
    happened in advance! I bookmarked it.

  21. потолочкин в каждый дом [url=http://natyazhnye-potolki-nizhniy-novgorod-1.ru]http://natyazhnye-potolki-nizhniy-novgorod-1.ru[/url] .

  22. everydayinnovation – Nice browse so far, the content seems trustworthy and easy to follow.

  23. 1xbet yeni giri? adresi [url=www.1xbet-giris-2.com/]www.1xbet-giris-2.com/[/url] .

  24. 1xbet giri? linki [url=http://1xbet-giris-5.com/]http://1xbet-giris-5.com/[/url] .

  25. えろ 人形and very object seem invested with the fancy it begets in us,Yet stillthe object is one thing,

  26. thefashionedit – Great site so far, clean design and nice browsing experience.

  27. Ariana Annon dice:

    urbanwearoutlet – Just skimmed through, great visuals and easy to browse overall.

  28. Edmundrhify dice:

    online pharmacy

  29. explorecreativeconcepts – The site loads well and everything feels organized — big plus.

  30. reachhighergoals – I’ll bookmark this site, excited to come back and see what else they offer.

  31. buildthefuture – Great first impression, feel and style match nicely with expectations.

  32. HaroldPsype dice:

    compare pharmacy websites: pharmacy discount codes AU – Aussie Meds Hub

  33. Sabra Summa dice:

    dealsanddiscounts – This site looks like a cool place to find interesting offers and deals.

  34. bahis siteler 1xbet [url=http://1xbet-giris-5.com]bahis siteler 1xbet[/url] .

  35. learnexploreachieve – Browsing was smooth, everything seems laid-out neatly and clearly.

  36. modernstylemarket – The site gives off strong style credentials, I’m impressed by the layout.

  37. 等身 大 ラブドールAnd as for some defects of character,for some habits and evencertain differences of opinion–which indeed are inevitable even inthe happiest marriages–Dounia has said as regards all sherelies on herself,

  38. HaroldPsype dice:

    best pharmacy sites with discounts: online pharmacy – promo codes for online drugstores

  39. moveforwardnow – Nice site overall, seems trustworthy and well-designed for users.

  40. Diplomi_ctka dice:

    купить диплом в нальчике [url=www.rudik-diplom1.ru/]купить диплом в нальчике[/url] .

  41. потол [url=http://natyazhnye-potolki-nizhniy-novgorod-1.ru/]http://natyazhnye-potolki-nizhniy-novgorod-1.ru/[/url] .

  42. Hermanvow dice:

    pharmacy delivery Ireland [url=https://irishpharmafinder.shop/#]irishpharmafinder[/url] best Irish pharmacy websites

  43. JohnnyHaf dice:

    trusted online pharmacy Ireland: Irish Pharma Finder – buy medicine online legally Ireland

  44. 1xbet giris [url=https://1xbet-giris-5.com]1xbet giris[/url] .

  45. mr vegas dice:

    all interesting casino sites in states offer blackjack,
    mr vegas, but some
    operators stand out against the background of competitors.

  46. HaroldPsype dice:

    pharmacy discount codes AU: verified online chemists in Australia – Australian pharmacy reviews

  47. ?Aray! ?aray!ang sinabi niya,na hinihipo ang canyang mgabisig?Gaano ang layong ikinahihiwalay ng Filipinas sa mga pampanginng Rhin! “?Oh tempora! ?oh mores!” Binibigyan ang iba ng gantingpalaat balabal ng cahihiyan ang ibinibigay naman sa iba.ストッキング エロ

  48. but Discretion.Judgement therefore without Fancy is but Fancy without Judgement not.初音 ミク ラブドール

Responder a HaroldVap Cancelar respuesta