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: 124,877

  1. школа-пансион бесплатно [url=https://shkola-onlajn15.ru/]shkola-onlajn15.ru[/url] .

  2. betvip dice:

    Wow, that’s what I was searching for, what a stuff! existing here at this web site, thanks admin of this web site.

  3. Spravkiqru dice:

    Узнайте детальнее о сильных сторонах работы с компанией — надёжность, качество и широкий выбор решений! Зайдите на [url=https://tdstyling.ru]https://tdstyling.ru[/url] и узнайте тарифы, данные для связи, а также публикации. https://tdstyling.ru Хотите сотрудничать — эта фирма предлагает тематические ссылки, гибкие условия и доступные цены.

  4. j?tti Isisi-joen oikealle,ラブドール オナニーkulki Kalalia my?ten — jokaon v?h?n tunnettu joki.

  5. дистанционное обучение 11 класс [url=https://shkola-onlajn15.ru/]дистанционное обучение 11 класс[/url] .

  6. дистанционное школьное образование [url=https://shkola-onlajn12.ru/]shkola-onlajn12.ru[/url] .

  7. joker dice:

    Wow, that’s what I was searching for, what a data! existing here at this blog, thanks admin of this site.

  8. онлайн обучение для детей [url=https://shkola-onlajn15.ru/]онлайн обучение для детей[/url] .

  9. перепланировка квартиры москва [url=https://pereplanirovka-kvartir5.ru/]перепланировка квартиры москва[/url] .

  10. Spravkimtl dice:

    Узнайте подробнее о преимуществах работы с организацией — стабильность, качество и полный спектр услуг! Перейдите на [url=https://tdstyling.ru]https://tdstyling.ru[/url] и узнайте предложения, данные для связи, а также публикации. https://tdstyling.ru Хотите сотрудничать — эта организация предоставляет тематические ссылки, гибкие условия и лучшие условия.

  11. Raymondmaync dice:

    Lately, I wanted to get Amoxil for a toothache and discovered a great pharmacy. They provide effective treatment cheaply. If you are in pain, this is the best place: antibiotics express shipping. Get well soon.

  12. онлайн-школа для детей [url=https://shkola-onlajn12.ru/]shkola-onlajn12.ru[/url] .

  13. онлайн ш [url=https://shkola-onlajn15.ru/]shkola-onlajn15.ru[/url] .

  14. согласование перепланировок [url=https://pereplanirovka-kvartir5.ru/]согласование перепланировок[/url] .

  15. atque aegrotat fama vacillans_………………………………………………….. Nequidquam; quoniam medio de fonte leporum Surgit amari aliquid,ラブドール エロ

  16. где согласовать перепланировку [url=https://pereplanirovka-kvartir5.ru/]pereplanirovka-kvartir5.ru[/url] .

  17. интернет-школа [url=https://shkola-onlajn14.ru/]интернет-школа[/url] .

  18. kent dice:

    Hurrah, that’s what I was exploring for, what a information! existing here at this blog, thanks admin of this site.

  19. Hi are using WordPress for your site platform? I’m
    new to the blog world but I’m trying to get started and create my
    own. Do you need any html coding knowledge to make your own blog?
    Any help would be greatly appreciated!

  20. I’ve been using it for over two years for trading, and the great support stands out.

  21. The portfolio tracking tools are useful analytics and quick deposits. Great for cross-chain swaps with minimal slippage.

  22. онлайн ш [url=https://shkola-onlajn14.ru/]shkola-onlajn14.ru[/url] .

  23. ラブドール エロ.. Obliganse a darles _marido_,quítanles el_vestido_? (Aucto IX).

  24. Wow, that’s what I was searching for, what a data! existing here at this website, thanks admin of this web site.

  25. где согласовать перепланировку [url=https://pereplanirovka-kvartir5.ru/]pereplanirovka-kvartir5.ru[/url] .

  26. jatkoih?n k?yden yksinkertaiseksi.ラブドール オナニー— Se on valkeiden miesten tapa,

  27. 수원출장마사지 24시간 연중무휴 운영!
    여성 전문 테라피스트가 수원 전 지역 어디든 찾아갑니다.
    아로마마사지·스포츠마사지·타이마사지 출장안마 서비스를
    합리적

  28. Если вы ищете эмоции, то мостбет казино,
    мостбет — это идеальный выбор. Здесь представлены события на любой вкус.

    Also visit my homepage: mostbet-n5ssh.pro

  29. узаконивание перепланировки квартиры стоимость [url=https://skolko-stoit-uzakonit-pereplanirovku-6.ru/]узаконивание перепланировки квартиры стоимость[/url] .

  30. every one with a hope or a fear hugged tightin his bosom,every one with the capacity for love,ラブドール sex

  31. Hurrah, that’s what I was seeking for, what a material! existing here at this web site, thanks admin of this web page.

  32. mutta Sandin kutsusaapui Bosambolle,ラブドール オナニーja h?n kutsui kansansa koolle.

  33. узаконить перепланировку квартиры стоимость [url=https://skolko-stoit-uzakonit-pereplanirovku-6.ru/]skolko-stoit-uzakonit-pereplanirovku-6.ru[/url] .

  34. ceux qui pleurent par pur qui pleurent parce qu’ilsm’aiment,sans cause distincte,ラブドール

  35. Wow, that’s what I was seeking for, what a information! existing here at this website, thanks admin of this site.

  36. перепланировка цена [url=https://skolko-stoit-uzakonit-pereplanirovku-6.ru/]skolko-stoit-uzakonit-pereplanirovku-6.ru[/url] .

  37. узаконить перепланировку цена [url=https://skolko-stoit-uzakonit-pereplanirovku-6.ru/]узаконить перепланировку цена[/url] .

  38. мостбет казино, мостбет предлагает ставочные
    развлечения для всех любителей эмоций.

    Also visit my blog: https://mostbet-uxxn1.lol

  39. Pero realmente no necesitaba haberla leído,ダッチワイフporquetodo lo que de ella pudo sacar había pasado á la obra del Arcipresque es sin duda uno de sus indisputables predecesores.

  40. Hi to all, because I am actually eager of reading this web site’s post to
    be updated daily. It includes good stuff.

  41. istui h?nen oikealla puolellaan aterialla ja meni naimisiinkuninkaan mielitietyn kanssa,jonka t?m? hylk?si.ラブドール オナニー

  42. I trust this platform — withdrawals are responsive team and reliable. My withdrawals were always smooth.

  43. The staking process is simple and the reliable uptime makes it even better.

Responder a Danielsnoni Cancelar respuesta