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: 81,814

  1. ラブドール 女性 用and did not even stirwhen I passed by with bated breath and loudly throbbing heart.”Strange,

  2. Davidkib dice:

    Tadalafil Tablet: Tadalafil price – buy cialis pill

  3. TristanFag dice:

    Generic Viagra online [url=https://aeromedsrx.com/#]AeroMedsRx[/url] Viagra online price

  4. Davidkib dice:

    Blue Wave Meds: buy Kamagra online – trusted Kamagra supplier in the US

  5. TristanFag dice:

    EveraMeds [url=http://everameds.com/#]Cialis without a doctor prescription[/url] EveraMeds

  6. I have been exploring for a bit for any high-quality articles or weblog posts in this sort of space .
    Exploring in Yahoo I ultimately stumbled upon this
    website. Reading this info So i’m happy to exhibit that I have a very
    just right uncanny feeling I found out just what I needed.
    I such a lot certainly will make sure to do not put out of your mind this site and give it
    a look regularly.

  7. TristanFag dice:

    online pharmacy for Kamagra [url=https://bluewavemeds.com/#]online pharmacy for Kamagra[/url] kamagra

  8. Kennethlek dice:

    EveraMeds: EveraMeds – п»їcialis generic

  9. in being near the personof any lady who met with such a misfortune,無 修正 フィギュアby she hercharacter might be called in question.

  10. I value the fast transactions and intuitive UI. This site is reliable. My withdrawals were always smooth.

  11. “How can it be,he knows about the flat ” he thought suddenly,エロ フィギュア 無 修正

  12. Thanks , I’ve recently been searching for information about this topic
    for a long time and yours is the best I’ve discovered so far.
    But, what in regards to the bottom line? Are you positive in regards to the source?

  13. casino sites with low ratings offer welcome bonuses, which give You have now opportunities earn money
    at an https://www.win-lion.online/winlion-casino-reviews/.

  14. aviator x [url=aviator-game-winner.com]aviator-game-winner.com[/url] .

  15. The finest rawalpindi escort Service call girls provide an exclusive experience for those looking for top-tier companionship.
    Whether you’re attending a special event
    orr simply want to unwind, their services cater to your desires and ensure a night filled witrh relaxation and fun.

  16. slot gacor dice:

    This is a topic which is near to my heart… Thank you! Where are your contact
    details though?

  17. aeroplane game money [url=https://aviator-game-predict.com/]aviator-game-predict.com[/url] .

  18. Hello, its fastidious piece of writing concerning media
    print, we all know media is a wonderful source of facts.

  19. Togelon dice:

    This platform exceeded my expectations with robust security and easy onboarding. Definitely recommend to anyone in crypto.

  20. slot online dice:

    I’m gone to say to my little brother, that he should also pay a quick visit this website on regular basis to get
    updated from most up-to-date gossip.

  21. It’s fantastic that you are getting ideas from this post as
    well as from our discussion made at this time.

  22. электрокарнизы для штор купить в москве [url=https://prokarniz36.ru/]prokarniz36.ru[/url] .

  23. Diplomi_kupi dice:

    купить диплом кубгу [url=http://r-diploma17.ru]http://r-diploma17.ru[/url] .

  24. bandar slot dice:

    Wow! This blog looks exactly like my old one! It’s on a totally
    different topic but it has pretty much the same page layout and
    design. Superb choice of colors!

  25. ラブドール 無 修正unless it be nipt inthe bud by some very effectual remedy.Then she recounts a surprisingcure performed by a certain and appeals to the testimony ofthe waiting-woman,

  26. aviator bonus game [url=http://aviator-game-predict.com/]http://aviator-game-predict.com/[/url] .

  27. TristanFag dice:

    Sildenafil 100mg price [url=http://aeromedsrx.com/#]buy Viagra online[/url] buy Viagra online

  28. I’ve been following your blog for some time now, and I’m consistently blown away by the quality of your content. Your ability to tackle complex topics with ease is truly admirable.

  29. aviator x [url=https://aviator-game-winner.com/]https://aviator-game-winner.com/[/url] .

  30. Davidkib dice:

    online pharmacy for Kamagra: online pharmacy for Kamagra – fast delivery Kamagra pills

  31. 88for88.net dice:

    Do you mind if I quote a couple of your posts as
    long as I provide credit and sources back to your site?
    My blog site is in the exact same niche as yours and my visitors
    would genuinely benefit from some of the information you present here.
    Please let me know if this alright with you.
    Appreciate it!

  32. электрокарниз купить [url=www.prokarniz36.ru/]www.prokarniz36.ru/[/url] .

  33. Davidkib dice:

    BlueWaveMeds: buy Kamagra online – buy Kamagra online

  34. jet game money [url=https://www.aviator-game-predict.com]https://www.aviator-game-predict.com[/url] .

  35. Davidkib dice:

    cheap viagra: AeroMedsRx – buy Viagra online

  36. olxtoto dice:

    you’re really a good webmaster. The website
    loading velocity is incredible. It sort of feels that you are doing any
    unique trick. Furthermore, The contents are masterpiece.
    you have performed a excellent task in this topic!

  37. It’s awesome to pay a visit this web site and reading the views of all friends about
    this article, while I am also keen of getting knowledge.

  38. Jasonpleby dice:

    Международные документы адаптируем – перевод документов с казахского на русский онлайн. Срочный перевод документов в Самаре? Выполним быстро! Нотариальное заверение. Конфиденциально. Гарантия качества. Недорого.

  39. jahaj udane wala game [url=aviator-game-deposit.com]aviator-game-deposit.com[/url] .

Responder a Jasonpleby Cancelar respuesta