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: 14,473

  1. nmpdmhta dice:

    If you’re disabled in accordance with federal government standards, and receive government disability payments, then you certainly generally can have your student loans discharged. Ask the managers of the places in places you enjoy shopping if they offer these varieties of programs, in the event you aren’t already frequenting CVS and Winn-Dixie. com or call 877 636 Rx – Rx – About The Founders – Sandy A Reese Rigg, RN, Rph – Susan Chin Jackson, RPh – Both graduated from St.
    https://ruckup.org/caregivers-forum/topic/6192

  2. ドール エロ1807,the old prince set off on one of his circuits.

  3. slot gacor dice:

    I’m impressed, I have to admit. Rarely do I come across a blog that’s both educative and entertaining,
    and without a doubt, you have hit the nail on the head.
    The problem is something that too few people are speaking
    intelligently about. Now i’m very happy that I stumbled across
    this during my hunt for something relating to this.

  4. ドール エロand now he has this authority of a commander in chief ofthe recruiting,granted by the Emperor.

  5. The Emperors remounted and rode away.ラブドール 中出しThe Preobrazhénsk battalion,

  6. bzuhkxnq dice:

    Pharmacy technicians also usually do not provide advice to patients about medication options, side effects, and other drug information. Screaming, yelling, demanding things, or becoming rude won’t help the situation. The respiratory therapist’s tasks include providing the precise measurements of oxygen or other varieties of gas concentrations inside patient’s blood as well as measuring blood alkalinity or acidity levels.
    https://meljay.de/forum/aufgaben-projekte/868-aciclovir-buy-via-the-internet

  7. reporter to the Emperor and his companion at Erfurt,ダッチワイフ 販売where hehad more than once met and talked with Napoleon.

  8. thatfor a moment I doubted if it were not the same person to whom I wasspeaking,so to make sure,中国 えろ

  9. He had tosign paper to present himself at government office the purpose ofwhich was not clear to him,to question his chief ste to visit hisestate near Moscow,ラブドール 最新

  10. qnvxjzso dice:

    It is essential to note that does not every pharmacy technician receives this kind of low wage and that when doing work in private pharmacies, it is more than likely that one receives a wage of $17 each hour minimum. The pharmacist technician have to have the prepared prescription, reviewed by a pharmacist, before dispensing or submitting the completed order to a patient or customer. They are also in charge of inspecting the operational management of dispensary and manufacturing units and providing a platform to boost the pharmacists’ role to prescribe medicine independently.
    https://www.drupalcamp.cr/es/node/4713

  11. But precisely here Jonson blunders badly.エロ い ラブドールIn s story thetrick was a genuine one.

  12. The smoke of the first shot hadnot yet dispersed before another puff appeared,followed by a report.ラブドール えろ

  13. Live Draw HK dice:

    Highly energetic blog, I liked that bit. Will there be a part 2?

  14. ラブドール リアルwho at once ran down to the little pier,was thefirst to climb on board.

  15. lending themselves to the moodaround,ダッチワイフ 販売were delicately green with fluffy young shoots.

  16. Hi, i think that i saw you visited my web site so i came to “return the favor”.I’m trying to find things to enhance my site!I suppose its ok to use
    a few of your ideas!!

  17. ラブドール 中出しHis face was purple,his eyes were rolled back so thatonly the whites were seen,

  18. snxkru dice:

    The call center company later changed its name to e – Telecare Global Soltions in 2004. Before taking any exams required by their state, they should pass the Foreign Pharmacy Graduate Equivalency examination (FPGEE), Test of English like a Foreign Language (TOEFL) and Test of Spoken English (TSE) exams. Use those outlines being a roadmap to assist you study for your pharmacy tech certification test.
    https://hetnieuweteamwerken.be/forums/forum/uroxatral-order-web

Agrega tu comenatio