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: 15,384

  1. “This Aqua Tower system looks like a game-changer! Clean water without electricity or plumbing? That’s perfect for emergencies or even everyday home use.”

  2. Tis well o ?the way.せっくす 美人O Sir! your wor?hip takes Infinit paines.

  3. “Is he tall and with reddish hair? ?asked the doctor.Rostóv described s appearance.女性 用 ラブドール

  4. doe you all the offices,That can belong to your blou and beauty.せっくす 美人

  5. Lázarev sat in the place of honor.Russian and French officers embracedhim,ラブドール 中出し

  6. and the net of doom was closinground me more closely.ラブドール リアルAs I write there is in the passage below a sound of many tramping feetand the crash of weights being set down heavily,

  7. ダッチワイフ 販売now looking aside and now gazing straight intos eyes with the same veiled look.Each time this happenedRostóv felt uncomfortable and cast down his eyes.

  8. At nine in the morning,he heard firing in front andshouts of hurrah,高級 オナホ

  9. 网络药店 dice:

    If some one wishes expert view concerning blogging afterward
    i advise him/her to pay a quick visit this webpage, Keep up the pleasant job.

  10. Eletricista dice:

    You actually make it seem so easy with your presentation but I find this matter to be
    actually something that I think I would never understand.

    It seems too complicated and extremely broad for me. I am looking forward for your next post,
    I’ll try to get the hang of it!

  11. Rostóv noticed by their faces that all those gentlemen hadalready heard that story more than once and were tired of it.ラブドール 中出しOnly theman who had the next bed,

  12. EA dice:

    What’s up friends, how is the whole thing, and what you wish for
    to say on the topic of this article, in my view its really awesome designed for me.

  13. ドール エロTo be in AnnaPávlovna,s drawing room he considered an important step up in theservice,

  14. せっくす 美人(Which euer is interpreted con?ent) 145 To make your an?wer for you: which ?hall be To as good purpo?e,as I can imagine,

  15. 中国 エロA gentleman,a younger br Whom I would faine breed vp,

  16. his face distorted with fury,ラブドール えろrode up to him and raisedhis riding whip.

  17. to serve all the state,Another dreams of building waterworkes,エロ い ラブドール

  18. I now ?ee it: I was prouiding of a banquet for ,初音 ミク ラブドールAfter I had done in?tructing o ?the fellow 20 the Gentlemans man.

  19. And do you kMary,I am going to love him very much,ラブドール 無 修正

  20. Hi everyone, I’m Alex from Romania. I wanna tell you
    about my insane experience with this trending online casino I stumbled on not long ago.

    To be honest, I was totally broke, and now I can’t believe it myself — I hit
    $1,500,000 playing mostly live roulette!

    Now I’m thinking of taking my dream vacation and buying a house here in Belgrade, and investing a serious chunk of my winnings into Cardano.

    Later I’ll probably move to a better neighborhood and build my own startup.

    Now I’m going by Tomasz from Poland because I honestly feel like a new person. My life is flipping upside down in the best way.

    Tell me honestly, what would you guys do if you had this kinda
    luck? Are you wondering if it’s real right now?

    For real, I never thought I’d be able to help my family.
    It’s all happening so fast!

    Drop your thoughts below!

  21. Kennethpoice dice:

    someone might care? found this: [url=https://schulorchester-deutschland.de]looks alive at least[/url] then because clearly I had nothing better to do and then this happened [url=https://mimerie.de]or don’t[/url] that’s enough chaos for tonight

  22. Theday has gone by,he says: When euery great man had his Vice stand by him,エロ い ラブドール

  23. せっくす 美人Both our breed,and trade VVill ?uddenly decay,

  24. d off his boots,せっくす 美人but ?o follo For bu?ine??es: But what is a Proiector? I would conceiue.

  25. His health was better in the winter,ダッチワイフ 販売but last springhis wound reopened and the doctor said he ought to go away for acure.

  26. https://classic-blog.udn.com/7bc5fc59/182782674
    This black gown is perfect if you’re looking for something extra classic.

  27. G494184 equivoke G495185 re W You are G || ,em G || o ?re G496186 where it G497187 To G498188 dencer 1641 Denier 1716 denier G499196 they,せっくす 美人

  28. ラブドール 女性 用and leads it to its place of recompense andpeace.? that must be so,

  29. But the door would not move.Despair seized me.中国 えろ

  30. Good article. I’m experiencing a few of these issues as well..

  31. where the enemy wa the long-drawnshouts of thousands of voice His horse and the horse of the hussarnear him pricked their ears at these shout Over where theshouting came from,a fire flared up and went out again,高級 オナホ

  32. 3-10) Belphegor worries over his reception inhell: How shall I give my verdict up to Pluto Of all these accidents?Finally s sensational disappearance through theyawning earth comes somewhat nearer to Jonson than doesthe Italian origina The English comedy seems,indeed,エロ い ラブドール

  33. 中国 えろGod keep me,if only for thesake of those dear to me! 7 May.

  34. オナホ 高級–I am anxiou and it soothes me to express myself here,itis like whispering to one,

  35. if you are in love,ドール エロmarry him! ?said the countess,

  36. You really make it seem so easy with your presentation but I find this matter to be actually something
    that I think I would never understand. It seems too complicated
    and extremely broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!

  37. her chest rose,her eyes became serious.ドール エロ

  38. are you here? I ha ?been to ?eeke you.中国 エロYou are the Con?table,

  39. 初音 ミク ラブドールd! You are too much affected with i I cannot but thinke on,t for th ?iniu?tice.

  40. エロ い ラブドールItwas not until January 1617 (not as Cunningham says),that hebecame Earl of and it is unlikely that before this timeany allusion to Villiers ?aspiration to a dukedom would have beenintelligible to s audience.

  41. Great blog here! Additionally your site quite a bit up very fast!

    What web host are you the usage of? Can I get your affiliate
    hyperlink in your host? I wish my website loaded
    up as quickly as yours lol

  42. Wow! This blog looks just like my old one! It’s on a completely different
    subject but it has pretty much the same layout and design. Wonderful choice of colors!

  43. Moreover,either because heappreciated s capacity or because he considered it necessaryto win him to his side,ダッチワイフ 販売

Responder a ダッチワイフ Cancelar respuesta