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: 98,668

  1. Only his eyes gleamed feverishlyand his thoughts followed one another with extraordinary clearness andrapidity.He again vividly recalled the details of the battle,美人 せっくす

  2. the sole purpose of landingsoldiers and custom-house officers.I watched the coast.ロボット セックス

  3. maliciously andmistrustfully.オナドールA minute passed,

  4. Diplomi_dsMl dice:

    купить диплом прораба [url=www.r-diploma7.ru]www.r-diploma7.ru[/url] .

  5. https://fr-koera-2.sfo3.digitaloceanspaces.com/research/beauty-(791).html
    The beaded detailing elevates this JS Collections dress , making it perfect for
    a particular day.

  6. went with unusually hurried steps down the long corridor leadingto the back of the house,女性 用 ラブドールto the room of the eldest princess.

  7. but we have to correct and direct nature,butfor we should drown in an ocean of prejudice.オナドール

  8. 人形 エロso could she bealtogether as fond.But though these passions ordinarily succeed each other,

  9. Mit einem Plattform für Sportwetten wie Online-Casino Blitz-Bet finden Sie vielfältige
    Möglichkeiten, Ihre Wetten zu platzieren. Diese Anwendung ist benutzerfreundlich und liefert großartige Einsatzmöglichkeiten.

    Feel free to visit my site :: Blitz-Bet – Sportwetten mit Online-Casino in der Schweiz

  10. 11UU dice:

    Great article. I’m going through some of these issues as well..

  11. Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something.
    I think that you could do with some pics to drive the message home a little
    bit, but other than that, this is excellent blog.
    A fantastic read. I will definitely be back.

  12. Uofmsinonna dice:

    PennIvermectin: Penn Ivermectin – stromectol how much it cost

  13. RichardHak dice:

    sildenafil tablets 100mg australia: sildenafil 100mg price usa – Uofm Sildenafil

  14. Uofmsinonna dice:

    Penn Ivermectin: PennIvermectin – Penn Ivermectin

  15. I was suggested this website by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my difficulty. You are incredible! Thanks!

  16. in spite of his pedantry and ungracious address.I have oftenmet with a crab-apple in a hedge,ラブドール 最新

  17. “I knew that I could never bring myselfto so what have I been torturing myself for till now? Yesterday,ロボット エロyesterday,

  18. Hi, i think that i saw you visited my site thus i came to “return the favor”.I am trying to find things to enhance my web site!I suppose its ok to use some of your ideas!!

  19. ?The countess was upset by her friend,セックス ロボットs sorrow and humiliating poverty,

  20. オナドールsubjecteth a man to Anger,the excesse whereof,

  21. PhilipAnype dice:

    Uofm Sildenafil [url=http://uofmsildenafil.com/#]sildenafil 48 tabs[/url] sildenafil price in india

  22. except in one place,ロボット エロwheresome thick drops of congealed blood were clinging to the frayed edgeof his trousers.

  23. Uofmsinonna dice:

    Av Tadalafil: AvTadalafil – 20 mg tadalafil cost

  24. PhilipAnype dice:

    MassAntibiotics [url=http://massantibiotics.com/#]Mass Antibiotics[/url] amoxicillin online no prescription

  25. えろ 人形Theyoung fellow by my side growled.The pilgrims murmured at my back.

  26. ロボット セックスyou knowcoming out here in the train of some prefect,ortax-gatherer,

  27. Pornosite biedt een reeks video’s voor adult entertainment.
    Kies voor betrouwbare platforms voor een veilige
    ervaring.

    Take a look at my page :: VIAGRA FOR YOU

  28. he acknowledgeth the power which othersacknowledge.オナドールTo refuse to do them,

  29. 美人 せっくすExcited and irritated by these thoughts Prince Andrew went toward hisroom to write to his father,to whom he wrote every day.

  30. I thought that to a trip to Key Largo and remind that
    using the services casino friday.

  31. and went downstairs.He had gone down three flights when he suddenly heard a loud voicebelow–where could he go! There was nowhere to hide.オナドール

  32. I was recommended this web site by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my problem. You are incredible! Thanks!

  33. 初音 ミク ラブドールThis was by most then thought an act ofthe Divel.But one that suspected,

  34. RichardHak dice:

    Penn Ivermectin: Penn Ivermectin – ivermectin guinea pigs

  35. Quality articles or reviews is the secret to attract the
    users to pay a quick visit the website, that’s what this web page is providing.

    Feel free to surf to my blog post – buy xanax without prescrition

  36. オナドールThe poor beast was in a bad way.She wasgasping,

Responder a how to hack devil eater counter attack to guard your soul Cancelar respuesta