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: 92,243

  1. MartinVab dice:

    Buy sildenafil online usa: Buy sildenafil online usa – Buy sildenafil online usa

  2. fhkaslfjlas – Overall the site works well, pleasant and easy to navigate.

  3. Diplomi_xopa dice:

    купить диплом геодезиста [url=www.rudik-diplom5.ru/]купить диплом геодезиста[/url] .

  4. 8886611tz – Overall it’s a simple, fast, and pleasant website experience.

  5. Diplomi_tpma dice:

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

  6. MartinVab dice:

    Generic tadalafil 20mg price: Buy Tadalafil 20mg – Generic Cialis without a doctor prescription

  7. ?“Ah,等身 大 ラブドールI forgot! A letter came for you yesterday when you were out.

  8. прогнозы на футбол на сегодня [url=www.prognozy-na-futbol-10.ru]прогнозы на футбол на сегодня[/url] .

  9. curl perfect dice:

    I absolutely love your website.. Great colors & theme.
    Did you build this web site yourself? Please reply back as I’m attempting to create my own blog
    and want to find out where you got this from or just what the
    theme is called. Many thanks!

  10. porn300 – Navigation felt simple and clear, no confusion finding sections.

  11. Diplomi_loor dice:

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

  12. ドール エロpermitted him to proceed,which hedid as follows:–“Indeed,

  13. Thank you for some other magnificent post. The place else may just anybody get that
    kind of information in such an ideal manner of writing?
    I have a presentation next week, and I’m on the search
    for such information.

  14. Kelsi Coltey dice:

    dz-cream – Overall it’s a pleasant, simple, and functional website experience.

  15. worldloans – Layout is neat and organized, information is accessible right away.

  16. Hong Barria dice:

    v1av8 – The domain is mysterious, design appears bold though content is unclear.

  17. nnvfy – The design is simple and straightforward, easy to browse through.

  18. mizao0 – Smooth performance overall, made the visit enjoyable and easy.

  19. fhkaslfjlas – Navigation is straightforward, no confusing sections or menus at all.

  20. Diplomi_zbka dice:

    купить диплом прораба [url=www.rudik-diplom1.ru]купить диплом прораба[/url] .

  21. Diplomi_reSn dice:

    медсестра которая купила диплом врача [url=www.frei-diplom13.ru/]www.frei-diplom13.ru/[/url] .

  22. Diplomi_xskn dice:

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

  23. Ray Kennin dice:

    heyspin – Overall simple, fast, and enjoyable to use this website.

  24. Link exchange is nothing else except it is simply placing the other
    person’s blog link on your page at proper place and other
    person will also do same for you.

  25. deallegria – The layout is organized well, making everything easy to find.

  26. do what you will! How can I go and apologize like a little boyasking forgiveness? ?Denísov began to laugh.美人 せっくす“ll be worse for you.

  27. ドール エロtill shegrew towards the age of sixteen,who was near three yearsolder,

  28. Jill Bacus dice:

    nnvfy – The site is well-structured, easy to move around quickly.

  29. 等身 大 ラブドールin costumes of unseemly scantines some ofthem with cards in their hand They were particularly diverted,whenMarmeladov,

  30. Diplomi_jdPl dice:

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

  31. Diplomi_sxki dice:

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

  32. Diplomi_nfon dice:

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

  33. Diplomi_dksa dice:

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

  34. and with his hasty andabrupt departure,ドール エロgave her sufficient reason to think her father’ssuspicion not groundless.

  35. porn300 – The design is straightforward, makes browsing feel easy and relaxed.

  36. deallegria – Navigation is simple and intuitive, I found things easily.

  37. It’s appropriate time to make some plans for the future and it’s time
    to be happy. I have read this post and if I could I
    want to suggest you some interesting things or tips.
    Maybe you could write next articles referring to this article.
    I desire to read more things about it!

  38. v1av9 – Browsing was seamless overall, no lag or glitches experienced.

  39. They were silent for a while.女性 用 ラブドール“As I was saying to be kind and generous as you alwaysused to be.

  40. Детоксикация алкоголя в владимире , важный этап в лечении алкоголизма . Клиники наркологии в владимире предлагают разнообразные программы детоксикации , которые помогают справиться с зависимостью от спиртного . Нарколог на дому может оказать помощь при алкогольной зависимости на дому что является удобным решением для многих пациентов. нарколог на дом Лучшие врачи-наркологи проводят лечение запойного состояния и предоставляют всю необходимую медицинскую поддержку при алкоголизме . Консультация нарколога позволяет определить индивидуальный план лечения . Не менее важна психологическая поддержка в процессе детоксикации, что помогает в восстановлении после злоупотребления алкоголем и успешной реабилитации от алкоголя ;

  41. Yong Ursino dice:

    i1oxj – Overall fast, efficient, and user-friendly website interaction today.

  42. When someone writes ann paragraph he/she retains tthe idea of a user in his/her mind that how a user can be awate of
    it. So that’s why this piece of writing is great.
    Thanks!

    Here is my webpage :: macarthur car service

  43. She was almost at the last gasp,オナドールbut began kicking once more.

  44. after a modest apology for beingobliged to speak the truth against her husb related all thecircumstances with which the reader hath already been acquainted,人形 エロandat last concluded with her husband’s confession of his guilt.

  45. Diplomi_qakr dice:

    купить диплом в черкесске [url=www.rudik-diplom2.ru/]купить диплом в черкесске[/url] .

  46. Diplomi_dfel dice:

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

  47. ラブドール 激安as he hadbeen with Luzhin.Razumihin stood a moment,

Responder a Jill Bacus Cancelar respuesta