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: 75,990

  1. RobertHauck dice:

    canadian pharmacy: canadian pharmacy online – doctor recommended Canadian pharmacy

  2. these margin notes seem to have been intended to servein place of an index,えろ 人形the original having none.

  3. Jerryevile dice:

    Dr Meds Advisor [url=https://drmedsadvisor.com/#]mexican pharmacy[/url] generic medicine from Mexico

  4. RobertHauck dice:

    doctor recommended Indian pharmacy: doctor recommended Indian pharmacy – affordable Indian medications online

  5. RobertHauck dice:

    doctor recommended Indian pharmacy: indian online pharmacy – online medicine sites in india

  6. RobertHauck dice:

    canadian pharmacy: affordable medications from Canada – verified Canada drugstores

  7. Jerryevile dice:

    mexican pharmacy [url=http://drmedsadvisor.com/#]safe medications from Mexico[/url] mexican pharmacy las vegas

  8. I’m not sure exactly why but this web site is loading incredibly slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  9. Diplomi_rxMa dice:

    купить диплом прикол [url=www.r-diploma18.ru/]www.r-diploma18.ru/[/url] .

  10. you know I don’t mind hard jobs much,エロ ロボットand there must always be onescrub in a family.

  11. HerbertFes dice:

    сколько стоит виза в Японию Виза во Францию для россиян – документ, необходимый для посещения Франции с любой целью, будь то туризм, бизнес, учеба или посещение родственников. Для получения визы требуется предоставить полный пакет документов, подтверждающих цель поездки и финансовую состоятельность.

  12. RobertHauck dice:

    verified Canada drugstores: Doctor North Rx – canadian pharmacy

  13. web site dice:

    What’s up to every , because I am genuinely keen of reading
    this webpage’s post to be updated regularly.
    It consists of fastidious material.

  14. MichaelVow dice:

    http://drindiameds.com/# no prescription pharmacy India

  15. エロ フィギュア 無 修正The trouble with him seems to be that hehasn’t enough imagination.I didn’t listen to him very much.

  16. RobertHauck dice:

    generic medicine from Mexico: generic medicine from Mexico – DrMedsAdvisor

  17. Appreciate this post. Will try it out.

  18. MichaelVow dice:

    https://doctornorthrx.com/# doctor recommended Canadian pharmacy

  19. RobertHauck dice:

    Mexico to USA pharmacy shipping: trusted Mexican drugstores online – generic medicine from Mexico

  20. Jerryevile dice:

    best online pharmacies Canada to USA [url=https://doctornorthrx.xyz/#]best online pharmacies Canada to USA[/url] canadian pharmacy

  21. though it was no use at night,and the absurd round straw hatwith its flaring flame-coloured feather.ラブドール 激安

  22. 50 The wellfashioned wassailhall wondrous and gleaming:Heorot flashes on their view.ラブドール 激安 ‘Mid worldfolk and kindreds that was widest reputed Of halls under heaven which the hero abode in; Its lustre enlightened lands without number.

  23. RobertHauck dice:

    trusted Mexican drugstores online: mexican mail order pharmacy – DrMedsAdvisor

  24. bandar slot dice:

    Everyone loves it when people get together and share opinions.
    Great site, stick with it!

  25. Larrypit dice:

    DrIndiaMeds [url=http://drindiameds.com/#]Dr India Meds[/url] india pharmacy

  26. Jerryevile dice:

    verified Mexican pharmacies USA delivery [url=https://drmedsadvisor.com/#]doctor recommended Mexican pharmacy[/url] verified Mexican pharmacies USA delivery

  27. mention him with pleasure,人形 エロWeighed his worth,

  28. Jerryevile dice:

    verified Mexican pharmacies USA delivery [url=http://drmedsadvisor.com/#]verified Mexican pharmacies USA delivery[/url] certified Mexican pharmacy discounts

  29. сколько стоит узаконить перепланировку в квартире [url=skolko-stoit-uzakonit-pereplanirovku-1.ru]сколько стоит узаконить перепланировку в квартире[/url] .

  30. I plainly see why he rejoiced; I see it,and I rejoice with him.ラブドール オナニー

  31. Curtissweta dice:

    doctor recommended Indian pharmacy: affordable Indian medications online – india pharmacy

  32. perhaps,from the composition of the work at differenttimes—are questions,ラブドール オナニー

  33. slot gacor dice:

    Great post. I was checking constantly this weblog and I am inspired!
    Very useful info particularly the final part 🙂 I handle such information a lot.
    I used to be looking for this certain information for a long time.
    Thanks and good luck.

  34. Curtissweta dice:

    mexico pharmacy: DrMedsAdvisor – certified Mexican pharmacy discounts

  35. olxtoto dice:

    First of all I want to say terrific blog! I had a quick question in which I’d like to ask
    if you don’t mind. I was interested to know how you center yourself and clear your thoughts prior to writing.
    I’ve had a hard time clearing my mind in getting my ideas out.

    I truly do take pleasure in writing however it just seems like the first
    10 to 15 minutes are usually wasted just
    trying to figure out how to begin. Any suggestions or hints?
    Kudos!

  36. Larrypit dice:

    certified Mexican pharmacy discounts [url=https://drmedsadvisor.com/#]generic medicine from Mexico[/url] DrMedsAdvisor

  37. MichaelVow dice:

    http://drmedsadvisor.com/# verified Mexican pharmacies USA delivery

  38. This post is genuinely a good one it assists new the web viewers,
    who are wishing in favor of blogging.

  39. hm88 dice:

    Good blog you have here.. It’s hard to find quality writing like
    yours these days. I honestly appreciate individuals like you!
    Take care!!

  40. homepage dice:

    Hello there! I know this is somewhat off topic but I was wondering if you
    knew where I could get a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m
    having problems finding one? Thanks a lot!

  41. ставки кыргызстан [url=mostbet12039.ru]mostbet12039.ru[/url]

  42. RobertHauck dice:

    verified Indian drugstores: trusted medical sources from India – india pharmacy

  43. ¿Por qué repites los mismos errores en el amor? https://lasmujeresqueamandemasiadopdf.cyou/ Descarga gratis Las Mujeres Que Aman Demasiado y descubre las respuestas que necesitas para sanar.

  44. mostbet kg [url=mostbet12039.ru]mostbet kg[/url]

  45. Jerryevile dice:

    Mexico to USA pharmacy shipping [url=https://drmedsadvisor.xyz/#]verified Mexican pharmacies USA delivery[/url] generic medicine from Mexico

  46. Jerryevile dice:

    safe medications from Mexico [url=https://drmedsadvisor.com/#]mexico pharmacy[/url] safe medications from Mexico

  47. olxtoto dice:

    Definitely believe that which you said. Your favorite reason appeared
    to be on the web the easiest thing to be aware of.
    I say to you, I definitely get annoyed while people think about worries that
    they just do not know about. You managed to hit the nail upon the top as well as defined out
    the whole thing without having side effect , people can take a signal.

    Will probably be back to get more. Thanks

  48. akongcuan dice:

    Do you mind if I quote a few of your articles as long as I provide credit and sources back to your site?
    My blog site is in the very same area of interest as yours
    and my visitors would genuinely benefit from some
    of the information you present here. Please let me know if this okay with you.
    Thank you!

Responder a toto togel online Cancelar respuesta