saa Infraestructura como código – Politraining

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: 141,932

  1. mostbet_sckn dice:

    mostbet retragere in siguranta [url=https://www.mostbet2010.help]https://www.mostbet2010.help[/url]

  2. ラブドール エロwho shall be nameless,would bring in question the honor of a personage of most exalted station; and this fact gives the holder of the document an ascendancy over the illustrious personage whose honor and peace are so jeopardized.

  3. Davidadusa dice:

    Nausea Care US [url=https://nauseacareus.shop/#]buy zofran online[/url] Nausea Care US

  4. mostbet_viEi dice:

    mostbet app скачать [url=https://www.mostbet38095.help]https://www.mostbet38095.help[/url]

  5. Conradbug dice:

    muscle relaxant drugs: Spasm Relief Protocols – buy methocarbamol

  6. Football fixtures today with live score tracking, know exactly when your team plays next

  7. Davidadusa dice:

    robaxin medication [url=https://spasmreliefprotocols.com/#]Spasm Relief Protocols[/url] buy methocarbamol

  8. car журнал [url=https://avto-zhurnal-2.ru/]avto-zhurnal-2.ru[/url] .

  9. xnxx dice:

    Oh my goodness! Awesome article dude! Many thanks, However I am experiencing troubles with your RSS.
    I don’t understand why I can’t join it. Is there anyone else having
    identical RSS problems? Anyone who knows the answer will you kindly respond?
    Thanx!!

  10. Ramon Kasal dice:

    This all-natural remedy aids in treating pelvic floor fungus, strengthening pelvic floors, and improving your overall sense of self-assurance.

  11. Dribble success, take-on attempts and completion rates documented

  12. ISL live score today, Indian Super League matches with ball-by-ball updates and stats

  13. Site voor volwassenen biedt een reeks video’s voor adult entertainment.
    Kies voor veilige adult sites voor een veilige ervaring.

    Here is my web blog; brutal porn clips

  14. ve come just in the nick of time–another two minutes and Ishould have come to blows! They are talking such a lot of wild stuff…you simply can,ラブドール 激安

  15. Conradbug dice:

    Gastro Health Monitor: prilosec omeprazole – Gastro Health Monitor

  16. Dribble success, take-on attempts and completion rates documented

  17. mostbet_uhEi dice:

    как играть в aviator mostbet [url=http://mostbet38095.help]http://mostbet38095.help[/url]

  18. Tarea mucho más ardua,ラブドール えろy tan prolija como impertinente,

  19. 토닥이 dice:

    토닥이 여성전용마사지는 오직 여성만을 위한 전국 출장 전문 마사지
    서비스입니다. 대한민국 최초의 여성 전용 마사지 플랫폼으로서 수많은 여성 고객에게
    사랑받고

  20. Davidadusa dice:

    omeprazole brand name [url=https://gastrohealthmonitor.shop/#]omeprazole[/url] omeprazole brand name

  21. Conradbug dice:

    Gastro Health Monitor: omeprazole – prilosec generic

  22. Por su argumento son leyendas religiosas,ダッチワイフque sóloen estar dialogadas se diferencian de otras varias que Rosvita tratóen narración épica.

  23. mostbet_vnEi dice:

    mostbet лимиты KGS [url=www.mostbet38095.help]mostbet лимиты KGS[/url]

  24. Post-match analysis, expert opinions and tactical breakdowns available

  25. Hey! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up
    losing several weeks of hard work due to no back up. Do you have any methods to protect against hackers?

  26. Davidadusa dice:

    Gastro Health Monitor [url=https://gastrohealthmonitor.shop/#]omeprazole over the counter[/url] Gastro Health Monitor

  27. 1хбет букмекерская контора, сайт 1хбет предлагает широкий выбор ставок на спортивные соревнования.

    Feel free to visit my web blog :: https://1xbet-hyd0.buzz/

  28. Conradbug dice:

    omeprazole: Gastro Health Monitor – prilosec otc

  29. Your mode of explaining all in this piece of writing is really good,
    all can simply know it, Thanks a lot.

  30. Nous sommes touché par ce travail. Donner Soutien pour la chirurgie oculaire
    la sauvegarde de la vision est un moyen puissant de aider
    l’humanité. Poursuivez ces actions formidables.

  31. Excellent post. I was checking constantly this blog and
    I am impressed! Very useful info specifically the last
    part 🙂 I care for such information a lot. I was seeking this certain info for a long time.

    Thank you and best of luck.

  32. poolzubehör dice:

    You’ve made some really good points there. I checked on the internet for additional information about the issue and found most individuals will go
    along with your views on this site.

  33. журналы автомобильные [url=https://avto-zhurnal-4.ru/]журналы автомобильные[/url] .

  34. 1win_jdSi dice:

    1win как зарегистрироваться [url=www.1win74125.help]1win как зарегистрироваться[/url]

  35. I loved as much as you will receive carried out right here.

    The sketch is attractive, your authored material stylish.
    nonetheless, you command get got an edginess over that you wish be delivering the following.

    unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this
    increase.

  36. Conradbug dice:

    zofran dosage: Nausea Care US – zofran dosage

  37. From compassion? ButMr.等身 大 ラブドールLebeziatnikov who keeps up with modern ideas explained the other daythat compassion is forbidden nowadays by science itself,

  38. I’m really inspired together with your writing skills
    as smartly as with the layout on your blog. Is this a paid
    subject matter or did you modify it your self? Either way stay up the nice high quality writing, it is rare to peer a
    nice weblog like this one these days..

Responder a Ramon Kasal Cancelar respuesta