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: 24,241

  1. I’d like to find out more? I’d love to find out some additional information.

  2. Paito HK 6D dice:

    You’re so cool! I do not suppose I have read through
    something like this before. So great to discover someone
    with original thoughts on this subject matter. Seriously.. many
    thanks for starting this up. This web site is something that
    is needed on the web, someone with a little originality!

  3. analysis dice:

    I know this website provides quality based articles and
    other stuff, is there any other website which provides these information in quality?

  4. At upang mapang?atwiranan niBenZayb ang sinabi,ボディ スーツ エロanya ay:?Sapagka’t akalain na lamang ninyó! ?Kung mahuli ko ang dayasa harap ng? mg?a nanonood na indio! ?Aalisan ko ng? kakanin angkaawaawang amerikano!Si BenZayb ay isang taong maling?ap.

  5. I always lether wait a bit.ラブドール 通販”Lenehan laughed quietly.

  6. オナホ フィギュアfrom thecircumstance that he is chiefly found in the vicinity of that Folio.Inshape,

  7. arabic1xbet_aypi dice:

    brnamj 1xbet [url=www.parimatch-apk.pro]www.parimatch-apk.pro[/url] .

  8. интернет по адресу краснодар
    krasnodar-domashnij-internet006.ru
    провайдеры по адресу дома

  9. DonaldBIG dice:

    I passion watching the latest movies and TV shows online on MoviesJoy – it’s tied, set free, and lenient to use.

    Whenever I fall short of to relax, I go off to MoviesJoy to runnel my favorite series and films without any hassle.

    [url=https://to.moviesjoy.cc/home/]MoviesJoy[/url] is my go-to website in place of watching top-rated movies and binge-worthy shows anytime, anywhere.

    [url=https://to.moviesjoy.cc/tvshows/].[/url]

  10. Прокапывание от алкоголя в Туле – это ключевой этап в борьбе с алкоголизма. Процедуры детоксикации помогают справиться с признаками абстиненции и избавиться от запойного состояния. Медицинская помощь в наркологических клиниках включает не только капельницы‚ но и психологическую помощь‚ что способствует восстановлению после алкоголя. narkolog-tula014.ru Реабилитация начинается с детоксикации‚ после которой инициируются программы восстановления. Поддержка родственников также играет значимую роль в профилактике рецидивов. Анонимные алкоголики и консультация специалиста вполне способны оказать помощь в процессе реабилитации. Не упускайте из виду‚ что борьба с алкоголизмом требует многостороннего подхода.

  11. …Inihinto ang salitaan,海外 コスプレ えろsa pagca’t dumarating ang tia.

  12. Good day! Do you use Twitter? I’d like to follow you if that would be okay.
    I’m definitely enjoying your blog and look forward to new posts.

  13. Hello, I enjoy reading through your article.

    I wanted to write a little comment to support you.

  14. 人形 エロand perhaps never can be,in thepresent constitution of things,

  15. ラブドール おすすめwhere these fish do not solargely aboun their wondrous voracity can be at times considerablydiminishe by vigorously stirring them up with sharp whaling-spade aprocedure in some instance only seems totickle them into still greater activity.But it was not thus in thepresent case with the Pequos shark to be sure,

  16. エッチ な コスプレelle n’en réveille passeulement l’image dans notre mémoire,elle en certifie le retour,

  17. I considered whether my marriage would hasten my fate.ラブドール エロMydestruction might indeed arrive a few months sooner,

  18. proedy [url=https://proedy.online]https://proedy.online[/url] .

  19. Hello, i believe that i saw you visited my web site so i came to return the choose?.I’m trying to in finding issues to enhance my site!I guess its adequate
    to make use of a few of your ideas!!

  20. Hello my loved one! I wish to say that this post is awesome, great written and come with almost all
    important infos. I would like to peer more posts like this
    .

  21. but I have ever found thatwhen narrating to them some specific example of this two-foldenormousness,they have significantly complimented me upon myfacetiousness,人形 エロ

  22. hey there and thank you for your information – I’ve definitely picked up something new from right here.
    I did however expertise a few technical points using this site, since I experienced to reload the site lots of times previous
    to I could get it to load correctly. I had been wondering
    if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will very frequently affect your placement
    in google and could damage your quality score
    if ads and marketing with Adwords. Anyway I am adding this RSS to my e-mail and could look out for a lot more of your respective interesting content.
    Make sure you update this again soon.

  23. Я малышка [url=http://imalishka.ru]http://imalishka.ru[/url] .

  24. Write more, thats all I have to say. Literally, it seems as though you relied on the video to
    make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to
    your site when you could be giving us something informative to read?

  25. that warlike feeling ofhostility which he always experienced at the sight of the enemy suddenlyseized him.ラブドール 中出しHe stopped at the threshold and asked in Russian whetherDrubetskóy lived there.

  26. I have read а feԝ excellent stuff һere. Сertainly priсe bookmarking for revisiting.
    I ѡonder һow so much effort yoᥙ set tο create thіs kіnd of wonderful informative web site.

    Feel free tо surf to my blog post – Sports Betting

  27. ラブドール 高級Doss? ?asked a trflemalcously.Such a remark would have covered Valancy wth confusontwo weeks ago,

  28. I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more enjoyable for
    me to come here and visit more often. Did you hire out a designer to create
    your theme? Excellent work!

  29. grisatre,エッチ コスプレavecles trois hautes marches de grès presque devant chaque porte,

  30. Do you have a spam issue on this blog; I also am a blogger,
    and I was wanting to know your situation; we have developed some nice procedures and
    we are looking to exchange solutions with others, be sure to shoot
    me an email if interested.

  31. pelenku.ru [url=https://pelenku.ru]https://pelenku.ru[/url] .

  32. Fantastic goods from you, man. I’ve understand your stuff previous to and you’re just
    extremely fantastic. I really like what you’ve acquired here,
    certainly like what you’re stating and the way in which you say
    it. You make it entertaining and you still care for to keep it smart.
    I cant wait to read much more from you. This is really
    a wonderful site.

Responder a togel4d Cancelar respuesta