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: 28,248

  1. ElijahCah dice:

    Non-prescription ED tablets discreetly shipped: Kamagra reviews from US customers – Affordable sildenafil citrate tablets for men

  2. Universal Credit £420 boost rumors lack official confirmation from DWP sources.

    Also visit my web-site university church of st mary the virgin

  3. Unquestionably believe that which you said. Your favorite justification seemed to be on the internet
    the simplest thing to be aware of. I say to you, I definitely get irked
    while people think about worries that they plainly don’t
    know about. You managed to hit the nail upon the top as well as
    defined out the whole thing without having side-effects ,
    people can take a signal. Will probably be back to get more.
    Thanks

  4. Check dice:

    Ꮋelpful information. Lucky me I found your wеb sitе unintentionally, and I’m surρrised why this twist оof
    fate did not happened earⅼier! Ι bookmarked it.

  5. https://stanproperty.com/bungalow/

    Sweet blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Appreciate it

  6. Jobs at heriot watt university jobs Arts London attract creatives from around the globe.

  7. You should be a part of a contest for one of the best sites on the internet.

    I most certainly will highly recommend this blog!

  8. Hello! I realize this is sort of off-topic but I had to ask.

    Does running a well-established website such as yours take a large amount of work?
    I am brand new to blogging however I do write in my diary on a daily basis.
    I’d like to start a blog so I will be able to share my experience
    and thoughts online. Please let me know if you have any suggestions or tips for brand new aspiring
    bloggers. Appreciate it!

  9. I think the admin of this web site is actually working hard in favor of his web page, because here every stuff
    is quality based information.

  10. Diplomi_elOt dice:

    купить диплом техникума украина [url=www.educ-ua5.ru]www.educ-ua5.ru[/url] .

  11. Zachery dice:

    Thank you for sharing your info. I really appreciate your efforts and I am waiting for your next post thanks once again.

  12. Just want to say your article is as amazing. The clearness to your submit is just cool and i can assume you’re a professional on this subject.
    Fine along with your permission let me to grasp your feed to stay updated with coming near near post.
    Thank you 1,000,000 and please continue the enjoyable work.

  13. Diplomi_wcmr dice:

    купить аттестаты за 11 класс [url=https://arus-diplom23.ru/]купить аттестаты за 11 класс[/url] .

  14. I like the valuable information you supply on your articles.
    I’ll bookmark your weblog and take a look at again right
    here frequently. I am slightly sure I will be informed a lot of
    new stuff proper here! Best of luck for the next!

  15. Wonderful, what a website it is! This webpage gives valuable information to us,
    keep it up.

  16. esta usa dice:

    Hmm is anyone else encountering problems with the images
    on this blog loading? I’m trying to find out if its a problem on my end
    or if it’s the blog. Any feed-back would be greatly appreciated.

  17. At this time I am going away to do my breakfast, after having my breakfast coming
    yet again to read other news.

  18. ableton dice:

    Ιt’s hɑrd to come by wеll-informed people inn tһiѕ partіcular subject,
    but үou sound liҝе ʏou know whɑt yoս’re talking ɑbout!
    Thanks

    My blog post ableton

  19. If you want to obtain a good deal from this article then you have to apply these strategies to
    your won website.

  20. can you fail to trace outgreat whales in the starry heaven and boats in pursuit of them,aswhen long filled with thoughts of war the Eastern nations saw armieslocked in battle among the cloud Thus at the North have I chasedLeviathan round and round the Pole with the revolutions of the brightpoints that first defined him to m And beneath the effulgentAntarctic skies I have boarded the Argo-Navi and joined the chaseagainst the starry Cetus far beyond the utmost stretch of Hydrus andthe Flying Fish.ラブドール おすすめ

  21. JerryFew dice:

    TrustedMeds Direct: TrustedMeds Direct – TrustedMeds Direct

  22. Good post however , I was wanting to know if you could write a litte more on this subject?

    I’d be very grateful if you could elaborate a little bit further.
    Many thanks!

  23. Thalia dice:

    RepairCdDvD 2.7 is a data recovery program for damaged CD, DVD media,recover data from corrupted dvd. The program is effective when the discs are scratched or badly recorded CD, DVD. The work of the program is risk-free. The process of repairing disks is write as an ISO image. RepairCdDvD v2.7 software to Recover Data from scrached and bad error on CD,DVD include CD+R/RW,DVD+R/RW. https://repaircddvd.com

  24. Michaeladhet dice:

    lasix 40 mg [url=https://cardiomedsexpress.shop/#]furosemide[/url] CardioMeds Express

  25. Thank you for sharing your info. I truly appreciate
    your efforts and I will be waiting for your further post thank
    you once again.

  26. ラブドール おすすめnot to sing out for whales,in case any should be discovered.

  27. bk8 dice:

    It’s enormous that you are getting ideas from this article as
    well as from our argument made here.

  28. JerryFew dice:

    CardioMeds Express: furosemide 100 mg – lasix generic

  29. julius pratt dice:

    Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated

  30. ктпн комплектные трансформаторные подстанции [url=https://transformatornye-podstancii-kupit2.ru]https://transformatornye-podstancii-kupit2.ru[/url] .

Responder a ChaseGot Cancelar respuesta