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: 99,551

  1. DonaldAcaft dice:

    https://dabet.reviews/# latest Dabet Vietnam link

  2. macauslot dice:

    I could not resist commenting. Very well written!

  3. エロ リアルyou will beas welcome to me as either of them.?The wedding took place: the bride and bridegroom set off for Kent fromthe church door,

  4. Diplomi_luSa dice:

    можно ли купить диплом о высшем образовании в москве [url=www.r-diploma11.ru]можно ли купить диплом о высшем образовании в москве[/url] .

  5. bandar slot dice:

    Good day! I know this is somewhat off topic but I was wondering which blog
    platform are you using for this site? I’m getting
    sick and tired of WordPress because I’ve had issues
    with hackers and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of a good platform.

  6. Great post. I was checking continuously this blog and I’m impressed!
    Extremely helpful information specifically the final
    section 🙂 I care for such info much. I used to be looking for this certain information for a very long time.
    Thank you and good luck.

  7. https://fr-well-1.nyc3.digitaloceanspaces.com/research/%EF%B8%8F-france-(415).html
    Do you favor to put on mild and ethereal colours or do you gravitate toward darker shades?

  8. I have read some excellent stuff here. Certainly price bookmarking for
    revisiting. I wonder how much effort you place to create this
    kind of excellent informative site.

  9. togelup dice:

    The best choice I made for providing liquidity. Smooth and low fees.

  10. 1 win официальный сайт, 1 win предоставляет уникальные возможности для
    беттинга.

    Look into my blog: https://1win-vrl.store/

  11. artemloginov dice:

    [url=https://mostbet-br.top][/url]
    регистрация

  12. BL555 dice:

    Hey very nice website!! Man .. Excellent ..
    Superb .. I’ll bookmark your website and take the feeds also?
    I am glad to seek out a lot of helpful information here in the
    post, we need work out extra strategies on this regard,
    thank you for sharing. . . . . .

  13. Ronaldcroff dice:

    На сайте часто выигрышные серии случаются у игроков. 7k официальный сайт может быть, это честная генерация случайных чисел.

  14. vag servis spb_ifmi dice:

    ваг сервис спб [url=elektromontazh-spb.su]ваг сервис спб[/url] .

  15. Diplomi_wjPr dice:

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

  16. Diplomi_doml dice:

    купить диплом специалиста 2014 [url=https://r-diploma10.ru]купить диплом специалиста 2014[/url] .

  17. I am really enjoying the theme/design of your site.

    Do you ever run into any internet browser compatibility issues?

    A few of my blog readers have complained about my site not operating correctly in Explorer but looks great in Chrome.
    Do you have any suggestions to help fix this problem?

  18. Bryancof dice:

    link Dabet hoạt động cho người dùng Việt Nam [url=https://dabet.reviews/#]địa chỉ truy cập Dabet mới nhất[/url] latest Dabet Vietnam link

  19. Diplomi_mdSn dice:

    где можно купить диплом медсестры [url=http://frei-diplom13.ru/]где можно купить диплом медсестры[/url] .

  20. Bryancof dice:

    địa chỉ vào Fun88 mới nhất [url=https://fun88.sale/#]Fun88 Vietnam liên kết truy cập hiện tại[/url] địa chỉ vào Fun88 mới nhất

  21. DonaldAcaft dice:

    http://darazplay.blog/# DarazPlay Vietnam current access

  22. Mariatogel dice:

    I’m impressed by the stable performance. I’ll definitely continue using it. The updates are frequent and clear.

  23. DouglasSweme dice:

    planbet: PLANBET Bangladesh main access page – PLANBET ? ????? ??????? ????

  24. I got this web site from my friend who shared with me about this web page and now this time I am browsing this web page and
    reading very informative content at this time.

  25. Fun88Oxync dice:

    link Fun88 Vietnam đang hoạt động: Fun88 Vietnam official access link – liên kết vào Fun88 cho người dùng Việt Nam

  26. dewalive dice:

    I think that is one of the most important info for me.
    And i am happy reading your article. However wanna commentary on some basic issues,
    The site style is great, the articles is really excellent :
    D. Just right process, cheers

Agrega tu comenatio