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: 115,556

  1. Diplomi_ovKa dice:

    настенькины комиксы на пути к диплому купить [url=r-diploma23.ru]настенькины комиксы на пути к диплому купить[/url] .

  2. Ralphkic dice:

    п»їRecently, I found a helpful article about Indian Pharmacy exports. The site discusses WHO-GMP protocols for generic meds. If anyone wants cheaper alternatives, take a look: п»ї[url=https://kisawyer.us.com/#]indianpharmacy com[/url]. Hope it helps.

  3. ラブドール 女性 用without thinking that my cries for help would only be louderand longer,but in the end they got used even to this nightlydisturbance.

  4. keluaran hk dice:

    Appreciation to my father who stated to me concerning this web site,
    this weblog is really remarkable.

  5. Ralphkic dice:

    п»їJust now, I stumbled upon a helpful article regarding buying affordable antibiotics. The site discusses CDSCO regulations when buying antibiotics. In case you need cheaper alternatives, read this: п»їhttps://kisawyer.us.com/# reputable indian pharmacies. Hope it helps.

  6. AnySwap dice:

    I’ve been active for since launch, mostly for portfolio tracking, and it’s always great support. Perfect for both new and experienced traders.

  7. 整復學徒 dice:

    https://fr-tour-7.fra1.digitaloceanspaces.com/research/star-(3037).html
    Our moms are gorgeous and superb and they should rock what they’ve.

  8. to whisper about the misrepresentation,せっくす どー るas an instance of the youngCount,

  9. Ralphkic dice:

    п»їActually, I found an informative guide about generic pills from India. The site discusses WHO-GMP protocols for generic meds. In case you need Trusted Indian sources, read this: п»ї[url=https://kisawyer.us.com/#]useful link[/url]. Good info.

  10. 撥筋創業 dice:

    https://fr-well-2.sfo3.digitaloceanspaces.com/research/%EF%B8%8F-france-(741).html
    Here’s another top-of-the-line mother-of-the-bride attire you should purchase online.

  11. Really insightful post — Your article is very clearly written, i enjoyed reading it, can i ask you a question? you can also checkout this newbies in seo

  12. ラブドール リアルFor a moment she hadthought that if everybody tried to force her into housekeeping on herbrief holiday by their own indifference (Lady Caroline),or inabilityto speak Italian (the other two),

  13. LloydRop dice:

    п»їActually, I came across a useful report about generic pills availability. It details how to save money for generic meds. If you are looking for cheaper alternatives, read this: п»їhttps://polkcity.us.com/# mexico pharmacy. Worth a read.

  14. リアル えろRose knew herplace.She could see as well as any one the unusual,

  15. RichardHex dice:

    Just wanted to share, an official overview on FDA equivalent standards. It explains the best shipping methods for antibiotics. Full info: п»їhttps://polkcity.us.com/# reputable mexican pharmacy.

  16. Ralphkic dice:

    п»їLately, I came across a useful guide regarding ordering meds from India. It details CDSCO regulations for ED medication. In case you need reliable shipping to USA, take a look: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Good info.

  17. https://fr-friends-7.blr1.digitaloceanspaces.com/research/nothing-at-all-(3146).html
    My daughter dreams of a wedding on a beach in Bali, so where will that depart me I wonder.

  18. Incredible story there. What occurred after? Take care!

  19. Hello, I enjoy reading through your article post. I like to
    write a little comment to support you.

  20. and he condescended to borrow of him a small sum,which in all probability,ラブドール 最 高級

  21. Cazrzqr dice:

    Купить диплом университета по выгодной цене вы можете, обратившись к проверенной специализированной фирме: [url=http://market.pk/profile/roxiegillon510/]market.pk/profile/roxiegillon510[/url]

  22. Danielsnoni dice:

    п»їRecently, I discovered an interesting page regarding Indian Pharmacy exports. It explains CDSCO regulations for ED medication. If anyone wants factory prices, take a look: п»їcheck it out. It helped me.

  23. Jim insistedthat she should do so.ラブドール 販売He said that he would sooner part with her whentheir mother was not present.

  24. Danielsnoni dice:

    п»їRecently, I stumbled upon a great report concerning ordering meds from India. It details WHO-GMP protocols for ED medication. For those interested in factory prices, read this: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Cheers.

  25. ラブドール 販売it had yet stirred him by its suggestion of astrange,almost modern romance.

  26. Diplomi_xbEr dice:

    Мы готовы предложить документы учебных заведений, расположенных в любом регионе Российской Федерации.
    Приобрести диплом ВУЗа: [url=http://bostane.com/en/author/calvinlaurens9]bostane.com/en/author/calvinlaurens9[/url]

  27. RichardHex dice:

    Just wanted to share, an important article on buying meds safely. It breaks down the best shipping methods for ED meds. Link: п»їhttps://polkcity.us.com/# mexican pharmacy ship to usa.

  28. Diplomi_ljSn dice:

    купить медицинский диплом медсестры [url=http://www.frei-diplom13.ru]купить медицинский диплом медсестры[/url] .

  29. 經絡課程 dice:

    https://fr-well-7.fra1.digitaloceanspaces.com/research/%EF%B8%8F-france-(3312).html
    You should go for some brilliant colors, or if your daughter has a shade picked out for you then go along with that.

  30. sex ドールand when I remonstrated against thi her reply wa “The littlethings like it so much! ? There was no use in telling her that the fifthcomfit weighed a quarter of an ounce,and made every sale into a loss toher pocke So I remembered the green tea,

Responder a gmixqoj Cancelar respuesta