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: 15,075

  1. I found new insight from this.

  2. The depth in this piece is praiseworthy.

  3. qcgazkv dice:

    It could be used by fraudsters to get into your accounts at a number of financial institutions. I must add, I have never had any type of emotional disorder within my life and am a skeptic of anti-depressants. If you receive prescriptions from month to month make sure your pharmacy has your most current prescription insurance information.
    https://www.decentjobsforyouth.org/partner/20494

  4. More articles like this would make the blogosphere a better place.

  5. I discovered useful points from this.

  6. More blogs like this would make the web richer.

  7. Click here dice:

    Howdy! This post couldn’t be written any better!

    Reading this post reminds me of my good old room mate!
    He always kept chatting about this. I will forward
    this write-up to him. Fairly certain he will have a good read.

    Thank you for sharing!

  8. more dice:

    Hmm is anyone else encountering problems with the pictures
    on this blog loading? I’m trying to determine if its a problem
    on my end or if it’s the blog. Any suggestions would be greatly appreciated.

  9. Ian Harris dice:

    I took away a great deal from this.

  10. Appreciating the time and energy you put into your website and in depth information you
    offer. It’s awesome to come across a blog every once
    in a while that isn’t the same outdated rehashed material.
    Excellent read! I’ve saved your site and I’m including your RSS feeds to
    my Google account.

  11. I am really enjoying the theme/design of your website. Do you ever run into any browser compatibility issues?

    A small number of my blog visitors have complained about my
    website not working correctly in Explorer but looks great in Opera.
    Do you have any solutions to help fix this problem?

  12. you’re really a excellent webmaster. The site loading velocity is amazing.
    It kind of feels that you are doing any distinctive trick.

    In addition, The contents are masterwork. you’ve done a fantastic task in this topic!

  13. Ian Thompson dice:

    I discovered useful points from this.

  14. I’ve been surfing on-line more than three hours these days, yet I by no means discovered any attention-grabbing
    article like yours. It is lovely price sufficient for me.
    Personally, if all website owners and bloggers made
    just right content material as you probably did, the net can be much more helpful
    than ever before.

  15. More content pieces like this would make the online space better.

  16. James Clarke dice:

    More articles like this would make the blogosphere better.

  17. Full Story dice:

    I’d like to thank you for the efforts you have put in writing this site.

    I am hoping to view the same high-grade content by you in the future as well.

    In truth, your creative writing abilities has inspired me to get my own, personal site now 😉

  18. I really enjoyed the way this was explained.

  19. More articles like this would make the web more useful.

  20. kbjhskm dice:

    CVS Pharmacy must rely on prescription drug sales to remain in business, but Wal-Mart doesn’t must add a huge markup to the medications they sell. When all factors are considered, however, I would have to say that the prices charged at CVS Pharmacy and Rite Aid Pharmacy are very comparable. Most drugs need to become stored at exact temperatures, so one of the things pharmacists learn included in pharmaceutical quality training could be the necessary steps to keep the facilities clean and in compliance with regulations.
    https://cadel.ru/phentermine-acquire-online

  21. Peter Hall dice:

    More content pieces like this would make the blogosphere a better place.

  22. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  23. I absolutely admired the approach this was laid out.

  24. Nordix Varel dice:

    Do you mind if I quote a few of your articles as long as I
    provide credit and sources back to your website? My blog site is in the very same area of interest
    as yours and my visitors would truly benefit from a lot of the information you provide here.

    Please let me know if this ok with you. Thank you!

  25. quwrvk dice:

    The answering services company company later changed its name to e – Telecare Global Soltions in 2004. The holding, the transfers, the newest rules and the mail-order requirements. Strong customer care skills can be a must when handling the hectic pace of an pharmacy or pharmaceutical department.
    https://www.geofak85.ru/zithromax-obtain-online

  26. More blogs like this would make the web richer.

  27. Anónimo dice:

    It’s genuinely very complex in this active life to listen news on TV, therefore I just use world wide web for that
    reason, and obtain the most recent information.

  28. rlzdos dice:

    The live answering services company company later changed its name to e – Telecare Global Soltions in 2004. Important point to be noticed is cost can’t always be the first consideration. Strong customer satisfaction skills can be a must when handling the hectic pace of a pharmacy or pharmaceutical department.
    https://www.nadietah.ru/otzyv/133331-estonianyorkshire/468394-zopiclone-make-online-purchase

  29. I’ll gladly recommend this.

  30. Oregon,セックス ロボットUSA classifies cauliflower as Brassica oleraceae Group Botrytis rather than botanical variety botrytis,

  31. 高級 ラブドールthen your regular backpack will probably work.I would also bring ear plugs and an eye mask if you’re staying at a hostel,

  32. Thanks for putting this up. It’s well done.

  33. Alisa dice:

    You should be a part of a contest for one of the most useful sites on the net.
    I’m going to recommend this site!

  34. I genuinely admired the approach this was laid out.

  35. セックス ロボットA Snowball type would refer to cultivars with the same basic characteristics as Snowball (e.g.

  36. Partaking in group exercise activities like an exercise class or hiking group can also provide sources of social interaction.In moments of loneliness and/or anxiety,ラブドール オナホ

  37. but if you want to experience some of the best coffee in the city,this is the place to be.ラブドール 無 修正

  38. Paul Jones dice:

    The clarity in this write-up is exceptional.

  39. Anónimo dice:

    Llevo un tiempo explorando distintas plataformas de juego online y
    sinceramente, pocas me han convencido tanto como ne.jp.
    Desde que me registré, me pareció súper intuitiva y el proceso de inicio de sesión fue directo y seguro.
    La app móvil de Spinmama me sorprendió bastante: funciona
    bien incluso en Android básicos, lo cual marca diferencia.

    No es una simple copia de la web, sino una herramienta bien hecha.

    También me gustó mucho el tema del Spinmama bono, porque se activa fácil y sin líos.
    Y no es solo para nuevos usuarios: siguen lanzando promos frecuentes.Además, algo que
    valoro mucho es el soporte al cliente en español.
    Respondieron rápido cuando tuve una duda, lo cual refuerza la experiencia.
    Si alguien busca una opción seria para jugar online,
    recomiendo echarle un ojo a Spinmama porque hasta ahora todo ha funcionado
    genial.

  40. I particularly admired the way this was explained.

  41. resvjxte dice:

    Pharmacy technicians also usually do not provide advice to patients about medication options, unwanted side effects, or other drug information. Ask the managers in the places in which you enjoy shopping if they provide these varieties of programs, if you aren’t already frequenting CVS and Winn-Dixie. After you filled in the account, you’ll now select a payment scheme.
    https://www.07acg.com/node/40093

  42. abdjegen dice:

    An online pharmacy is pretty a help in an embarrassing scenario like this. Insurance is confusing in the first place, additionally it is constantly changing. The massive rise in people creating an online business for many of their shopping and daily needs has triggered many pharmacies having an online site built, where they offer numerous services which can assist you avoid making unnecessary trips to your local pharmacy.
    http://guides.womenwin.org/node/104901

  43. Paul Clarke dice:

    The detail in this piece is exceptional.

Responder a more Cancelar respuesta