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: 14,728

  1. zmfdzo dice:

    An online pharmacy is pretty a help in an embarrassing scenario like this. Any reputable internet business puts their shopping cart solution on a safe and secure server. Strong customer service skills can be a must when handling the hectic pace of an pharmacy or pharmaceutical department.
    https://slp.millingtonpubliclibrary.org/content/lasix-procure-online

  2. A片 dice:

    If you would like to obtain a great deal from this piece of
    writing then you have to apply these methods to your won weblog.

    My web site; A片

  3. It’s going to be ending of mine day, however before ending I am reading this great post
    to increase my know-how.

  4. James Brown dice:

    I took away a great deal from this.

  5. Such a informative resource.

  6. genbbp dice:

    CVS Pharmacy must depend on prescription drug sales to stay in business, but Wal-Mart doesn’t must add a huge markup to the prescription medications they sell. Factors staying taught in educational facilities regularly variations, this is a fact. Veri – Sign and Scan – Alert Hacker Safe would be the two names you should be looking out for as well because these names will proclaim these websites are secure for paying online.
    http://www.xe-none.com/topic/10252

  7. I really appreciated the manner this was laid out.

  8. My brother recommended I may like this blog. He was entirely right.
    This put up truly made my day. You can not imagine simply how so much
    time I had spent for this info! Thanks!

  9. site dice:

    Не рискуйте своим здоровьем ради чужих амбиций!
    Полный список болезней, освобождающих от армии: сердечно-сосудистые,
    неврологические, ортопедические,
    офтальмологические, эндокринные,
    психические,
    легочные и другие серьезные недуги.
    Подтверждение диагноза = освобождение от службы.
    Берегите себя!обратится
    можно к нам ===>>>
    {расписание болезней армия}

  10. The detail in this content is commendable.

  11. Elbert dice:

    I know this if off topic but I’m looking into starting my own blog and was wondering what all is
    needed to get setup? I’m assuming having a blog like yours would cost a pretty penny?

    I’m not very internet savvy so I’m not 100% sure.

    Any recommendations or advice would be greatly appreciated.
    Thank you

  12. This is the kind of information I look for.

  13. Porn video dice:

    Today, I went to the beach with my kids. I found a sea shell
    and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and
    screamed. There was a hermit crab inside and it
    pinched her ear. She never wants to go back! LoL I know this is completely off topic but I had to tell someone!

  14. I really admired the style this was laid out.

  15. slot dice:

    Appreciate the recommendation. Let me try it out.

  16. Thanks for putting this up. It’s excellent.

  17. I’ll surely bookmark this page.

  18. If yoս desire t᧐ gеt muϲh fгom tһіs article thеn you have tߋ apply tһese strategies tο your won webpage.

    Visit my blog … best social casinos

  19. ラブドールdemonstrated a deep understanding and a thorough grasp of the topic.I particularly appreciated how you presented multiple perspectives on [specific subtopic],

  20. I took away a great deal from this.

  21. Andrew Jones dice:

    Thanks for putting this up. It’s brilliant work.

  22. Hello! I know this is kind of off-topic but I had to ask. Does running
    a well-established website like yours take a massive amount work?
    I am completely new to running a blog but I do write in my diary every day.
    I’d like to start a blog so I can easily share my experience and thoughts online.
    Please let me know if you have any kind of recommendations or tips for brand new aspiring bloggers.
    Thankyou!

  23. toto 4d dice:

    Interesting blog! Is your theme custom made or did you download
    it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out.
    Please let me know where you got your design. Kudos

  24. pyafkvj dice:

    Most patients were paying a high income for their insurance and were often upset when their prescriptions required a $50 co-pay, or they’d not met their $4,000 deductable and must give the entire cost out-of-pocket. In Oklahoma, pharmacists are necessary to obtain a valid photo identification before dispensing any controlled, dangerous substance. The respiratory therapist’s tasks include providing the precise measurements of oxygen or other varieties of gas concentrations in the patient’s blood in addition to measuring blood alkalinity or acidity levels.
    https://cadel.ru/forum/tizanidine-get-online

  25. igtoto dice:

    Spot on with this write-up, I absolutely think this website needs a
    great deal more attention. I’ll probably be returning to
    read more, thanks for the information!

  26. I am regular reader, how are you everybody? This paragraph posted at this web page
    is truly pleasant.

Responder a ドール sex Cancelar respuesta