

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: 21,569
It’s a pity you don’t have a donate button! I’d definitely
donate to this excellent blog! I suppose for now i’ll settle for
bookmarking and adding your RSS feed to my Google account.
I look forward to new updates and will share this site
with my Facebook group. Talk soon!
Terrific article! That is the kind of information that
are meant to be shared across the net. Disgrace on Google
for no longer positioning this publish higher!
Come on over and talk over with my web site . Thanks =)
We are a gaggle of volunteers and starting a new scheme in our
community. Your web site provided us with useful information to work
on. You have done a formidable task and our whole group can be thankful to you.
I love it when individuals come together and share
ideas. Great site, stick with it!
First of all I would like to say superb blog! I had a quick question that I’d like
to ask if you do not mind. I was interested to find out how you center yourself and clear your thoughts prior to writing.
I’ve had a hard time clearing my thoughts in getting my thoughts
out. I truly do take pleasure in writing but it just seems like the first 10 to
15 minutes are generally wasted just trying to figure
out how to begin. Any ideas or tips? Appreciate it!
Have you ever thought about publishing an ebook or guest authoring on other blogs?
I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my visitors would
enjoy your work. If you’re even remotely interested,
feel free to shoot me an email.
Сервисный центр РемТочка предлагает услуги по диагностике,
ремонту и обслуживанию компьютерной техники.
Мы специализируемся на решении любых проблем
с вашим компьютером, от простых
настроек до сложных технических работ.
Наши опытные специалисты всегда готовы помочь
вам с любыми вопросами, такими как
по ремонту компьютеров связанными
с компьютерами и программным обеспечением.
Thank you for the auspicious writeup. It if truth
be told was once a leisure account it. Glance complex to more added agreeable from you!
However, how could we communicate?
if he could possibly be released without thatmortification.ラブドール 最 高級The young nobleman explained his desire to the court,
The unformed matter of the World,was by the name of Chaos.初音 ミク ラブドール
ラブドール 販売as it seemed to him,had come between them.
and readover many books on both these subjects,for these sciences,人形 エロ
Hmm it seems like your site ate my first comment (it was extremely long) so
I guess I’ll just sum it up what I had written and
say, I’m thoroughly enjoying your blog. I too am an aspiring blog writer but
I’m still new to everything. Do you have any recommendations for inexperienced blog writers?
I’d really appreciate it.
hey there and thank you for your info – I have certainly picked up
anything new from right here. I did however expertise some technical
issues using this site, as I experienced to reload the web site many times previous to I could get
it to load correctly. I had been wondering if your web host is
OK? Not that I’m complaining, but slow loading instances times will very frequently affect your placement in google and can damage
your quality score if advertising and marketing with Adwords.
Anyway I’m adding this RSS to my e-mail and could look out for much more of your respective interesting content.
Ensure that you update this again very soon.
_–Como sesudo._–Milagros son que no sabiamos.ラブドール 無 修正
Very good post. I am facing a few of these issues as well..
I have been exploring for a little for any high quality articles or weblog posts in this
sort of space . Exploring in Yahoo I at last stumbled upon this website.
Studying this info So i’m satisfied to express that I have a very excellent uncanny feeling
I found out just what I needed. I such a lot without a
doubt will make sure to do not put out of your mind this website and give it a
look regularly.
I am actually grateful to the holder of this web site who has shared this fantastic piece of
writing at here.