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: 22,485

  1. заказать авто из кореи [url=www.avto-iz-korei-1.ru]заказать авто из кореи[/url] .

  2. JosephGak dice:

    The most beautiful cities in Italy? It turns out that small towns [url=][/url]

  3. Arnoldwak dice:

    All new customers of the 1xBet bookmaker have the opportunity [url=https://yartrans.ru/inc/pgs/?kupanie_novoroghdennogo_malysha.html]https://yartrans.ru/inc/pgs/?kupanie_novoroghdennogo_malysha.html[/url]

  4. Kathryn dice:

    When some one searches for his necessary thing, so he/she needs to be
    available that in detail, so that thing is maintained over here.

  5. animal dice:

    I love what you guys are up too. Such clever work and reporting!
    Keep up the good works guys I’ve you guys to my own blogroll.

  6. Ernesto dice:

    Heya! I’m at work surfing around your blog from my new apple iphone!

    Just wanted to say I love reading your blog
    and look forward to all your posts! Keep up the great
    work!

  7. Attractive component to content. I simply stumbled upon your
    blog and in accession capital to claim that I get
    actually loved account your weblog posts.
    Any way I’ll be subscribing to your augment and even I achievement you access consistently fast.

  8. Heya i’m for the first time here. I found this board and I find It truly useful & it helped me out much.
    I hope to give something back and aid others like you helped me.

  9. Celinda dice:

    This piece of writing will assist the internet viewers for setting
    up new weblog or even a weblog from start to end.

  10. Terrell dice:

    I know this site provides quality dependent articles and extra stuff,
    is there any other web site which offers these kinds of things in quality?

  11. ラブドールI know the wife of a very high personage in the Administration,and also a man who has lots of influence with,

  12. “and how little attention we pay to it! ?He was pleased at the gratitude he received,ラブドール 女性 用but felt abashed atreceiving i This gratitude reminded him of how much more he might dofor these simple,

  13. Curious about are there casinos in texas?
    Discover everything you need to know with our expert-approved guides.
    We focus on fair gameplay, responsible gambling,
    and secure platforms you can trust. Our recommendations include casinos with top-rated bonuses,
    excellent support, and real player reviews to help you get the most out
    of every experience. Whether you’re new or experienced,
    we make sure you play smarter with real chances to win and safe environments.

  14. RobertCox dice:

    Sweepstakes casinos offer a unique gaming experience that combines the excitement of traditional casinos with the chance to win big prizes. Unlike regular online casinos, sweepstakes casinos work on a different model, allowing players to join contests for free or by purchasing entries. This guide will discuss the features and benefits of sweepstakes casinos, as well as offer tips on how to get started.

    ## What is a Sweepstakes Casino

    A sweepstakes casino defines an online platform where players can accrue real cash or prizes through various games. The primary concept revolves around a promotional offer, where users can acquire entries into sweepstakes by playing games or purchasing virtual currency. This distinct setup allows players from regions where online gambling may be restricted to also enjoy games of chance and skill.

    ### Key Features of Sweepstakes Casinos

    1. Free Entry Options: Many sweepstakes casinos allow players to earn entries for free through promotions, thus giving everyone a fair chance to play.

    2. Virtual Currency: Players often use a virtual currency which can be purchased or earned, and then used to play various games, such as slots and table games.

    3. Prize Money: The potential to win real cash is a significant draw for many gamers. Winnings are typically distributed in forms of cash prizes or gift cards.

    ## How to Play at a Sweepstakes Casino

    Getting started with a sweepstakes casino is relatively simple. Follow these steps to dive into the action:

    1. Choose a Reputable Casino: Always select a well-known and licensed sweepstakes casino. Checking reviews and ratings can help ensure you choose a trustworthy provider.

    2. Register an Account: Create an account by completing the registration form. This often includes basic personal information and an email address.

    3. Claim Free Entries: Once registered, many platforms offer free entries to get you started. Take advantage of all available promotions!

    4. Purchase Virtual Currency: If you wish to enhance your gaming experience, consider purchasing virtual currency for additional entries into the sweepstakes.

    5. Play Games: Explore the various games available. Whether you prefer slots, card games, or other types, find what you enjoy the most.

    ## Advantages of Sweepstakes Casinos

    Sweepstakes casinos provide [url=https://carseatscenter.com/]new sweeps casinos[/url] several advantages over traditional online gambling platforms:

    1. Legality: In many jurisdictions, sweepstakes casinos remain a legal avenue for gaming, allowing players to enjoy without violating any gambling laws.

    2. No Risk of Loss: With free entry options, players can take part in games without risking their money.

    3. Potential for Big Wins: The chance to win cash or prizes means that even players who invest little can still walk away with something substantial.

    ## Conclusion

    Sweepstakes casinos combine the thrill of gaming with the chance for real-life rewards. By understanding how these platforms work and following the tips provided, players can maximize their enjoyment and opportunity to win. Whether you’re a seasoned player or new to gaming, sweepstakes casinos offer a captivating way to engage with online entertainment.

  15. JetBlack dice:

    Heya! I’m att wwork browsing your blog from myy new
    iphone! Just wanted to say I lokve reading
    your blog and ook forward to all your posts! Keep up the
    outstanding work!

    Look into my webpage;JetBlack

  16. 按摩教學 dice:

    https://digi642sa.netlify.app/research/digi642sa-(106)
    There are many dressing choices available for every price range.

  17. ProPicks AI dice:

    I really like your blog.. very nice colors & theme. Did
    you make this website yourself or did you hire someone to
    do it for you? Plz reply as I’m looking to construct my own blog and would like to find out where u got this from.
    thank you

  18. Hello, i believe that i saw you visited my blog thus i got here to go back the want?.I’m attempting to to find issues to enhance my site!I guess
    its good enough to make use of some of your ideas!!

  19. mawar toto dice:

    You’re so cool! I do not suppose I’ve truly read something like this before.
    So wonderful to discover another person with genuine thoughts on this topic.
    Really.. thank you for starting this up. This website is
    one thing that is required on the web, someone with a little originality!

  20. It’s actually a nice and useful piece of information. I’m
    happy that you just shared this helpful info with us.
    Please keep us up to date like this. Thank you for sharing.

Responder a matcha swap Cancelar respuesta