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,380

  1. Hi there, I discovered your website by the use of Google even as searching for a comparable matter, your website came up, it looks good.
    I’ve bookmarked it in my google bookmarks.
    Hello there, just became aware of your blog via Google, and found that it’s really informative.
    I’m going to be careful for brussels. I’ll appreciate if you continue this in future.
    Lots of other people will be benefited from your writing.

    Cheers!

  2. We are a gaggle of volunteers and starting
    a brand new scheme in our community. Your site offered us with valuable
    information to work on. You have done a formidable
    activity and our whole neighborhood might
    be thankful to you.

  3. It’s going to be end of mine day, but before finish I am reading this impressive
    paragraph to improve my knowledge.

  4. Everything is very open with a precise description of the challenges.
    It was definitely informative. Your site is useful.
    Thank you for sharing!

  5. setor123 dice:

    Hello, I enjoy reading all of your post. I like to write a little comment to support you.

  6. ipototo dice:

    Hello! Quick question that’s entirely off topic.
    Do you know how to make your site mobile friendly? My web site looks weird when viewing from my iphone 4.
    I’m trying to find a template or plugin that might be able to correct this issue.
    If you have any recommendations, please share. Many thanks!

  7. toto macau dice:

    Very quickly this site will be famous amid all blogging and site-building visitors, due to it’s
    pleasant articles

  8. Do you have a spam problem on this site; I also
    am a blogger, and I was curious about your situation; many of us have created
    some nice procedures and we are looking to swap strategies with
    others, why not shoot me an e-mail if interested.

  9. I am really inspired together with your writing talents as neatly
    as with the structure for your weblog. Is this a paid topic or did
    you customize it your self? Either way keep up the excellent quality writing,
    it’s uncommon to see a great weblog like this one today..

  10. top up ff dice:

    Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the
    shell to her ear and screamed. There was a hermit crab inside and
    it pinched her ear. She never wants to go back!
    LoL I know this is completely off topic but I had to tell
    someone!

  11. WISHWIN dice:

    I’ve been browsing on-line more than 3 hours today, but I never found any fascinating article like yours. It is beautiful price enough for me. In my opinion, if all website owners and bloggers made just right content as you did, the net might be much more helpful than ever before.

  12. Thɑnks for one’ѕ marvelous posting! Ι quite enjoyed reading it, you’re ɑ ɡreat author.Ӏ ѡill
    ɑlways bookmark youг blog ɑnd definiteⅼy
    wіll come Ьack sometimе soⲟn. I wаnt
    to encourage yoᥙ continue youг gгeat writing, haѵe
    a nice holiday weekend!

    Aⅼso visit my web blog – Jackpot bet online

  13. read here dice:

    Hi, i think that i saw you visited my site so i came to “return the favor”.I am trying to find things to enhance my website!I
    suppose its ok to use some of your ideas!!

  14. Proposez une soirée où chaque invité apporte son livre d’horreur préféré
    et en lit un extrait à voix haute.

  15. superslot777 dice:

    It’s amazing to visit this web page and reading the views of all mates about this paragraph, while I am also keen of getting know-how.

  16. Hello, Neat post. There’s an issue with your
    website in web explorer, might test this? IE still is the market leader and a
    big section of other folks will leave out your excellent writing due to this problem.

  17. saben gouernarse de manera que apenas ellas mesmas entienden lo que hazen.ラブドール 無 修正Veis aqui ahora el exempl que por tener esta se?ora tantas letras,

  18. Hi, always i used to check weblog posts here in the early hours in the break of day, as i enjoy to learn more and more.

  19. pets dice:

    It’s an awesome piece of writing in support of all the internet users; they will obtain benefit from it I am sure.

  20. binance code dice:

    Your article helped me a lot, is there any more related content? Thanks!

  21. Fredrick dice:

    This article gives clear idea in support of the new people of blogging, that truly
    how to do running a blog.

  22. Curious about don laughlin casino?

    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.

  23. Vovan Casino — пространство, где азарт встречает реальными эмоциями.
    Игроки здесь наслаждаются широким выбором развлечений, включая
    классические слоты, карточные игры и живые казино.
    Не упусти шанс — зарегистрироваться Vovan casino
    — и игра начнёт приносить
    тебе больше, чем просто адреналин.

    Дизайн платформы прост, но продуман до
    мелочей, что позволяет полностью погрузиться в
    игровой процесс. Техническая часть
    работает без сбоев, а бонусная система порадует щедростью.

    Щедрые приветственные подарки — отличное
    начало

    Постоянные турниры с настоящими призами

    Клиентский сервис на уровне лучших европейских площадок

    Это именно то казино, куда возвращаются снова и снова https://privetka.ru/

  24. Can I simply say what a comfort to uncover somebody who actually
    knows what they are talking about on the net. You definitely understand how to bring a problem to
    light and make it important. More people have to check this
    out and understand this side of the story. I was surprised that you are
    not more popular given that you certainly possess the gift.

  25. Magnificent site. Lots of useful info here.
    I am sending it to a few buddies ans additionally sharing in delicious.

    And of course, thank you for your sweat!

Responder a Agrandarlo Cancelar respuesta