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: 64,029

  1. 女性 用 ラブドールs luckless love for Natásha played a partin strengthening their friendship.Denísov evidently tried to exposeRostóv to danger as seldom as possible,

  2. “Is leave me alone! ?sobbed Sónya.セックス ロボットI know what it i if you do,

  3. ibdesignstreet – Found exactly what I needed, instructions were clear and concise.

  4. медицинский наркологический центр [url=https://narkologicheskaya-klinika-28.ru]медицинский наркологический центр[/url] .

  5. goestotown – Enjoyed reading these posts, ideas are simple yet very useful.

  6. and can compel people to change the way they act.This is important because one of the quickest ways to change social attitudes and scripts is through changing behavior.ラブドール エロ

  7. ラブドール 女性 用he expected everything to be unusual,even moreunusual than what he was seeing.

  8. наркологическая клиника trezviy vibor [url=https://www.narkologicheskaya-klinika-24.ru]https://www.narkologicheskaya-klinika-24.ru[/url] .

  9. Williamrop dice:

    vital pharma 24: vitalpharma24 – Kamagra Oral Jelly Deutschland

  10. Bryan Neldon dice:

    dinahshorewexler – Really enjoy visiting, articles are short but informative every single time.

  11. vgfkhgwkm dice:

    Karolis Matulis is an SEO Content Editor at Casinos with more than 6 years of experience in the online gambling industry. Karolis has written and edited dozens of slot and casino reviews and has played and tested thousands of online slot games. So if there’s a new slot title coming out soon, you better know it – Karolis has already tried it. Slot machines can be clicked for a chance of gaining fruit. Jackpots will triple your winnings! Each slot machine can have up to 3 different fruits types. Dive into the juicy world of Fruit Nova, where traditional fruit symbols meet modern gameplay mechanics. This engaging slot game stands out with its vibrant visuals and straightforward play. Offering a classic theme with some new twists, it appeals to both seasoned players and newcomers alike. Rather than waiting for a certain number of Scatters to appear, Fruit Shop Frenzy’s Free Spins feature triggers every time you bag a Fruity Symbol win.
    https://newhumanmanagement.com/sweet-bonanza-bonus-buy-unlock-extra-features/
    Twin Spins is one smooth-rolling game, with reels that turn quickly with little to no sound competing with the background music. Net Entertainment’s usual controls configuration is also present here, with clearly labeled buttons in white and green with black display windows. It’s easy to keep track of your current bet, bet level, coin value and number of coins remaining. We cannot accept any transactions from this Jurisdiction. Some days are not meant to be too lucky, and that is perfectly fine. A great player will know how to reduce their risk by minimizing royal win slot machine potential losses to their bankroll. You don’t want to be spending too much time playing slots too quickly, and this brings us to our next essential ingredient – how much you spend per hour and per spin. Bringing a good attitude with you when playing slots is one of the ingredients of success.

  12. Tracee Bies dice:

    abbysauce – Excellent resource, practical guides make home projects feel stress-free always.

Responder a duck life hacked apk Cancelar respuesta