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: 125,474

  1. 【マンガ】「全員めちゃくちゃにしてやる!」セックス ロボット愛する男に肝臓を奪われた女の叫び〈肝臓を奪われた妻〉

  2. I lay at thebottom of the boat,and as I gazed on the cloudless blue sky,ラブドール えろ

  3. After I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive 4 emails with the same comment. There has to be a means you are able to remove me from that service? Many thanks!

  4. I can eat infour hours after they are taken–My sallad root and potherb my owngarden yields in plenty and perfectio the produce of the naturalsoil,オナホ フィギュアprepared by moderate cultivation.

  5. replica uhren, fake uhren kaufen sind eine beliebte
    Wahl für viele. Diese tollen Uhren gewähren eine ausgezeichnete Alternative zu teuren Marken. Über ihre exzellenten Materialien scheinen sie täuschend echt.

  6. allwin app dice:

    After I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I receive 4 emails with the exact same comment. There has to be an easy method you can remove me from that service? Thanks!

  7. and yet he presided in the O’Connell case.エッチ な 下着Lord Westbury was in chronic wrangle with the bishops,

  8. The elder workman looked at him askance.ラブドール 激安“What do you want? ?he asked suddenly.

  9. When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I get four emails with the exact same comment. There has to be a means you can remove me from that service? Kudos!

  10. Williamhem dice:

    проститутки ростова ночные бабочки
    снять индивидуалок в ростове

  11. When I initially commented I appear to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get 4 emails with the same comment. There has to be an easy method you can remove me from that service? Thanks!

  12. 33win dice:

    Great post. I was checking constantly this blog and I am impressed!
    Very helpful info specifically the last part 🙂 I care for such
    information much. I was seeking this particular info for a long time.

    Thank you and best of luck.

  13. dewatogel dice:

    The best choice I made for providing liquidity. Smooth and useful analytics.

  14. エロ下着 dice:

    How they’re made has changed a lot,ラブドール sex using unique materials like silicone and TPE (a kind of plastic). These materials are strong, soft

  15. Now asthe blubber envelopes the whale precisely as the rind does an orange,ラブドール おすすめso is it stripped off from the body precisely as an orange is sometimesstripped by spiralizing it.

  16. MINT88 dice:

    I every time used to study piece of writing in news papers but now as I am a
    user of internet thus from now I am using net for articles or reviews, thanks to
    web.

  17. When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get 4 emails with the exact same comment. There has to be a means you are able to remove me from that service? Cheers!

  18. 6z bet dice:

    After I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I receive 4 emails with the exact same comment. There has to be a means you are able to remove me from that service? Many thanks!

  19. the soundness of his own constitution,人形 エロand histime of life,

  20. sbobet dice:

    When I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I get four emails with the exact same comment. There has to be a means you can remove me from that service? Thank you!

  21. In front of thefirst rank,えろ 人形along the river,

  22. and he hasreceived his caution in good part.–Hitherto he has baffled all thevigilance,オナホ フィギュア

  23. 1win_buPi dice:

    aviator 1win [url=https://1win5741.help]aviator 1win[/url]

  24. Why did I not die? More miserable than man ever was before,ラブドール えろwhy did I notsink into forgetfulness and rest? Death snatches away many bloomingchildren,

  25. I personally find that the site is easy to use and the seamless withdrawals keeps me coming back. The updates are frequent and clear.

  26. I personally find that i value the robust security and trustworthy service. This site is reliable. I moved funds across chains without a problem.

  27. ラブドール 風俗Illustration]CHAPTER XXXIV.Illustration]When they were gone,

  28. You really make it seem so easy with your presentation but I find this matter to be actually
    something which I think I would never understand.
    It seems too complicated and very broad for me. I’m looking forward for
    your next post, I’ll try to get the hang of it!

  29. with more or lesseDispleasure and Offence.えろ 人形Pleasures Of Sense,

  30. When I originally left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now whenever a comment is added I receive 4 emails with the same comment. Is there a way you are able to remove me from that service? Cheers!

  31. After I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now whenever a comment is added I get four emails with the same comment. There has to be an easy method you are able to remove me from that service? Many thanks!

  32. オナドールin a frenzy with himself.Meanwhile it would seem,

  33. tamabet dice:

    When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the exact same comment. There has to be a way you can remove me from that service? Appreciate it!

  34. VZ99 dice:

    You actually make it appear really easy along with your
    presentation but I to find this matter to be actually something which I think I
    would by no means understand. It sort of feels too
    complex and extremely large for me. I am looking ahead on your subsequent submit,
    I’ll attempt to get the hold of it!

  35. When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I receive 4 emails with the same comment. Is there an easy method you are able to remove me from that service? Thanks a lot!

Responder a hack for catch the candy holiday time Cancelar respuesta