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

  1. href="https://www.merrss.com/cosplay-sexy/products-4902.html">エロ 衣装ginoo....?ang tanóng, dice:

    エロ 着物?bagay na aking pinagaalinlanganan!.. nguni’t gayn man,

  2. 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. BrettKnins dice:

    private online pharmacy UK: private online pharmacy UK – UK online pharmacy without prescription

  4. I personally find that i trust this platform — withdrawals are wide token selection and reliable.

  5. I’ve been active for since launch, mostly for checking analytics, and it’s always robust security. Great for cross-chain swaps with minimal slippage.

  6. Diplomi_dtPt dice:

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

  7. Hunter here — I’ve tried portfolio tracking and the intuitive UI impressed me. The mobile app makes daily use simple.

  8. soglasovat proekt pereplanirovki_wcMt dice:

    перепланировка квартир [url=https://astana.forum24.ru/?1-6-0-00001505-000-0-0-1759818821/]https://astana.forum24.ru/?1-6-0-00001505-000-0-0-1759818821/[/url] .

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

  10. JamesFew dice:

    Prednisolone tablets UK online [url=https://medreliefuk.com/#]buy prednisolone[/url] cheap prednisolone in UK

  11. Diplomi_loOr dice:

    купить диплом техникума с занесением в реестр [url=http://frei-diplom12.ru/]купить диплом техникума с занесением в реестр[/url] .

  12. JamesCaW dice:

    buy corticosteroids without prescription UK: order steroid medication safely online – UK chemist Prednisolone delivery

  13. Diplomi_oska dice:

    купить диплом в кисловодске [url=https://rudik-diplom1.ru]купить диплом в кисловодске[/url] .

  14. Excellent beat ! I wish to apprentice while you
    amend your site, how can i subscribe for a blog web site? The account
    aided me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept

  15. JamesFew dice:

    UK online pharmacy without prescription [url=https://britmedsdirect.com/#]Brit Meds Direct[/url] order medication online legally in the UK

  16. This is very interesting, You’re a very skilled blogger.

    I have joined your rss feed and look forward to seeking more of your great post.
    Also, I have shared your site in my social networks!

  17. технология устройства гидроизоляции [url=https://www.ustroystvo-gidroizolyacii.ru]https://www.ustroystvo-gidroizolyacii.ru[/url] .

  18. I like the helpful information you provide on your articles.
    I will bookmark your blog and test again here regularly.

    I am quite sure I will learn a lot of new stuff proper here!
    Best of luck for the next!

  19. I personally find that the best choice I made for swapping tokens. Smooth and reliable uptime.

  20. This platform exceeded my expectations with scalable features and reliable uptime. Support solved my issue in minutes.

  21. I switched from another service because of the seamless withdrawals and stable performance.

  22. JamesFew dice:

    buy prednisolone [url=http://medreliefuk.com/#]buy corticosteroids without prescription UK[/url] order steroid medication safely online

  23. лучшие прогнозы на хоккей [url=www.luchshie-prognozy-na-khokkej9.ru/]лучшие прогнозы на хоккей[/url] .

  24. I’ve been using it for recently for checking analytics, and the wide token selection stands out.

  25. I switched from another service because of the useful analytics and great support.

  26. The using the bridge tools are responsive team and robust security. Support solved my issue in minutes.

  27. The best choice I made for staking. Smooth and robust security.

  28. Blythe dice:

    bester wettanbieter sportwetten

    My web site wettbüro leverkusen – Blythe,

  29. The interface is responsive team, and I enjoy using the API here.

  30. BrettKnins dice:

    buy sildenafil tablets UK: viagra – Viagra online UK

  31. Arbitrum DEX dice:

    This platform exceeded my expectations with accurate charts and responsive team.

  32. Link pedopil dice:

    Bokep
    Its like you learn my thoughts! You appear
    to understand so much approximately this, like you wrote the ebook in it or something.
    I believe that you could do with some percent to power the message home a little bit, but other than that, this is fantastic blog.

    An excellent read. I’ll definitely be back.

  33. BrettKnins dice:

    amoxicillin uk: generic amoxicillin – generic Amoxicillin pharmacy UK

  34. Diplomi_zxka dice:

    купить диплом инженера электрика [url=http://rudik-diplom1.ru]купить диплом инженера электрика[/url] .

  35. えろ コスプレBREACH OF WARRANTY OR BREACH OF CONTRACT EXCEPT THOSEPROVIDED IN PARAGRAPH YOU AGREE THAT THE FOUNDATION,THETRADEMARK OWNER,

  36. My brother suggested I might like this website. He was entirely right.

    This post actually made my day. You can not imagine simply how
    much time I had spent for this information! Thanks!

  37. The site is easy to use and the seamless withdrawals keeps me coming back. My withdrawals were always smooth.

  38. コスプレ dice:

    only a single letter:but if it were the momentous one,ベビー ドール ランジェリーthen indeed would all risks,

  39. прогнозы на хоккей на сегодня от профессионалов [url=https://luchshie-prognozy-na-khokkej9.ru/]luchshie-prognozy-na-khokkej9.ru[/url] .

  40. JamesCaW dice:

    UK online antibiotic service: amoxicillin uk – UK online antibiotic service

  41. Wow! This is a cool platform. They really do have the useful analytics. Charts are accurate and load instantly.

  42. cosplay dice:

    in theminds and countenances of the hearers.This was indeed a godlike science,コスプレ

  43. I have been browsing online greater than three hours these
    days, but I by no means found any interesting article like yours.
    It’s lovely value sufficient for me. Personally, if
    all website owners and bloggers made just right content material as
    you probably did, the net shall be much more helpful than ever before.

Agrega tu comenatio