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: 119,501

  1. toto togel dice:

    Thank you a bunch for sharing this with all folks you
    actually recognise what you’re talking approximately! Bookmarked.

    Please additionally seek advice from my site =).
    We could have a link trade arrangement among us

  2. Diplomi_pgor dice:

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

  3. as the dawn was coming,ラブドールsaid tohim: “Young I am not warning you to keep my secret,

  4. Danielsnoni dice:

    п»їTo be honest, I found an interesting guide concerning Indian Pharmacy exports. It details how to save money for ED medication. If anyone wants factory prices, take a look: п»їhttps://kisawyer.us.com/# india pharmacy. Hope it helps.

  5. RichardHex dice:

    Quick question about ordering meds from Mexico. I found a cool blog that lists trusted vendors: п»ї[url=https://polkcity.us.com/#]polkcity.us.com[/url]. Check it out.

  6. For most recent information you have to go to see web and on the web I found this web
    site as a most excellent website for hottest updates.

  7. Hello, I log on to your new stuff like every week. Your writing style is awesome, keep doing what you’re doing!

  8. えろ 人形manipulative,or dismissive of your goals and aspirations,

  9. Danielsnoni dice:

    п»їJust now, I came across a great resource about generic pills from India. It covers CDSCO regulations for ED medication. For those interested in cheaper alternatives, take a look: п»їindian pharmacies safe. Worth a read.

  10. mostbet_nbMa dice:

    мостбет скачать приложение [url=https://www.mostbet2031.help]https://www.mostbet2031.help[/url]

  11. mostbet_dlKl dice:

    скачать бесплатно мостбет [url=www.mostbet2030.help]www.mostbet2030.help[/url]

  12. Richarddiept dice:

    Chicken Cross is a simple and straightforward game developed by UpGaming, with payouts up to x1000 chicken road aplikacja

  13. リアル ラブドールbut I want to tell it,because I hate to havepeople say and think such things about us and Laurie.

  14. 初音 ミク ラブドールPhoebus,and other Gods:so much did men attribute to Phantasmes,

  15. Danielsnoni dice:

    п»їRecently, I came across an informative report regarding buying affordable antibiotics. It covers WHO-GMP protocols for generic meds. If you are looking for Trusted Indian sources, go here: п»їhttps://kisawyer.us.com/# indian pharmacy. Good info.

  16. mostbet_rmMa dice:

    mostbet игры [url=www.mostbet2031.help]mostbet игры[/url]

  17. Ralphkic dice:

    п»їActually, I found a great report concerning buying affordable antibiotics. The site discusses WHO-GMP protocols for ED medication. If you are looking for cheaper alternatives, take a look: п»ї[url=https://kisawyer.us.com/#]here[/url]. Might be useful.

  18. Cazrogg dice:

    Мы изготавливаем дипломы любой профессии по выгодным тарифам. Важно, чтобы документы были доступными для большинства граждан. Быстро и просто приобрести диплом об образовании [url=http://cardinalparkmld.listbb.ru/viewtopic.php?f=3&t=3262/]cardinalparkmld.listbb.ru/viewtopic.php?f=3&t=3262[/url]

  19. casino mx dice:

    Hi, I read your blog regularly. Your writing style is awesome, keep it up!

  20. I was skeptical, but after since launch of learning crypto basics, the great support convinced me.

  21. Danielsnoni dice:

    п»їTo be honest, I came across an interesting article about Indian Pharmacy exports. It covers how to save money when buying antibiotics. If you are looking for Trusted Indian sources, take a look: п»їtop online pharmacy india. Good info.

  22. are called by the generallname of Madnesse.But of the severall kinds of Madnesse,オナドール

  23. I personally find that the exploring governance process is simple and the seamless withdrawals makes it even better. My withdrawals were always smooth.

  24. mostbet_vlKl dice:

    мостбет кыргызстан скачать [url=http://mostbet2030.help]http://mostbet2030.help[/url]

  25. hgo909 login dice:

    Tremendous issues here. I am very satisfied to look your article.
    Thank you so much and I’m taking a look forward to contact you.
    Will you please drop me a mail?

  26. Cazrkun dice:

    Мы готовы предложить дипломы любой профессии по приятным ценам. Цена будет зависеть от выбранной специальности, года выпуска и университета: [url=http://diigo.com/item/note/8p2f0/jr2d?k=2d8cfd2cdd0762c0867e6544edad6071/]diigo.com/item/note/8p2f0/jr2d?k=2d8cfd2cdd0762c0867e6544edad6071[/url]

  27. 顔メイク オーダーメイドできます。要求はコメント欄に入力してください。セックス ロボットもっと質問があれば、カスタマーサービスに連絡してください。

  28. only to find out after all that the steadfast sister could notbe moved,セックス ドールand that she would not propitiate the horse’s spirit,

  29. Download U.S Bank routing number database in CSV format, more than 19.800 records. you can use it for everything, website etc. https://routingnumber.info/product/u-s-bank-routing-number-database/ and we also have All Bank SWIFT CODES Database, more than 16K Records!

  30. The effluvium of it destroysthem.Confined below,ラブドール

  31. pokerstars dice:

    Hi there, I check your blogs like every week. Your story-telling style is awesome, keep doing what you’re doing!

  32. mostbet_oxKl dice:

    бк теннесси скачать на андроид [url=http://mostbet2030.help/]http://mostbet2030.help/[/url]

  33. What’s up, I check your blogs daily. Your story-telling style is awesome, keep up the good work!

  34. 等身 大 ラブドール?said Sophia,“for it may come tomy father’s ears,

  35. LloydRop dice:

    Has anybody tried buying generic pills online. I discovered a verified archive that compares trusted vendors: п»їhttps://polkcity.us.com/# the purple pharmacy mexico. What do you think?.

  36. toto 4d dice:

    I’ve read some excellent stuff here. Definitely worth bookmarking for revisiting.

    I surprise how much effort you place to make this sort of magnificent informative website.

  37. 等身 大 ラブドールmy spouse,is a person of education and an officer,

  38. бренд Пани Валевская, https://walewska.ru/ предлагает эксклюзивные решения для трендовых женщин.

  39. Chapter xi.ドール エロThe narrow escape of Molly Seagrim,

  40. lucky casino dice:

    Hi, I log on to your blog daily. Your writing style is witty, keep up the good work!

  41. Ralphkic dice:

    п»їLately, I found an interesting article regarding buying affordable antibiotics. It explains CDSCO regulations when buying antibiotics. If anyone wants reliable shipping to USA, visit this link: п»їhttps://kisawyer.us.com/# reputable indian pharmacies. It helped me.

  42. кухни на заказ санкт петербург [url=https://kuhni-na-zakaz-5.ru/]кухни на заказ санкт петербург[/url] .

  43. mostbet_ziKl dice:

    скачать бк осталось именно выбрать подходящее [url=mostbet2030.help]mostbet2030.help[/url]

  44. Danielsnoni dice:

    п»їActually, I came across a useful page concerning ordering meds from India. It explains how to save money for generic meds. For those interested in Trusted Indian sources, go here: п»ї[url=https://kisawyer.us.com/#]useful link[/url]. Cheers.

  45. Your means of explaining the whole thing in this paragraph
    is in fact nice, all be capable of without difficulty know
    it, Thanks a lot.

Agrega tu comenatio