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: 63,800

  1. медтехника [url=www.medicinskaya-tehnika.ru]www.medicinskaya-tehnika.ru[/url] .

  2. pg slot99 dice:

    Wonderful blog! I found it while searching on Yahoo News.

    Do you have any suggestions on how to get
    listed in Yahoo News? I’ve been trying for
    a while but I never seem to get there! Thanks

  3. Diplomi_lrkn dice:

    купить диплом с проводкой моего [url=http://frei-diplom6.ru/]купить диплом с проводкой моего[/url] .

  4. Diplomi_zzsa dice:

    купить диплом занесением реестр украины [url=https://www.frei-diplom1.ru]https://www.frei-diplom1.ru[/url] .

  5. медицинская техника [url=http://www.medicinskaya-tehnika.ru]медицинская техника[/url] .

  6. Diplomi_hgOr dice:

    купить диплом колледжа в украине [url=educ-ua7.ru]educ-ua7.ru[/url] .

  7. Davidjusty dice:

    MediUomo [url=https://mediuomo.com/#]comprare Sildenafil senza ricetta[/url] Medi Uomo

  8. エロ フィギュア 無 修正and the discussion of secrets.” He got up from hischair and took his hat.

  9. agenolx dice:

    Sweet blog! I found it while browsing on Yahoo News.

    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thanks

  10. and her husband abroad upon his necessaryoccasions.This unhappy patient,ラブドール 通販

  11. balondor88 dice:

    I do consider all of the ideas you’ve offered on your post.
    They’re very convincing and can certainly work.

    Nonetheless, the posts are too quick for novices. Could you please prolong
    them a little from subsequent time? Thank you for the post.

  12. оборудование для больниц [url=http://medicinskoe–oborudovanie.ru/]http://medicinskoe–oborudovanie.ru/[/url] .

  13. refusing his note,that I mightkeep a prosecution for felony hanging over his hea as a security forhis future good behaviour–But Timothy would by no means trust himselfin my hands till the note was accepted–then he made his appearance atmy door as a blind beggar,オナホ フィギュア

  14. エロ フィギュア 無 修正”And as though that was a matter of no importance,he carefully offeredthe ash-tray to who was ruthlessly scattering cigarette ashover the carpet.

  15. медицинская техника [url=https://medicinskaya-tehnika.ru/]медицинская техника[/url] .

  16. Diplomi_mzsi dice:

    купить диплом о высшем образовании с занесением в реестр отзывы [url=http://frei-diplom4.ru/]купить диплом о высшем образовании с занесением в реестр отзывы[/url] .

  17. все опции сохраняются: ставки, казино, 1win оперативные
    выплаты.

    Also visit my web-site … 1win-iedtq.top

  18. s an old-worldgarden n taly where want to show you the moon rsng over Romethrough the dark cypress-trees.?“Wll that be any loveler than the moon rsng over Mstaws? ?“Not loveler.ラブドール 女性 用

  19. Diplomi_bekr dice:

    купить диплом инженера электрика [url=https://rudik-diplom2.ru/]купить диплом инженера электрика[/url] .

  20. Great beat ! I wish to apprentice while you amend your web
    site, how can i subscribe for a weblog site? The account aided me
    a acceptable deal. I have been a little bit familiar of this your broadcast provided brilliant transparent concept

  21. エロ 人形so that Iwas obliged to stop at Barnet to have another,while the coach proceededat an easy pace over the common.

  22. Diplomi_noel dice:

    купить диплом в нальчике [url=www.rudik-diplom10.ru]купить диплом в нальчике[/url] .

  23. Jesussmeds dice:

    veilige online medicijnen Nederland: online apotheek zonder recept – veilige online medicijnen Nederland

  24. in thecourse of laying aside all that restraint which he had hithertopreserved,ラブドール 無 修正he seized her delicate h and pressed it to his lips;nay,

  25. liquid testosterone for sale

    References:

    git.bayview.top

  26. частный наркологический центр [url=http://narkologicheskaya-klinika-24.ru/]http://narkologicheskaya-klinika-24.ru/[/url] .

  27. lovedollandthen human faces.Suddenly he remarked that every face that he drewseemed to have a fantastic likeness to Basil Hallward.

  28. Diplomi_qxpn dice:

    екатеринбург купить диплом в реестр [url=http://www.frei-diplom5.ru]екатеринбург купить диплом в реестр[/url] .

  29. Diplomi_lspa dice:

    купить диплом хореографа [url=http://rudik-diplom5.ru/]купить диплом хореографа[/url] .

Responder a Diplomi_yiel Cancelar respuesta