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: 93,116

  1. WalterGef dice:

    нажмите, чтобы подробнее [url=https://vodkabetspin.com]водка казино[/url]

  2. ArthurFluor dice:

    кликните сюда [url=https://vodkabet-enjoyer.com/]vodka bet[/url]

  3. Stevepsymn dice:

    prescription drugs without doctor approval https://edpillsafib.xyz/# best ed pills online

  4. melbet_dgKa dice:

    промокод на melbet [url=https://melbet5004.ru/]https://melbet5004.ru/[/url]

  5. Diplomi_twKn dice:

    диплом дерматолога купить [url=r-diploma4.ru]диплом дерматолога купить[/url] .

  6. JamesOxype dice:

    Cor Pharmacy: CorPharmacy – canadian pharmacy

  7. melbet_ytMn dice:

    melbet кто владелец [url=http://melbet5009.ru]http://melbet5009.ru[/url]

  8. Nan dice:

    Unquestionably believe that which you stated. Your favorite reason seemed to
    be on the web the simplest thing to be aware of.
    I say to you, I definitely get irked while people think about worries that they
    plainly do not know about. You managed to hit
    the nail upon the top as well as defined out the whole thing without having side-effects
    , people can take a signal. Will probably be back to get more.
    Thanks

  9. электрокарниз двухрядный цена [url=www.elektrokarnizmoskva.ru]www.elektrokarnizmoskva.ru[/url] .

  10. Stevepsymn dice:

    canadian pharmacies no prescription https://corpharmacy.com/# CorPharmacy

  11. Its such as you learn my thoughts! You seem to grasp so much approximately this, like you wrote the book
    in it or something. I believe that you could do with some
    % to drive the message home a little bit, but other than that, this is magnificent blog.
    A fantastic read. I’ll definitely be back.

  12. Williamecoto dice:

    ViagraNewark [url=https://viagranewark.xyz/#]ViagraNewark[/url] sildenafil 50 mg price

  13. melbet_zvKa dice:

    melbet ckachat [url=https://melbet5004.ru]https://melbet5004.ru[/url]

  14. Danielanosy dice:

    Cor Pharmacy: CorPharmacy – safe canadian pharmacies

  15. Spravkinis dice:

    Нужна, где оформить медкнижку по Подольску срочно и легально — без лишней волокиты и задержек? В частном медцентре на сайте [url=https://med-podolsk.ru]https://med-podolsk.ru[/url] можно заказать санкнижку, справку для ГИБДД, бассейна, лагеря или разрешения на оружие в течение суток — с анализами, приёмом у врача и гарантированной легальностью. Минимальные сроки, лёгкая регистрация почти круглосуточно, честная стоимость — от 500 ? за справки, санкнижка с 1200 ?. https://med-podolsk.ru Подробнее на сайте — медкнижка срочно, справка за день, онлайн заказ.

  16. Hey outstanding blog! Does running a blog similar to this take a lot of work?
    I’ve no knowledge of coding however I was hoping to start my own blog
    in the near future. Anyhow, should you have any suggestions or techniques for new blog owners
    please share. I understand this is off subject nevertheless I just needed
    to ask. Kudos!

  17. melbet_nmKa dice:

    скачать мелбет официальный сайт [url=https://melbet5004.ru/]https://melbet5004.ru/[/url]

  18. I am genuinely grateful to the owner of this web site who has shared this enormous piece of writing at at this time.

  19. If you desire to take much from this post then you have to apply such techniques
    to your won weblog.

  20. I appreciate how you make complex topics accessible without oversimplifying them. Great!

  21. лечение зависимостей [url=narkologicheskaya-klinika-39.ru]лечение зависимостей[/url] .

  22. This text is worth everyone’s attention. When can I find out more?

  23. gqi73v.com dice:

    Super helpful and straight to the point. https://3nz9f.icu/

  24. melbet_uoMn dice:

    зеркало melbet [url=http://melbet5009.ru]http://melbet5009.ru[/url]

  25. softpineoutlet – The pages loaded fast, no annoying wait times — really good user experience.

  26. JamesOxype dice:

    п»їed pills online: EdPillsAfib – erectile dysfunction online prescription

  27. Stevepsymn dice:

    cheap canadian cialis http://viagranewark.com/# ViagraNewark

  28. карниз для штор с электроприводом [url=https://elektrokarnizmoskva.ru/]карниз для штор с электроприводом[/url] .

  29. khanbet dice:

    In 2010, the Florida House of Representatives voted by 74 votes to 39 in favor of passing a new bill that would significantly expand the sphere of khanbet in state,
    later couple days as soon as he became approved by the Florida Senate by 29 votes to.

  30. клиника наркологическая [url=http://www.narkologicheskaya-klinika-36.ru]клиника наркологическая[/url] .

  31. автоматические карнизы для штор [url=https://www.elektrokarnizmoskva.ru]автоматические карнизы для штор[/url] .

  32. melbet_ceKa dice:

    официальный сайт melbet [url=http://melbet5004.ru]официальный сайт melbet[/url]

  33. This post was really insightful and full of great advice—thank you for sharing!

  34. melbet_ylKa dice:

    melbet скачать ios [url=melbet5004.ru]melbet5004.ru[/url]

  35. You should take part in a contest for one of the finest websites on the internet.
    I will highly recommend this site!

  36. slot88 resmi dice:

    I believe that is among the so much significant information for
    me. And i am happy studying your article. But want to observation on some normal things, The site style is great, the articles is
    in reality nice : D. Just right task, cheers

  37. melbet_jlMn dice:

    melbet казино [url=www.melbet5009.ru]www.melbet5009.ru[/url]

  38. Sana Kuser dice:

    silveroakstudio – The visuals and layout work nicely together, making browsing feel polished today.

  39. Diplomi_lpPl dice:

    купить диплом в москве о высшем образовании [url=https://www.r-diploma3.ru]купить диплом в москве о высшем образовании[/url] .

  40. JamesOxype dice:

    CorPharmacy: CorPharmacy – top mail order pharmacies

  41. зашиваться от алкоголя [url=http://www.narkologicheskaya-klinika-34.ru]http://www.narkologicheskaya-klinika-34.ru[/url] .

Responder a 低端影视献祭 Cancelar respuesta