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: 24,285

  1. I couldn’t refrain from commenting. Exceptionally well written!

  2. internetmix dice:

    домашний интернет подключить нижний новгород
    nizhnij-novgorod-domashnij-internet004.ru
    недорогой интернет нижний новгород

  3. evostoto dice:

    Woah! I’m really enjoying the template/theme of this site.
    It’s simple, yet effective. A lot of times it’s very hard to get
    that “perfect balance” between user friendliness and appearance.

    I must say you’ve done a amazing job with this.
    Additionally, the blog loads extremely fast for me on Firefox.
    Exceptional Blog!

  4. and had approached,in rapid impetuosity,ロシア エロ

  5. From that chamber,and from that mansion,ロシア エロ

  6. エロオナホeven Superintendent Bell cameto see me,and he’s really a very fine man.

  7. when you might becomfortable all your days by minding me and doing better? I thought youhad more sense,リアル ラブドール“”I couldn’t do better if I waited half my life! John is good and wise;he’s got heaps of talent; he’s willing to work,

  8. Good post however , I was wondering if you could write a
    litte more on this topic? I’d be very grateful if you could elaborate a little bit further.
    Bless you!

  9. Hello There. I found your blog using msn.
    This is a really well written article. I’ll be sure to bookmark
    it and come back to read more of your useful information. Thanks for the post.
    I will definitely comeback.

  10. RGWilliam dice:

    Когда готовился к олимпиаде, материалы из [url=http://ua-lib.ru/essay/book.php?id=5]раздела эссе[/url] помогли мне написать сильную работу, которая принесла мне победу.

  11. It is appropriate time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I desire to suggest you some interesting things or tips.

    Perhaps you can write next articles referring
    to this article. I desire to read even more things about it!

  12. What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely helpful and
    it has aided me out loads. I’m hoping to contribute & help other customers like its aided me.
    Great job.

  13. and the intrigue ends bymutual consenThe second act opens with the episode of Merecraft,s plot to gullFitzdottre The project of the dukedom of Drownedland is given chiefplace,エロ い ラブドール

  14. I’m amazed, I must say. Seldom do I encounter a blog that’s both equally educative and interesting,
    and let me tell you, you have hit the nail on the head.
    The issue is an issue that too few men and
    women are speaking intelligently about. I am very happy that I
    came across this during my hunt for something regarding this.

    Here is my web blog :: หวยฮานอย วันนี้

  15. Data HK dice:

    Wonderful goods from you, man. I have bear in mind your stuff prior to and you’re just extremely
    excellent. I actually like what you have bought right here, really
    like what you are saying and the best way during which you assert it.
    You’re making it entertaining and you still care for to stay it sensible.
    I can not wait to learn far more from you.
    This is actually a terrific website.

  16. It is in point of fact a great and helpful piece of information. I am glad that you simply shared this useful info with
    us. Please stay us informed like this. Thank you
    for sharing.

  17. пансионат для пожилых с инсультом
    pansionat-tula004.ru
    пансионат инсульт реабилитация

  18. Hеllo everyone, it’ѕ my first visіt at this site, and post is in fact frսitful for me, кeep up posting such articles.

  19. This paragraph is actually a fastidious one it assists new net users, who are
    wishing for blogging.

  20. лечение запоя
    vivod-iz-zapoya-chelyabinsk005.ru
    экстренный вывод из запоя челябинск

  21. was straightwaydispatched for the doctor,エロオナホwho in due time came,

  22. Prime Biome dice:

    PrimeBiome is a standout probiotic formula that really supports gut health and
    digestion. I’ve noticed better energy, reduced bloating, and even improved mood since starting it.
    If you’re looking for a natural way to boost
    your overall wellness, PrimeBiome is definitely worth a try!

    Ask ChatGPT

  23. get euros for tether trc-20 barcelona

Responder a free adult iptv Cancelar respuesta