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: 76,052

  1. it upsetseverything.フィギュア 無 修正But before I mention this advantage to I want tocompromise myself personally,

  2. tungma168 dice:

    Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Many thanks

  3. Curtissweta dice:

    online medical store india: safe Indian generics for US patients – india pharmacy

  4. они отличаются, http://sheonshopping.ru однако, и как правило
    даже выдача товаров онлайн разная.
    Сомневаться крайне полезно!

  5. Larrypit dice:

    Dr India Meds [url=https://drindiameds.com/#]doctor recommended Indian pharmacy[/url] indian pharmacy

  6. slot 88 dice:

    For the reason that the admin of this site is working, no
    uncertainty very shortly it will be famous, due to its feature contents.

  7. Wonderful blog! Do you have any tips for aspiring writers?

    I’m planning to start my own blog soon but I’m a little
    lost on everything. Would you recommend starting with a free
    platform like WordPress or go for a paid option? There are so many options out there that
    I’m totally overwhelmed .. Any recommendations? Thank you!

  8. что такое мостбет [url=http://mostbet12039.ru]что такое мостбет[/url]

  9. RobertHauck dice:

    trusted Canadian generics: canadian pharmacy – safe Canadian pharmacies for Americans

  10. homepage dice:

    Thanks very interesting blog!

    Visit my site – homepage

  11. Naomie Mayer dice:

    I loved as much as you will receive carried out right here The sketch is tasteful your authored subject matter stylish nonetheless you command get got an edginess over that you wish be delivering the following unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike

  12. “Then I dare you to do it,” said Josie defiantly.エロオナホ

  13. mostbet kg [url=https://www.mostbet12039.ru]https://www.mostbet12039.ru[/url]

  14. When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get four emails with the same comment.

    Is there any way you can remove me from that service? Many thanks!

  15. Curtissweta dice:

    DrMedsAdvisor: verified Mexican pharmacies USA delivery – trusted Mexican drugstores online

  16. Excellent post. I was checking continuously this blog and I’m impressed!
    Very helpful info specially the last part 🙂 I care for such information much.
    I was seeking this certain info for a long time.
    Thank you and best of luck.

  17. Репутация: читайте отзывы, http://dads-avtoshop.ru
    дабы удостовериться в оригинальности площадки.

  18. войти в мостбет [url=mostbet12039.ru]mostbet12039.ru[/url]

  19. реабилитация зависимых от алкоголя
    reabilitaciya-astana010.ru
    лечение больных наркоманией

  20. Where did I get them? And where did my newclothes come from? You know I had not a copeck.You,ラブドール 激安

  21. сколько стоит перепланировка квартиры в москве [url=www.skolko-stoit-uzakonit-pereplanirovku-1.ru/]сколько стоит перепланировка квартиры в москве[/url] .

  22. Diplomi_efOa dice:

    диплом в калуге купить [url=https://www.r-diploma2.ru]https://www.r-diploma2.ru[/url] .

  23. This іs a topic that is neaг to mү heart… Thank
    you! Exаctly ᴡherе are youг contact details
    though?

  24. these points give the right to achieve bonuses, like free chips, monetary bonuses, participation at ignition casino log in online and drawing of winnings.
    this means that your data will be encrypted and unreadable by
    anyone except the casino.

  25. pomoravac dice:

    It’s enormous that you are getting thoughts from this paragraph as well as from our discussion made here.

  26. Website dice:

    bookmarked!!, I really like your blog!

  27. skailendcom dice:

    Magnificent website. Lots of useful info here. I’m sending it to some buddies ans also sharing in delicious.
    And of course, thank you to your sweat!

  28. Curtissweta dice:

    no prescription pharmacy India: Dr India Meds – india pharmacy

  29. mostbet kg [url=http://mostbet12039.ru]http://mostbet12039.ru[/url]

  30. Jerryevile dice:

    no prescription pharmacy India [url=http://drindiameds.com/#]safe Indian generics for US patients[/url] affordable Indian medications online

  31. RobertHauck dice:

    Dr Meds Advisor: verified Mexican pharmacies USA delivery – generic medicine from Mexico

  32. CharlesWAR dice:

    Нынешний игровой рынок всё чаще адаптирует смарт-контракты для повышения надёжности игрового процесса.
    Особенно интересно, как проект [url=https://dsp03.ru/]обзор покердом[/url] реализует подобные решения, обеспечивая честные условия для игроков.
    Блокчейн реально улучшает подход к азартным играм.

  33. homepage dice:

    WOW just what I was looking for. Came here by searching for

  34. Larrypit dice:

    Dr India Meds [url=https://drindiameds.com/#]trusted medical sources from India[/url] affordable Indian medications online

  35. kra2kn.ccFab dice:

    Регулярное обновление зеркал — признак стабильности.
    https://telegra.ph/Registraciya-akkaunta-na-platforme-KRAKEN-poshagovo-11-09

  36. homepage dice:

    Hi! I understand this is sort of off-topic however
    I needed to ask. Does operating a well-established website like yours take a massive amount work?
    I am completely new to writing a blog but I do write in my diary everyday.

    I’d like to start a blog so I will be able to share my personal
    experience and thoughts online. Please let me know if
    you have any kind of ideas or tips for brand new aspiring blog owners.
    Appreciate it!

  37. I was wondering if you ever considered changing the layout
    of your website? Its very well written; I love what youve got to
    say. But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 images.
    Maybe you could space it out better?

  38. Hey There. I discovered your blog the usage of
    msn. That is a very well written article. I will make sure to bookmark it and come
    back to read more of your helpful info. Thanks for the post.
    I’ll definitely comeback.

  39. Diplomi_gmPr dice:

    диплом корочки купить [url=https://r-diploma13.ru/]диплом корочки купить[/url] .

  40. Larrypit dice:

    safe Canadian pharmacies for Americans [url=https://doctornorthrx.xyz/#]trusted Canadian generics[/url] verified Canada drugstores

  41. Larrypit dice:

    DrMedsAdvisor [url=https://drmedsadvisor.com/#]mexican pharmacy[/url] mexican pharmacy

  42. вывод из запоя цена
    vivod-iz-zapoya-minsk013.ru
    вывод из запоя цена

  43. masturbate dice:

    Howdy I am so grateful I found your web site, I really found you by error,
    while I was looking on Askjeeve for something else, Regardless I am here
    now and would just like to say thanks for
    a marvelous post and a all round exciting blog (I also
    love the theme/design), I don’t have time to go through it all at the minute but I have book-marked it and also included your RSS feeds, so when I have time I will
    be back to read more, Please do keep up the excellent work.

  44. mostbet kg [url=http://mostbet12039.ru/]mostbet kg[/url]

  45. セックス ドールIt seems that theirmajesties,though outwardly conforming to many European customs,

Responder a demo slot zeus Cancelar respuesta