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: 81,705

  1. ラブドール 女性 用a defective or damaged disk orother medium,a computer virus,

  2. I take pleasure in, lead to I discovered exactly what I was taking a look for.
    You’ve ended my four day lengthy hunt! God Bless you
    man. Have a great day. Bye

  3. From the vibrating line extending the entire length of the upper partof the boat,ラブドール おすすめand from its now being more tight than a harpst youwould have thought the craft had two keelsone cleaving the water,

  4. Davidkib dice:

    EveraMeds: Buy Tadalafil 20mg – EveraMeds

  5. TristanFag dice:

    BlueWaveMeds [url=https://bluewavemeds.com/#]online pharmacy for Kamagra[/url] trusted Kamagra supplier in the US

  6. TristanFag dice:

    AeroMedsRx [url=https://aeromedsrx.xyz/#]AeroMedsRx[/url] AeroMedsRx

  7. ZacharyUnamp dice:

    http://aeromedsrx.com/# Cheap generic Viagra online

  8. ラブドール 激安“It is not a great way,” answered the farmer’s wife.

  9. ???? ???? ??? [url=aviator-game-predict.com]aviator-game-predict.com[/url] .

  10. Davidkib dice:

    Cialis 20mg price in USA: Generic Cialis price – EveraMeds

  11. Hi there! I just wanted to ask if you ever have any issues
    with hackers? My last blog (wordpress) was hacked and
    I ended up losing months of hard work due to no data backup.
    Do you have any solutions to stop hackers?

  12. bandar togel dice:

    You actually make it appear really easy along with your presentation however I in finding this topic to be really something which I think I might by no means
    understand. It kind of feels too complicated and very vast for me.
    I’m having a look forward in your subsequent submit,
    I will attempt to get the hold of it!

  13. ‘XXXIIBRAVE THOUGH AGED.REMINISCENCE{The dragon spits fire.オナホ フィギュア

  14. disapproved strongly of it.エロ フィギュア 無 修正And at thesame time Marilla recollected that she had put the bottle of raspberrycordial down in the cellar instead of in the pantry as she had toldShe went back to the kitchen with the wine bottle in her hand.

  15. TristanFag dice:

    order Kamagra discreetly [url=http://bluewavemeds.com/#]trusted Kamagra supplier in the US[/url] order Kamagra discreetly

  16. ダッチワイフanddismissing her guide,conducted her into the cottage.

  17. free porn, porn, porn hub, jav porn, injdo porn, porn indo, japanese porn, porn dude,
    indonesia porn, gay porn, video porn, porn video, porn hd, korean porn, tһe porn dude, japan porn, free porn, rae lil
    black porn, porn indonesia, аі porn, porn comic,
    tiktok porn, audrey davis porn, porn movie, chineese porn, sophie rain porn, xxx porn, pkrn sex, hhd porn, asian porn, anime porn, deepfake porn, sex porn, alyx star porn, hiaru nagi porn, indonesian porn, nagi hikaru porn,
    robblox porn, porn xxx, bu guru salsa porn, porn tube,
    Ьig boobs porn, xnxx porn, situs porn, porn japan, msbreewc porn, film porn, bulan sutena porn,
    hazel moore porn, hijab porn, douyin pprn viagra, ϲlick here,
    buy xanax online, best casino, hacked site, scam
    reviews, malware, download mp3 free

  18. ’ I see; you want notonly a State,but a luxurious State; and possibly in the more complexframe we may sooner find justice and injustic Then the fine arts mustgo to work—every conceivable instrument and ornament of luxury will bewanted.ラブドール オナニー

  19. FrankTAF dice:

    Two armchairs upholstered in textured fabric and black legs in a light interior, side view купить модульный диван цена

  20. TristanFag dice:

    buy cialis pill [url=https://everameds.com/#]buy cialis pill[/url] EveraMeds

  21. I need not explain myself farther,エロ リアルand though we know this anxiety to be quite needles yet if she feels it,

  22. ????? ??? [url=http://www.aviator-game-predict.com]http://www.aviator-game-predict.com[/url] .

  23. I just like the helpful information you provide for your
    articles. I will bookmark your weblog and check again right here frequently.

    I’m relatively sure I’ll be informed many new stuff right right here!
    Best of luck for the next!

  24. 人形 エロThis is hardly the viewof the nineteenth century.It is possible that logically the individualis prior to the State; historically and in the order of Nature,

  25. フィギア エロeither of theliteral or the metaphorical sort.I am the last person to undervalue theselfregarding virtues; they are only second in importance,

  26. ZacharyUnamp dice:

    http://bluewavemeds.com/# trusted Kamagra supplier in the US

  27. Davidkib dice:

    EveraMeds: EveraMeds – EveraMeds

  28. I’m not sure where you’re getting your information, but good topic.
    I needs to spend some time learning more or understanding more.
    Thanks for fantastic information I was looking for this
    info for my mission.

  29. TristanFag dice:

    kamagra [url=https://bluewavemeds.xyz/#]kamagra[/url] order Kamagra discreetly

  30. ?Uncle Wellngton clmbed foolshly and feebly nto hs car.ラブドール 高級He wantedto gve Snath a pece of hs mnd,

  31. Davidkib dice:

    cheapest cialis: EveraMeds – buy cialis pill

  32. It is affirmed that in thecountry where this tendency is most completely realisedwhere bothsociety and the government are most democraticthe United Statesthefeeling of the majority,フィギア エロto whom any appearance of a more showy orcostly style of living than they can hope to rival is disagreeable,

Responder a Kennethlek Cancelar respuesta