

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,924
I found new insight from this.
The depth in this piece is praiseworthy.
It could be used by fraudsters to get into your accounts at a number of financial institutions. I must add, I have never had any type of emotional disorder within my life and am a skeptic of anti-depressants. If you receive prescriptions from month to month make sure your pharmacy has your most current prescription insurance information.
https://www.decentjobsforyouth.org/partner/20494
More articles like this would make the blogosphere a better place.
I discovered useful points from this.
Such a practical read.
More blogs like this would make the web richer.
Howdy! This post couldn’t be written any better!
Reading this post reminds me of my good old room mate!
He always kept chatting about this. I will forward
this write-up to him. Fairly certain he will have a good read.
Thank you for sharing!
Hmm is anyone else encountering problems with the pictures
on this blog loading? I’m trying to determine if its a problem
on my end or if it’s the blog. Any suggestions would be greatly appreciated.
I took away a great deal from this.
Such a practical read.
Appreciating the time and energy you put into your website and in depth information you
offer. It’s awesome to come across a blog every once
in a while that isn’t the same outdated rehashed material.
Excellent read! I’ve saved your site and I’m including your RSS feeds to
my Google account.
I am really enjoying the theme/design of your website. Do you ever run into any browser compatibility issues?
A small number of my blog visitors have complained about my
website not working correctly in Explorer but looks great in Opera.
Do you have any solutions to help fix this problem?
you’re really a excellent webmaster. The site loading velocity is amazing.
It kind of feels that you are doing any distinctive trick.
In addition, The contents are masterwork. you’ve done a fantastic task in this topic!
I discovered useful points from this.
I’ve been surfing on-line more than three hours these days, yet I by no means discovered any attention-grabbing
article like yours. It is lovely price sufficient for me.
Personally, if all website owners and bloggers made
just right content material as you probably did, the net can be much more helpful
than ever before.
More content pieces like this would make the online space better.
More articles like this would make the blogosphere better.
I’d like to thank you for the efforts you have put in writing this site.
I am hoping to view the same high-grade content by you in the future as well.
In truth, your creative writing abilities has inspired me to get my own, personal site now 😉
I really enjoyed the way this was explained.
More articles like this would make the web more useful.
CVS Pharmacy must rely on prescription drug sales to remain in business, but Wal-Mart doesn’t must add a huge markup to the medications they sell. When all factors are considered, however, I would have to say that the prices charged at CVS Pharmacy and Rite Aid Pharmacy are very comparable. Most drugs need to become stored at exact temperatures, so one of the things pharmacists learn included in pharmaceutical quality training could be the necessary steps to keep the facilities clean and in compliance with regulations.
https://cadel.ru/phentermine-acquire-online
More content pieces like this would make the blogosphere a better place.