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: 107,286

  1. Fırat Engin bahis siteleri, Casino Siteleri Nargül
    Engin, Slot Siteleri Hüseyin Engin, Deneme Bonusu Veren Siteler Ahmet Engin, Mehdi Deneme Bonusu, Mehdi Deneme bonusu
    veren siteler

  2. Kennethpem dice:

    Umass India Pharm: cheapest online pharmacy india – Umass India Pharm

  3. CraigWed dice:

    rate canadian pharmacies [url=http://nyupharm.com/#]canadian king pharmacy[/url] thecanadianpharmacy

  4. is associated with greater relationship satisfaction.人形 えろOne reason for this sexual afterglow may be because sex feels closer in time,

  5. Michaelroyar dice:

    https://nyupharm.xyz/# canadian family pharmacy

  6. ラブドール エロThe high-quality materials ensure both durability and a realistic feel,while the articulated joints provide smooth and offering prompt and thorough assistance throughout the process.

  7. JosephDug dice:

    canadian pharmacy online: my canadian pharmacy reviews – canadian pharmacy oxycodone

  8. Diplomi_okSn dice:

    где купить дипломы медсестры [url=www.frei-diplom13.ru/]где купить дипломы медсестры[/url] .

  9. Kennethpem dice:

    canadian pharmacy sarasota: canadian pharmacy online – canadian medications

  10. This paragraph will assist the internet users for building up new blog or even a blog from start to end.

  11. ラブドールYour narrative style brought the topic to life,making even the most complex aspects of [specific subtopic] accessible and engaging.

  12. перепланировка помещения [url=https://pereplanirovka-kvartir1.ru/]перепланировка помещения[/url] .

  13. and I look forward to exploring more of your practical insights.Your article on [specific topic] was a perfect blend of clarity and depth.ダッチワイフ

  14. In Singapore’s framework, secondary school math tuition plays a crucial role in enhancing conceptual clarity.

    Ⲩoᥙ know lor, Singapore аlways aces ԝorld math rankings lah!

    As parents in Singapore, гemain ahead with evolving Singapore math tuition. Secondary math
    tuition adapts rapidly tօ modifications. Ꭲhrough secondary 1
    math tuition, exponential notations ⅽlick eаrly.

    Secondary 2 math tuition encourages expedition օf math
    history. Secondary 2 math tuition shares stories Ƅehind theorems.

    This enriching secondary 2 math tuition іncludes depth tⲟ lessons.
    Secondary 2 math tuition influences іnterest.

    Succeeding іn secondary 3 math exams іs essential, ɑѕ this stage
    leads directly t᧐ O-Level intensity. Τhese
    resultѕ guide mentorship pairings. Success motivates exploration оf math history.

    Secondary 4 exams sustain properly іn Singapore.
    Secondary 4 math tuition materials eco. Ꭲһiѕ awareness enhances O-Level.
    Secondary 4 math tuition sustains.

    Ⅾon’t confine math tօ test scores; it’s a
    crucial skill іn surging AΙ, enabling accurate weather forecasting.

    Ꭲߋ excel іn math, cultivate passion аnd
    apply math principles іn daily routines.

    Students can refine thеir estimation skills
    tһrough pаst papers from assorted secondary
    schools f᧐r math exams.

    Online math tuition e-learning in Sinmgapore enhances exam performance ƅy offering
    mock tests thɑt mimic actual PSLE or O-Level formats.

    Eh ɑh, chill leh, secondary school in Singapore safe, ⅼet
    your kid enjoy wіthout extra pressure.

  15. you would havewanted to know where she had been taken.銉┿儢銉夈兗銉?銈儕銉嬨兗”The car drew up before 307,

  16. material dice:

    Hey there I am so thrilled I found your web site, I really found you by error, while I was searching on Bing
    for something else, Anyhow I am here now and would just like to say thank you for a tremendous post and a all
    round interesting blog (I also love the theme/design), I don’t have
    time to look over it all at the moment but I have book-marked it and also added your
    RSS feeds, so when I have time I will be back to read much more, Please do keep up the
    excellent work.

  17. Kennethpem dice:

    Umass India Pharm: Umass India Pharm – Umass India Pharm

  18. You have made some really good points there. I looked on the internet for more info about the issue and
    found most people will go along with your views on this
    web site.

    Here is my web-site; DOWNLOAD WINDOWS 11 CRACKED

  19. Michaelroyar dice:

    http://nyupharm.com/# canadian pharmacies compare

  20. gay porn dice:

    I think this is one of the most important info for me. And
    i’m glad reading your article. But want to remark on few general things,
    The web site style is great, the articles is really excellent : D.
    Good job, cheers

Responder a surprise stories Cancelar respuesta