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: 17,995

  1. gctmwuo dice:

    CVS Pharmacy must depend on prescription drug sales to be in business, but Wal-Mart doesn’t must add a huge markup to the prescription drugs they sell. When all factors are believed, however, I would ought to say how the prices charged at CVS Pharmacy and Rite Aid Pharmacy are quite comparable. Make sure you take the time to ask about a more affordable version so that they will look at the list.

  2. Spam dice:

    This info is worth everyone’s attention. How can I find out more?

  3. snshnuwu dice:

    We were going to the big city to find out a doctor, so it made sense. When all factors are viewed, however, I would need to say how the prices charged at CVS Pharmacy and Rite Aid Pharmacy may be comparable. Most drugs need to become stored at exact temperatures, so one from the things pharmacists learn included in pharmaceutical quality training could be the necessary steps to keep the facilities clean and in compliance with regulations.

  4. all at once the exhausted harpooneer hears the excitingcry“Stand up,and give it to him! ?He now has to drop and secure hisoar,ラブドール おすすめ

  5. ラブドール 激安Think of Death and the Judgment then? No! no time tothink about Death then.Life was what Captain Ahab and I was thinkingof,

  6. and at length resolving to suppress every particularin which her sister was concerned,and preparing her to be surprised,ラブドール 風俗

  7. gskhytt dice:

    “(3) The Washington Post(4) commemorated the closing with a write-up that contained just a little of Schadenfreude. I must add, I have never had any kind of emotional disorder during my life and am a skeptic of anti-depressants. They are also in charge of inspecting the operational control over dispensary and manufacturing units and providing a platform to improve the pharmacists’ role to prescribe medicine independently.

  8. ダッチワイフHe played a sweet mournful airwhich I perceived drew tears from the eyes of his amiable companion,ofwhich the old man took no notice,

  9. We left Oxford with regret and proceeded to which was our nextplace of rest.ラブドール えろThe country in the neighbourhood of this villageresembled,

  10. There was no arguing upon such aproject.She owed her greatest relief to her friend Miss Lucas,エロ リアル

  11. uarsio dice:

    The moon sheds her subtle relation to all of the, adding towards the variables. College pre-pharmacy study as little as a day or two which enable it to still pass the exam. However, by exercising with adequate practice pharmacy technician test questions we have better odds of being successful.

  12. orderly ranks lke companes of solder The thstles looked lkedrunken fares or tpsy elves as ther car-lghts passed over them.Ths was the frst tme she had even been n a car.ラブドール 高級

  13. v9bet dice:

    I want to to thank you for this good read!! I definitely loved every bit of it.
    I’ve got you saved as a favorite to check out new things you post…

  14. He is seldom seen,オナホ フィギュアat least I have never seen him except in the remoter southern seas,

  15. Its like you read my mind! You seem to know so much
    about this, like you wrote the book in it or something. I think
    that you can do with a few pics to drive the message home a bit,
    but instead of that, this is magnificent blog. A great read.

    I will certainly be back.

  16. and could observe the three ladies before hercomposedly.エロ リアルLady Catherine was a tall,

  17. Josephshalo dice:

    Сайт о ремонте https://mia.km.ua и строительстве — полезные советы, инструкции, идеи, выбор материалов, технологии и дизайн интерьеров.

  18. RobertTic dice:

    Сайт о ремонте https://rusproekt.org и строительстве: пошаговые инструкции, советы экспертов, обзор инструментов, интерьерные решения.

  19. Hello Dear, are you actually visiting this website regularly, if so after that you will without doubt get pleasant experience.

  20. for we have just spent ours at the shop out there.ラブドール 風俗?Then showingher purchases,

  21. RobertBoows dice:

    Всё для ремонта https://zip.org.ua и строительства — в одном месте! Сайт с понятными инструкциями, подборками товаров, лайфхаками и планировками.

  22. Stephendop dice:

    Автомобильный портал https://just-forum.com всё об авто: новости, тест-драйвы, обзоры, советы по ремонту, покупка и продажа машин, сравнение моделей.

  23. ラブドール 高級?Valancy was not askng quarter or gvng “But can tell youwhere you,ll fnd a beauty parlor n Port Lawrence where they canreduce the number of your chns.

  24. JeremyBarry dice:

    Полезный сайт для ремонта https://rvps.kiev.ua и строительства: от черновых работ до отделки и декора. Всё о планировке, инженерных системах, выборе подрядчика и обустройстве жилья.

  25. Ralphrok dice:

    Sewage pumping stations (SPS) are engineering hydraulic structures designed [url=https://kns-kupit.ru/]https://kns-kupit.ru/[/url]

  26. When I initially left a comment I seem to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I receive 4 emails with the exact same comment.
    Is there a way you are able to remove me from that service?
    Many thanks!

  27. ラブドール えろandson,gave a peculiar interest to every part of the city which theymight be supposed to have inhabited.

  28. It’s awesome to pay a quick visit this web site and
    reading the views of all friends about this paragraph, while I am also
    eager of getting experience.

  29. At this time I am going to do my breakfast, afterward having my breakfast coming yet again to read other news.

  30. he crie hewould be a democrat to all above,look,オナホ フィギュア

  31. Six weeks ago he hadremembered the address; he had two articles that could be pawned: hisfather’s old silver watch and a little gold ring with three red stones,ラブドールa present from his sister at parting.

  32. penis dice:

    Hello very cool blog!! Man .. Beautiful .. Amazing .. I’ll
    bookmark your site and take the feeds additionally? I am glad to
    find so many helpful info here in the put up, we need work
    out extra strategies in this regard, thanks for sharing.
    . . . . .

  33. and down betweenthis was the sea.ラブドール おすすめSteelkilt calculated his time,

  34. Everything is very open with a really clear explanation of the challenges.
    It was truly informative. Your website is very helpful.
    Many thanks for sharing!

  35. ?And however the generalexperiences in the fishery may amend such reports as these,オナホ フィギュアyet intheir full terriblenes even to the bloodthirsty item of Povelson,

  36. ダッチワイフthey subdued and tranquillised it.In some degree,

  37. Hi there! This is kind of off topic but I need some help from an established blog.
    Is it very hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about setting up my own but I’m not sure where to start.
    Do you have any tips or suggestions? Many thanks

  38. ラブドールbut I wasavoiding him.He knew I had him at a disadvantage if I could keep himaway.

  39. ダッチワイフand I again went out in search of berries.I was still cold when under one of the trees I found a huge cloak,

  40. Fine way of explaining, and good piece of writing to obtain information concerning my presentation subject, which i am going to convey in institution of higher education.

Responder a m88 Cancelar respuesta