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: 52,004

  1. JamesCaW dice:

    BritMeds Direct: UK online pharmacy without prescription – Brit Meds Direct

  2. pereplanirovka v nejilom zdanii_kgOl dice:

    согласование перепланировки помещений [url=http://cah.forum24.ru/?1-13-0-00002795-000-0-0]http://cah.forum24.ru/?1-13-0-00002795-000-0-0[/url] .

  3. экстренный вывод из запоя минск
    vivod-iz-zapoya-minsk010.ru
    вывод из запоя круглосуточно минск

  4. BrettKnins dice:

    cheap amoxicillin: amoxicillin uk – buy amoxicillin

  5. Scandal,never found any access to his table,人形 エロ

  6. Just heard about Kerassentials. It seems like a effective solution for toenail fungus.
    The many natural ingredients are a huge plus!

    I’ll definitely give it a try I want to learn more: https://us-kerassentials-usa.com/

  7. HerbertPef dice:

    https://medreliefuk.com/# UK chemist Prednisolone delivery

  8. Diplomi_lzki dice:

    где купить диплом колледжа в казахстане [url=www.frei-diplom9.ru/]www.frei-diplom9.ru/[/url] .

  9. JamesCaW dice:

    generic Amoxicillin pharmacy UK: generic Amoxicillin pharmacy UK – amoxicillin uk

  10. устройство цементной гидроизоляции [url=http://ustroystvo-gidroizolyacii.ru/]http://ustroystvo-gidroizolyacii.ru/[/url] .

  11. 1win_mxOt dice:

    1win az mobil versiya [url=1win5004.com]1win az mobil versiya[/url]

  12. pereplanirovka v nejilom zdanii_nbOl dice:

    перепланировка в нежилом здании [url=www.mymoscow.forum24.ru/?1-6-0-00034012-000-0-0-1759746919]www.mymoscow.forum24.ru/?1-6-0-00034012-000-0-0-1759746919[/url] .

  13. 女性 用 ラブドールs handgot up and said something to the ladies.Anna Mikháylovna steppedforward stooping over the dying man,

  14. Diplomi_zjsa dice:

    купить диплом с проводкой одной [url=www.frei-diplom1.ru/]купить диплом с проводкой одной[/url] .

  15. JamesCaW dice:

    online pharmacy: BritMeds Direct – pharmacy online UK

  16. Diplomi_xrSn dice:

    диплом медсестры с аккредитацией купить [url=http://www.frei-diplom13.ru]диплом медсестры с аккредитацией купить[/url] .

  17. JamesCaW dice:

    viagra: viagra – British online pharmacy Viagra

  18. JamesFew dice:

    Viagra online UK [url=http://britpharmonline.com/#]British online pharmacy Viagra[/url] buy viagra online

  19. For the impression made by such things as wee desire,orfeare,えろ 人形

  20. Celsa Tebbe dice:

    blueorbit – Really like the clean design, makes navigating a pleasure.

  21. I don’t know if it’s just me or if perhaps everybody
    else experiencing issues with your site. It appears
    like some of the written text on your posts are running
    off the screen. Can someone else please provide feedback and
    let me know if this is happening to them as well? This might be a issue with my internet browser because
    I’ve had this happen previously. Thank you

  22. futurelink – Overall very positive, I’m impressed with this resource.

  23. cosplay dice:

    in ourfortunate country,does not include the idea of ignorance and asacrifice of the dignity of a human being.コスプレ

  24. Diplomi_wrma dice:

    можно купить легальный диплом [url=https://www.frei-diplom3.ru]https://www.frei-diplom3.ru[/url] .

  25. a man who has no great Passion for any of these things,but is as men terme it indifferent,オナドール

  26. gabGak dice:

    Обслуживание и ремонт ПТО в компании [url=https://remont-pto.ru/]СоюзЭнерго[/url].
    [url=https://remont-pto.ru/]ремонт КПП погрузчиика[/url]
    [url=Ремонт рохли и гидравлической тележки]ремонт складской техники[/url]
    [url=https://remont-pto.ru/remont-pogruzchikov/dizelnykh]ремонт дизельных погрузчиков[/url]

  27. pereplanirovka v nejilom zdanii_zyOl dice:

    перепланировка нежилого помещения [url=cah.forum24.ru/?1-13-0-00002795-000-0-0]cah.forum24.ru/?1-13-0-00002795-000-0-0[/url] .

  28. Diplomi_pakr dice:

    купить диплом специалиста [url=http://www.rudik-diplom2.ru]купить диплом специалиста[/url] .

  29. vapeduring dice:

    This post offers clear idea for the new visitors of blogging, that genuinely how to do blogging.

  30. BrettKnins dice:

    buy viagra: buy viagra – order ED pills online UK

  31. took off his wide,strong summer overcoat of somestout cotton material (his only outer garment) and began sewing the twoends of the rag on the inside,ロボット エロ

  32. Diplomi_yqki dice:

    где купить диплом техникума денег [url=http://frei-diplom9.ru/]где купить диплом техникума денег[/url] .

  33. Diplomi_ikel dice:

    купить диплом с проводкой одно [url=https://frei-diplom2.ru]купить диплом с проводкой одно[/url] .

  34. Diplomi_igSn dice:

    где купить диплом техникума старая пять плюс [url=frei-diplom8.ru]где купить диплом техникума старая пять плюс[/url] .

  35. ロボット セックスor because I canconceive a consolation for my toils which I may never know,that I amwavering in my resolutions.

  36. JamesFew dice:

    BritMeds Direct [url=https://britmedsdirect.shop/#]pharmacy online UK[/url] online pharmacy

  37. vapehowever dice:

    Very nice post. I just stumbled upon your blog and wanted
    to mention that I’ve rally ejoyed surfing around your weblog posts.
    In any case I will be subscribing tto your rss feed and I am hoping
    you write again verry soon!

  38. Diplomi_zhsa dice:

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

  39. Diplomi_uxPl dice:

    куплю диплом медсестры в москве [url=www.frei-diplom15.ru/]куплю диплом медсестры в москве[/url] .

  40. Diplomi_uvSn dice:

    куплю диплом младшей медсестры [url=http://frei-diplom13.ru/]http://frei-diplom13.ru/[/url] .

  41. Venus Hower dice:

    Asking questions are genuinely good thing if you are not understanding anything totally, but this piece of writing offers pleasant understanding even.

  42. Diplomi_yuPl dice:

    купить диплом швеи [url=https://www.rudik-diplom7.ru]купить диплом швеи[/url] .

  43. at ang napalit na muli ay ang isang dakot naabóng itó.Hindi sinasadya’y natagp?an ko ang dalawang salitanglalong makapangyarihan,セックス コスプレ

  44. BrettKnins dice:

    generic amoxicillin: buy penicillin alternative online – buy amoxicillin

  45. Captain,?shepattered all like peas dropping,オナドール

Responder a ダッチワイフ Cancelar respuesta