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: 24,584

  1. I don’t know whether it’s just me or if perhaps everybody else encountering problems with your
    site. It appears as though some of the text on your posts are running off the
    screen. Can someone else please comment and let me know if this
    is happening to them too? This may be a issue with my web browser because I’ve had this happen before.
    Many thanks

  2. Jackpot bet dice:

    Quality articles οr reviews is the іmportant to
    invite the visitors tօ pay a quick visit tһe web page, thаt’s whɑt tһis web paցe iѕ providing.

    Heгe is my web page: Jackpot bet

  3. Rodneyrit dice:

    Swerte99 bonus: Swerte99 slots – Swerte99 casino walang deposit bonus para sa Pinoy

  4. лечение запоя тула
    tula-narkolog003.ru
    вывод из запоя тула

  5. I like the valuable info you provide in your articles.

    I will bookmark your weblog and check again here regularly.
    I’m quite sure I will learn a lot of new stuff right here!

    Best of luck for the next!

  6. cook groups dice:

    Hey There. I found your blog using msn. That is a really
    smartly written article. I’ll be sure to bookmark it and come back
    to read extra of your useful information. Thanks for the
    post. I will definitely comeback.

  7. Larryshece dice:

    Abutogel login [url=https://abutowin.icu/#]Situs togel online terpercaya[/url] Abutogel login

  8. бнанс dice:

    I don’t think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.

  9. Shop Now dice:

    I could not refrain from commenting. Exceptionally well written!

  10. Hmm is anyone else encountering problems with the images on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  11. Rodneyrit dice:

    Rut ti?n nhanh GK88: Khuy?n mai GK88 – Ca cu?c tr?c tuy?n GK88

  12. лечение запоя
    vivod-iz-zapoya-irkutsk005.ru
    экстренный вывод из запоя иркутск

  13. Scottplaip dice:

    Jiliko bonus: Jiliko – Jiliko bonus

  14. домашний интернет тарифы омск
    omsk-domashnij-internet004.ru
    интернет провайдер омск

  15. DonaldZew dice:

    Beta138: Login Beta138 – Situs judi resmi berlisensi

  16. автоматические шторы на окна [url=http://www.elektricheskie-rulonnye-shtory.ru]автоматические шторы на окна[/url] .

  17. With havin so much written content do you ever run into any issues of plagorism or copyright violation? My website
    has a lot of exclusive content I’ve either written myself or
    outsourced but it appears a lot of it is popping it up all over the internet without my agreement.
    Do you know any ways to help stop content from being ripped off?
    I’d really appreciate it.

  18. Rodneyrit dice:

    Canl? krupyerl? oyunlar: Onlayn rulet v? blackjack – Yeni az?rbaycan kazino sayt?

  19. Your method of describing all in this piece
    of writing is in fact nice, every one be able to without difficulty understand it, Thanks a lot.

  20. pes toto dice:

    I always used to read article in news papers but now as I am a
    user of internet so from now I am using net for content, thanks to web.

  21. With a 10 deposit casino offering great variances of
    table games, you can have the thrill of strategic gameplay without having to tie down a load of cash.

  22. Hello, its good article regarding media print, we all understand media is a
    great source of information.

  23. Larryshece dice:

    Swerte99 slots [url=https://swertewin.life/#]Swerte99 bonus[/url] Swerte99 slots

  24. Great post. I was checking continuously this blog and I am impressed!

    Very useful information specially the last part 🙂 I care for such info much.
    I was looking for this certain information for a very long time.
    Thank you and best of luck.

  25. Orvillelepay dice:

    This guide provides insight about Mostbet service and its functions for punters. This covers main points such as betting markets, price formats, offers, payments, safety, and helpdesk.

    Introduction

    Mostbet operates as a wagering site and online bookmaker that covers sports wagers and in many regions casino games. The site design is intuitive, and the mobile platform is optimized for portable use.

    Betting markets [url=https://gravatar.com/brieflypizzab43480bd0e]https://gravatar.com/brieflypizzab43480bd0e[/url]

    Mostbet offers a wide range of sports including football, hoops, racquet sports, e-sports, and lesser known sports. Markets include pre match bets, in-play wagers, outright markets, and prop bets.

    Odds formats

    Odds are displayed in decimal formats depending on account settings. Mostbet refreshes in-play odds quickly to reflect match events. Wager types single stakes, parlays, and betting systems.

    Bonuses and promotions

    Deals at the platform can include sign-up bonuses, free bets, deposit matches, and player clubs. Terms for bonuses are specified on the website, including wagering requirements, minimal odds, and validity periods.

    Creating an account

    To create an account you usually must enter electronic mail, password, and personal information. account confirmation often requires upload of documents such as passport or utility bills. ID checks assist secure payouts and comply with compliance rules.

  26. Sign Up dice:

    There is certainly a lot to know about this topic.

    I love all of the points you made.

  27. Larryshece dice:

    Situs judi online terpercaya Indonesia [url=https://mandiwinindo.site/#]Situs judi online terpercaya Indonesia[/url] Judi online deposit pulsa

  28. DonaldZew dice:

    Live casino Mandiribet: Mandiribet – Slot jackpot terbesar Indonesia

  29. Appreciation to my father who told me regarding this web site, this web site is truly remarkable.

Responder a https://eduardordpa98653.blog-a-story.com/17840816/epl--mlb--- Cancelar respuesta