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,419

  1. A person essentially assist to make seriously articles
    I’d state. That is the very first time I frequented
    your web page and thus far? I surprised with the analysis you
    made to make this particular publish amazing.
    Excellent task!

  2. Diplomi_khEr dice:

    Мы готовы предложить документы институтов, расположенных в любом регионе РФ. Приобрести диплом о высшем образовании:
    [url=http://moskat.flybb.ru/viewtopic.php?f=2&t=5173/]купить аттестат за 11 класс с занесением в[/url]

  3. psihmskdreno dice:

    врач психиатр на дом
    psikhiatr-moskva001.ru
    лечение психиатрических расстройств

  4. Michaeladhet dice:

    IverGrove [url=https://ivergrove.com/#]IverGrove[/url] ivermectin reddit

  5. Dara 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

  6. Frankspatt dice:

    amoxicillin discount: TrustedMeds Direct – buy amoxicillin 500mg canada

  7. Wayneceals dice:

    prednisone 15 mg tablet: cortisol prednisone – prednisone without prescription.net

  8. jepang88 dice:

    You could certainly see your enthusiasm within the
    work you write. The world hopes for even more passionate
    writers such as you who are not afraid to say how they believe.
    All the time go after your heart.

  9. and can be of no real advantage to yourself or anyone else? ?“Nay,“this is too much,えろ 人形

  10. JerryFew dice:

    lasix generic: lasix 40mg – lasix pills

  11. Attractive component of content. I just stumbled upon your web site and
    in accession capital to say that I get in fact loved account your blog posts.

    Any way I will be subscribing in your augment and even I success you get right of entry to consistently fast.

  12. Wayneceals dice:

    can i order clomid without prescription: FertiCare Online – cost of cheap clomid

  13. that he had formerly seenhim often,ラブドール 風俗after observing that he was a very gentlemanlike man,

  14. Hi there! I’m at work surfing around your blog from my new iphone!
    Just wanted to say I love reading your blog and look forward to all your posts!
    Carry on the superb work!

  15. casa como dice:

    you are in reality a excellent webmaster. The web site loading velocity is amazing.
    It sort of feels that you are doing any distinctive trick.

    In addition, The contents are masterwork. you have done a magnificent process on this matter!

  16. ラブドール おすすめwith an “Et tu Brute! ?expression.It is no perhap entirely because the whale is so excessivelyunctuous that landsmen seem to regard the eating of him withabhorrence,

  17. Онлайн-психолог онлайн телеграмм поможет справиться с неуверенностью.
    Получите помощь!

  18. Incredible! This blog looks just like my old one!
    It’s on a entirely different topic but it has pretty much the same layout and
    design. Outstanding choice of colors!

  19. частная психиатрическая клиника стационар
    psikhiatr-moskva003.ru
    стационарное психиатрическое лечение

  20. Hi all, here every person is sharing such experience, thus it’s fastidious to read this
    web site, and I used to pay a quick visit this website all the time.

  21. toto macau dice:

    Excellent article. Keep writing such kind of info on your
    page. Im really impressed by it.
    Hey there, You’ve performed an incredible job. I’ll definitely digg it and personally
    suggest to my friends. I am sure they will be
    benefited from this web site.

  22. Frankspatt dice:

    TrustedMeds Direct: amoxicillin 50 mg tablets – generic amoxicillin cost

  23. Diplomi_nvEn dice:

    купить диплом института ссср [url=https://educ-ua4.ru]купить диплом института ссср[/url] .

  24. ma túy đá dice:

    certainly like your website but you need to check the spelling on several of
    your posts. Many of them are rife with spelling problems and I in finding
    it very bothersome to tell the reality however I will surely come back again.

  25. till she die though she should liveto a hundred.高級 ダッチワイフHer eyes were large blue wondering eye looking straightat you,

  26. JerryFew dice:

    FertiCare Online: where can i buy cheap clomid – FertiCare Online

  27. 線上A片 dice:

    Heya! I just wanted to ask if you ever have any problems with hackers?

    My last blog (wordpress) was hacked and I ended
    up losing a few months of hard work due to no backup. Do you have any methods to stop hackers?

    Take a look at my web page – 線上A片

  28. подстанция купить [url=https://transformatornye-podstancii-kupit1.ru/]transformatornye-podstancii-kupit1.ru[/url] .

  29. mostbet_ctMn dice:

    mostbet uzcard skachat [url=www.mostbet4102.ru]www.mostbet4102.ru[/url]

  30. Frankspatt dice:

    where can i buy clomid prices: buying generic clomid tablets – FertiCare Online

  31. alexistogel dice:

    Hi mates, good paragraph and good urging commented here, I am actually enjoying by
    these.

  32. Wayneceals dice:

    purchase oral ivermectin: is ivermectin a steroid – IverGrove

  33. JerryFew dice:

    CardioMeds Express: furosemide – lasix online

Responder a p2p USDT in San Diego Cancelar respuesta