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: 70,111

  1. and all our affections are but conceptions,when weconceive the same things differently,えろ 人形

  2. agenolx dice:

    Hi there every one, here every one is sharing such experience, thus it’s pleasant
    to read this weblog, and I used to pay a quick visit this blog everyday.

  3. xbet [url=https://1xbet-giris-6.com/]xbet[/url] .

  4. Edmundrhify dice:

    discount pharmacies in Ireland

  5. えろ こすぷれand help him in team work.Endurance: A manly moderation which keeps a boy fit and strong and in good condition.

  6. HaroldPsype dice:

    pharmacy delivery Ireland: best Irish pharmacy websites – irishpharmafinder

  7. JohnnyHaf dice:

    cheapest pharmacies in the USA: trusted online pharmacy USA – trusted online pharmacy USA

  8. Edmundrhify dice:

    online pharmacy

  9. топ диджитал агентств россии [url=http://www.luchshie-digital-agencstva.ru]топ диджитал агентств россии[/url] .

  10. HaroldPsype dice:

    pharmacy discount codes AU: Australian pharmacy reviews – compare pharmacy websites

  11. 1 x bet giri? [url=https://1xbet-giris-6.com/]https://1xbet-giris-6.com/[/url] .

  12. Unquestionably believe that which you stated. Your favorite reason appeared to be on the net the simplest thing to be aware of.
    I say to you, I certainly get irked while people consider worries that
    they plainly don’t know about. You managed to hit the
    nail upon the top as well as defined out the whole thing without having side
    effect , people could take a signal. Will probably be back to
    get more. Thanks

  13. Hi there, I do believe your website may be having
    web browser compatibility issues. When I take a look at your
    website in Safari, it looks fine but when opening in Internet
    Explorer, it’s got some overlapping issues. I simply wanted to provide
    you with a quick heads up! Other than that, excellent website!

  14. えろ 人形and alonein the dark,are subject to the like fancies,

  15. agen slot dice:

    Hi, i think that i saw you visited my blog thus i came to “return the favor”.I am attempting
    to find things to improve my site!I suppose its ok to
    use a few of your ideas!!

  16. Edmundrhify dice:

    Irish online pharmacy reviews

  17. JohnnyHaf dice:

    cheapest pharmacies in the USA: trusted online pharmacy USA – Safe Meds Guide

  18. Edmundrhify dice:

    online pharmacy ireland

  19. JohnnyHaf dice:

    promo codes for online drugstores: trusted online pharmacy USA – promo codes for online drugstores

  20. рейтинг агентств интернет маркетинга [url=https://luchshie-digital-agencstva.ru/]https://luchshie-digital-agencstva.ru/[/url] .

  21. Pagca araw na mabuting panahn at umaacyat ang mga bata sa caitaasanng campanario ng simbahan,エロ 着物na napapamutihan ng lumot at ng damnghatid ng hangin; pagcacagayo’y masayang nangagsisigawan,

  22. Hermanvow dice:

    discount pharmacies in Ireland [url=http://irishpharmafinder.com/#]online pharmacy ireland[/url] Irish online pharmacy reviews

  23. 1xbet lite [url=www.1xbet-giris-6.com/]www.1xbet-giris-6.com/[/url] .

  24. Hermanvow dice:

    discount pharmacies in Ireland [url=https://irishpharmafinder.shop/#]Irish Pharma Finder[/url] pharmacy delivery Ireland

  25. Julie previously wrote for the beach reporter that https://web-camsoda.com/camsoda-sexcam-experience-real-time-adult-fun-online/, a woman|lady|girl|member of the
    fair sex with orange glasses, is harming us.

  26. HaroldPsype dice:

    cheap medicines online UK: Uk Meds Guide – legitimate pharmacy sites UK

  27. Have you ever thought about including a little bit more than just your articles?

    I mean, what you say is valuable and all. But think of if you added some great graphics
    or video clips to give your posts more, “pop”!
    Your content is excellent but with pics and videos, this blog could undeniably be one of the best
    in its niche. Superb blog!

  28. JohnnyHaf dice:

    online pharmacy ireland: online pharmacy ireland – top-rated pharmacies in Ireland

  29. HaroldVap dice:

    https://aussiemedshubau.com/# cheap medicines online Australia

  30. We are a group of volunteers and opening a new scheme in our community.
    Your web site offered us with valuable information to work
    on. You have done a formidable job and our entire community will be grateful to you.

  31. 1xbet com giri? [url=www.1xbet-giris-4.com/]www.1xbet-giris-4.com/[/url] .

  32. Terrific work! This is the type of information that should be shared across the net.

    Shame on Google for now not positioning this publish higher!
    Come on over and consult with my web site .
    Thanks =)

  33. JohnnyHaf dice:

    pharmacy online: Aussie Meds Hub – Aussie Meds Hub

  34. I’m extremely impressed with your writing skills as well as with the layout on your blog.
    Is this a paid theme or did you modify it yourself?
    Either way keep up the nice quality writing, it is rare to see a nice blog like this one these days.

  35. JohnnyHaf dice:

    affordable medications UK: safe place to order meds UK – cheap medicines online UK

  36. Edmundrhify dice:

    online pharmacy

  37. интернет агентства [url=http://www.luchshie-digital-agencstva.ru]интернет агентства[/url] .

  38. I just couldn’t leave your website before suggesting that
    I actually enjoyed the usual information an individual supply for your visitors?
    Is going to be again continuously to check up on new posts

  39. 1xbet ?ye ol [url=https://1xbet-giris-6.com/]https://1xbet-giris-6.com/[/url] .

  40. Edmundrhify dice:

    discount pharmacies in Ireland

  41. Hello there, just became alert to your blog through Google, and
    found that it is truly informative. I’m going to watch out for brussels.
    I will appreciate if you continue this in future. Many people will be benefited from your writing.
    Cheers!

  42. HaroldVap dice:

    https://safemedsguide.shop/# buy medications online safely

  43. click now dice:

    Every weekend i used to visit this website, as
    i wish for enjoyment, for the reason that this this website conations
    really good funny material too.

  44. I was wondering if you ever considered changing the page
    layout of your site? 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 two pictures. Maybe you could space it out better?

  45. 1xbet guncel [url=1xbet-giris-4.com]1xbet-giris-4.com[/url] .

  46. HaroldPsype dice:

    verified online chemists in Australia: Aussie Meds Hub Australia – compare pharmacy websites

Responder a Hermanvow Cancelar respuesta