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: 78,735

  1. ice bet casino [url=http://www.icebet-online.com]ice bet casino[/url] .

  2. Excellent post. I was checking continuously this weblog
    and I am inspired! Extremely helpful info particularly the final section 🙂 I care for such
    information much. I used to be looking for this certain information for a very lengthy time.
    Thank you and best of luck.

  3. Indiajer dice:

    Navikara Pharmacy: buy amoxil – Navikara Pharmacy

  4. olxtoto dice:

    We’re a group of volunteers and starting a brand new scheme in our community.
    Your site offered us with helpful info to work on. You’ve performed an impressive job and our whole group can be thankful to you.

  5. MartinJaify dice:

    PrednexaMed: buy prednisone – PrednexaMed

  6. mostbet kg [url=https://www.mostbet12040.ru]https://www.mostbet12040.ru[/url]

  7. Tһrough real-life study, OMT demonstrates math’ѕ impact, assisting Singapore
    trainees develop ɑ profound love and test inspiration.

    Founded іn 2013 by Mr. Justin Tan, OMT Math Tuition һaѕ actuallу
    assisted countless trainees ace tests ⅼike PSLE,
    O-Levels, and A-Levels witһ proven problem-solving techniques.

    Wіth students in Singapore Ƅeginning formal mathematics education from day one and dealing ԝith high-stakes
    assessments, math tuition ⲟffers the extra edge neеded to attain leading performance in tһiѕ essential subject.

    Ultimately, primary school school math tuition іs important foг PSLE
    excellence, as it gears up students ᴡith the tools to accomplish leading bands аnd
    protect preferred secondary school placements.

    Nomal simulated О Level tests in tuition settings mimic actual
    conditions, enabling pupils tօ refine tһeir method ɑnd decrease errors.

    Inevitably, junior college math tuition іѕ crucial to safeguarding tⲟp A Level resսlts, opening up doors tо distinguished scholarships аnd college possibilities.

    Ԝhat sets OMT apart іѕ іtѕ custom-made mathematics program that extends рast tһe MOE curriculum, fostering critical analyzing hands-ⲟn, usefᥙl workouts.

    Videotaped webinars offer deep dives lah, furnishing ʏou ԝith
    sophisticated skills fߋr premium math marks.

    Іn Singapore, whеге math effectiveness ᧐pens up doors tօ STEM careers, tuition іs vital for
    strong test structures.

    Ηere is my webpage math tuition singapore

  8. CesarOppot dice:

    Amoxicillin 500mg buy online: cheap amoxil – Navikara Pharmacy

  9. CesarOppot dice:

    india pharmacy: online medicine – online medicine

  10. CesarOppot dice:

    Navikara Pharmacy: amoxicillin without prescription – Amoxicillin 500mg buy online

  11. MartinJaify dice:

    ivermectin buy online: buy ivermectin online – StromectaDirect

  12. My partner and I stumbled over here different website and thought I should check things out.
    I like what I see so i am just following you.

    Look forward to finding out about your web page yet again.

  13. I all the time emailed this web site post page to all my contacts, because if like to read it after that my contacts will too.

  14. ziatogel dice:

    Right here is the right webpage for everyone who would like to find out about this topic.
    You know a whole lot its almost tough to argue with you (not that I personally would want to…HaHa).
    You certainly put a new spin on a topic that’s been written about for years.

    Excellent stuff, just wonderful!

  15. Diplomi_ukPl dice:

    диплом цена купить [url=https://www.r-diploma3.ru]диплом цена купить[/url] .

  16. Indiajer dice:

    generic amoxil: cheap amoxil – Navikara Pharmacy

  17. slot gacor dice:

    Appreciate this post. Will try it out.

  18. iswap24.com dice:

    Really insightful post — Your article is very clearly written, i enjoyed reading it, can i ask you a question? you can also checkout this newbies in classied. iswap24.com. thank you

  19. TimothyBruth dice:

    amoxicillin from canada [url=http://navikarapharmacy.com/#]amoxicillin without prescription[/url] cheap amoxil

Responder a TimothyBruth Cancelar respuesta