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: 88,842

  1. sl189 dice:

    Hello everyone, it’s my first visit at this website,
    and article is in fact fruitful in support of me, keep
    up posting these types of content.

  2. kokitoto dice:

    We stumbled over here from a different web page and thought
    I should check things out. I like what I see so now i’m following you.
    Look forward to going over your web page repeatedly.

  3. era muytonto,コスプレ r18tanto que sus vecinos le habían puesto por apodo “El Tonto”.

  4. Great blog here! Also your web site loads up very
    fast! What host are you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as fast as yours lol

  5. were veryill adapted to alleviate the horrors of my condition,I gratified mylandlord for his important services,ラブドール 販売

  6. セックス ロボット“I bet on Dólokhov! ?cried a third.“Kurágin,

  7. “The brown current ran swiftly out of the heart of darkness,bearing usdown towards the sea with twice the speed of our upward progress,えろ 人形

  8. I visit each day a few sites and information sites to read articles,
    but this web site provides quality based articles.

  9. Well,ラブドール えろif a lot of mysterious niggers armed with all kinds offearful weapons suddenly took to travelling on the road between Dealand Gravesend,

  10. Hello, I think your site could possibly be having browser compatibility problems.

    Whenever I take a look at your web site in Safari, it looks
    fine however when opening in I.E., it’s got some overlapping issues.

    I merely wanted to give you a quick heads up! Apart from that, excellent site!

  11. My coder is trying to persuade me to move to .net
    from PHP. I have always disliked the idea because of the costs.
    But he’s tryiong none the less. I’ve been using Movable-type on numerous websites for about
    a year and am worried about switching to another platform.
    I have heard excellent things about blogengine.net. Is there a
    way I can import all my wordpress posts into it? Any help would be really appreciated!

  12. PatrickFes dice:

    indian pharmacy paypal http://bswfinasteride.com/# buying propecia without prescription

  13. PatrickFes dice:

    online pharmacy india https://pmaivermectin.xyz/# ivermectin dose for head lice

  14. melbet [url=www.melbetbonusy.ru]www.melbetbonusy.ru[/url] .

  15. and had a pleasant voice,what she saidwas true and appropriate,セックス ロボット

  16. look at this dice:

    Thanks to my father who informed me concerning this blog, this blog is actually
    remarkable.

  17. ..? And why isn,ラブドール 激安t Zametov at the police office? The policeoffice is open till ten o,

  18. ” And he ran back to overtake Raskolnikov,butthere was no trace of him.フィギュア 無 修正

  19. ufa24k dice:

    I am really loving the theme/design of your website. Do you ever
    run into any web browser compatibility problems? A few of my blog
    readers have complained about my blog not working correctly in Explorer but looks great in Safari.
    Do you have any suggestions to help fix this issue?

  20. Parents shοuld ѕee secondary school math tuition аѕ important in Singapore for fostering curiosity іn mathematical concepts.

    Alamak, no ⲟne cɑn touch Singapore’s
    lead іn international math lor.

    Parents, highlight ethics іn Singapore math tuition’s practices.
    Secondary math tuition ⲣrovides revision tools.
    Enroll in secondary 1 math tuition tо debunk sets.

    Ingenious secondary 2 math tuition ᥙsеs VR fоr geometry.
    Secondary 2 math tuition immerses trainees іn 3D shapes. Innovative secondary 2 math tuition reinvents learning.
    Secondary 2 math uition embraces technology.

    Ꭲhe significance οf secondary 3 math exams іs heightened
    by their prelude tο Օ-Levels, where preparation peaks.
    Тop ratings hеlp wіth wellness combination in academics.
    Thеy promote worldwide citizenship tһrough math applications.

    Singapore’ѕ system accommodates secondary 4 exams respectfully.

    Secondary 4 math tuiyion rhythms fit. Тhis consistency
    enhances О-Level. Secondary 4 math tuition accommodates.

    Ɗon’t limit math tߋ exams; іt’s a key skill in thе AΙ surge, vital fߋr interpreting statistical data іn intelligent
    systems.

    Nurture аn enduring love fоr mathematics аnd embed its principles
    іnto your daily real-life decisions fоr superior performance.

    Ⲟne benefit iѕ gaining insights іnto
    examiner expectations fгom diverse Singapore secondary math papers.

    Leveraging online math tuition e-learning helps Singapore stidents with satellite data analysis fоr real math apps.

    You қnoᴡ sіɑ, don’t worry ah, yoᥙr kid wіll love
    secondary school, lеt them enjoy withοut pressure.

    Feel free t᧐ surf to my blog … how much one on one tutor math primary

  21. I do not even know the way I ended up here, but I believed this put
    up was once great. I don’t recognize who you are however certainly
    you are going to a famous blogger should you aren’t already.
    Cheers!

  22. with the exception of Nelson,えろ こすぷれthe great Englishadmiral,

  23. seo services company [url=www.reiting-seo-kompanii.ru]seo services company[/url] .

Responder a pomoravac Cancelar respuesta