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: 81,535

  1. win crash game [url=www.aviator-game-winner.com/]win crash game[/url] .

  2. TristanFag dice:

    Blue Wave Meds [url=https://bluewavemeds.xyz/#]trusted Kamagra supplier in the US[/url] kamagra

  3. win crash game [url=https://aviator-game-best.com]win crash game[/url] .

  4. Davidkib dice:

    Viagra tablet online: AeroMedsRx – AeroMedsRx

  5. I’m not that much of a internet reader to be honest but your blogs really nice, keep it up!
    I’ll go ahead and bookmark your site to come back later. Cheers

  6. TristanFag dice:

    online pharmacy for Kamagra [url=https://bluewavemeds.com/#]trusted Kamagra supplier in the US[/url] Blue Wave Meds

  7. aviator x [url=http://www.aviator-game-cash.com]http://www.aviator-game-cash.com[/url] .

  8. bravo789 dice:

    I do not even know how I stopped up right here, but I thought this post used to be good.
    I don’t understand who you might be but definitely you are going to a well-known blogger if you happen to aren’t already.
    Cheers!

  9. Hi there just wanted to give you a quick heads up and let you know a few
    of the images aren’t loading correctly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different browsers and both show the same outcome.

  10. Lucren AI dice:

    The other day, while I was at work, my cousin stole my apple ipad and tested to see if it can survive a 25
    foot drop, just so she can be a youtube sensation. My apple ipad is now
    destroyed and she has 83 views. I know this is entirely off topic
    but I had to share it with someone!

  11. of hispeculiar dispositio for every one knows that this earthly air,ラブドール 激安whether ashore or afloat,

  12. ラブドール えろI expressed a wish tovisit England,but concealing the true reasons of this request,

  13. awkward andsolemn,apologizing instead of attending,えろ 人形

  14. TristanFag dice:

    order Kamagra discreetly [url=https://bluewavemeds.xyz/#]buy Kamagra online[/url] buy Kamagra online

  15. TristanFag dice:

    AeroMedsRx [url=https://aeromedsrx.com/#]AeroMedsRx[/url] Cheap generic Viagra

  16. She endeavoured to secure Jane inher interest,エロ リアルbut Jane,

  17. se dessinent les feuilles despommiers,c’est ce paysage dont parfois,コスプレ r18

  18. aviator money [url=https://aviator-game-cash.com/]https://aviator-game-cash.com/[/url] .

  19. and with all thereckless energy of his tribe was venting his wild exclamations upon thewhale,and essaying to get a fair chance for his poised lance,sex doll

  20. Davidkib dice:

    Generic Cialis price: Generic Tadalafil 20mg price – Buy Tadalafil 5mg

  21. Kennethlek dice:

    AeroMedsRx: AeroMedsRx – Cheap Sildenafil 100mg

  22. Davidkib dice:

    order Kamagra discreetly: BlueWaveMeds – kamagra oral jelly

  23. It’s going to be finish of mine day, but before end I am reading this great piece of writing to improve my knowledge.

  24. Thanks for the good writeup. It actually used to be
    a leisure account it. Glance advanced to more introduced
    agreeable from you! By the way, how can we communicate?

  25. Unquestionably imagine that which you stated. Your favourite reason appeared to be on the
    internet the simplest factor to remember of. I say to you,
    I definitely get irked whilst other folks consider concerns that they just do not recognise about.
    You controlled to hit the nail upon the top as smartly as defined out the whole thing without
    having side-effects , folks could take a signal. Will probably be again to get more.

    Thanks

  26. Watch adult videos securely on reputable adult platforms. Find safe streaming hubs
    for a premium experience.

    Feel free to visit my web site; BUY LEVITRA ONLINE

  27. Every weekend i used to visit this web page, for the reason that i want enjoyment, for the reason that this this website conations truly pleasant funny information too.

  28. ergo ahorcaberis!.ランジェリー エロ…268At nagpapailingiling na masama ang loob.?Saturnino,

  29. when some time after this Ahab was now and thenfound bestirring himself in the matter of making thole-pins with hisown hands for what was thought to be one of the spare boat and evensolicitously cutting the small wooden skewer which when the line isrunning out are pinned over the groove in the bow: when all this wasobserved in him,and particularly his solicitude in having an extracoat of sheathing in the bottom of the boat,人形 エロ

  30. Hello, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of
    spam comments? If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any support is very much appreciated.

  31. but I always speakwhat I think.sex doll?“I know you do: and it is that which makes the wonder.

  32. as to creatures of anangelic nature and celestial mechanism.But I felt that I had no rightto share their intercourse.ラブドール えろ

  33. LonnieOveld dice:

    Кресло с обивкой из ткани букле — это мягкий и комфортный предмет мебели мебель для спальни в современном стиле

  34. ?Be “reasonable ?and urge your fellow-confereesto be “reasonable ?and avoid haste which might result in embarrassmentsor difficulties later on.ラブドール(8) Be worried about the propriety of any decisionraise the questionof whether such action as is contemplated lies within the jurisdictionof the group or whether it might conflict with the policy of somehigher echelon.

  35. aviator x [url=http://www.aviator-game-winner.com]http://www.aviator-game-winner.com[/url] .

  36. sex dollthough not playing half so and Mary,at theend of a long concerto,

  37. Hi, I read your new stuff regularly. Your writing style is awesome, keep doing
    what you’re doing!

Responder a ロボット セックス Cancelar respuesta