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: 16,092

  1. コスプレ セックスfounded in the year ofthe flood.Huguenot churchyard near there.

  2. Hey there, You have done an excellent job. I’ll certainly digg it and personally suggest to my friends.
    I’m sure they will be benefited from this site.

  3. What’s up, constantly i used to check webpage posts here in the early hours in the daylight, because i like to find out
    more and more.

  4. Cinrvam dice:

    The remotest AI-powered Интернет3 knowledge podium you need to turn terabytes of unstructured facts into actional insights.

    Irk 150 USDT bonus on all users who abuse Desktop Model 2 weeks!

    DEMO APPROPRIATE FOR WINDOWS

    MARK DOWN 50%
    GO FOR THINGS BEING WHAT THEY ARE!

    [url=https://application.bonus-kaitoyaps.com/]Kaito Yapping платформа[/url]
    [url=https://application.bonus-kaitoyaps.com/]AI-powered crypto insights[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito token airdrop[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito Yapping platform[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito Yapping платформа[/url]

    Kaito ai concoct

    application.bonus-kaitoyaps.com

  5. I am extremely inspired along with your writing skills and also with the structure to your weblog.
    Is that this a paid subject or did you customize it your self?
    Anyway keep up the excellent high quality writing, it’s rare to peer a great weblog like this one
    today..

  6. “The pleasure of conversing Monsieur recalls to me,下着 エロ? pursued the spy,

  7. TimothyFaw dice:

    In this portal, most of the tourist facilities on Lake Garda have been included [url=https://rt.sexruletka18.com/]https://rt.sexruletka18.com/[/url]

  8. –with the exception of thatreference to George Washington,which was altogether too extravagant andimpossible to be regarded in any other light than as a monstrous joke.コスプレ エッチ

  9. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.
    I think that you could do with some pics to drive the message home a little bit, but instead of that,
    this is excellent blog. A fantastic read. I will certainly be back.

  10. Cinrvam dice:

    The underlying AI-powered Интернет3 information platform you be in want of to balk terabytes of unstructured dirt into actional insights.

    Attire 150 USDT extra on all users who use Desktop Manifestation 2 weeks!

    DEMO APPROPRIATE FOR WINDOWS

    MARK DOWN 50%
    PURCHASE FOR THE NONCE!

    [url=https://application.bonus-kaitoyaps.com/]Kaito social mining[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito token airdrop[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito Yapping platform[/url]
    [url=https://application.bonus-kaitoyaps.com/]Decentralized attention economy[/url]
    [url=https://application.bonus-kaitoyaps.com/]Kaito Yapping platform[/url]

    Kaito ai assignment

    application.bonus-kaitoyaps.com

  11. noytiijq dice:

    1 teaspoon grated fresh ginger, or 1-2 lumps of preserved ginger, chopped. Ask the managers of the places in which you enjoy shopping if they have these types of programs, in the event you aren’t already frequenting CVS and Winn-Dixie. After you filled out the account, you may now select a payment scheme.

  12. This is a topic that is near to my heart… Thank you!
    Exactly where are your contact details though?

  13. bbeocxl dice:

    By giving your pharmacy the exact name of one’s medication it is possible to better safe guard your health. Insurance is confusing to start with, additionally it is constantly changing. The massive rise in people using the web for many of the shopping and everyday needs has generated many pharmacies having an internet site built, where they feature numerous services which can help you avoid making unnecessary trips to your local pharmacy.

  14. If some one wishes to be updated with most recent technologies after that he
    must be pay a quick visit this web site and be up to date
    daily.

  15. Anónimo dice:

    Regularnie gram w kasynach online i testuję nowe
    platformy i muszę powiedzieć, że ybjlfc.com naprawdę wyróżnia się na
    tle innych. Na początek trzeba pochwalić prostotę obsługi i szybki proces tworzenia konta – wszystko przebiega sprawnie, bez zbędnych formalności.

    Najbardziej spodobał mi się fakt, że można dostać bonus bez depozytu – można zagrać za darmo i przekonać się,
    jak działa platforma. Dodatkowo oferta powitalna i dostępność kodów promocyjnych sprawiają, że na starcie można zdobyć naprawdę sporo
    dodatkowych środków. Cenię sobie też to, że Spinmama pl jest w pełni przetłumaczona na język polski,
    a kasyno oferuje warunki przyjazne dla użytkowników z Polski – dzięki temu gra się przyjemnie i bez stresu.

    Pomoc techniczna działa dobrze i reaguje na pytania, a wszystko
    działa płynnie na PC i mobile. Według mnie warto
    się zainteresować tym kasynem, jeśli szukacie miejsca, które łączy dobrą zabawę
    z bezpieczeństwem. Polecam każdemu, kto szuka czegoś nowego.

  16. Thanks for ones marvelous posting! I certainly enjoyed reading it, you could be a great author.
    I will be sure to bookmark your blog and will come
    back in the future. I want to encourage you to continue your great posts,
    have a nice weekend!

  17. I’m not that much of a online reader to be
    honest but your sites really nice, keep it up! I’ll go ahead and bookmark
    your site to come back in the future. Many thanks

  18. Hello There. I found your blog the usage of msn. This is a really smartly written article.
    I will make sure to bookmark it and come back to learn more of your useful info.

    Thank you for the post. I will certainly return.

  19. Art of Travel, una de las principales agencia de viajes en India, se especializa en crear
    experiencias de viaje personalizadas. Con un profundo conocimiento de diversos destinos,
    ofrecen paquetes turísticos personalizados, que incluyen viajes de lujo,
    de aventura, culturales y patrimoniales. Desde arreglos de viaje perfectos hasta itinerarios únicos, Art of Travel garantiza un viaje memorable para cada
    cliente. Su equipo de expertos brinda un servicio de primer nivel, lo que los convierte en la opción preferida para los
    viajeros que buscan una experiencia de viaje excepcional y personalizada
    en toda la India y más allá.

  20. rwekssvc dice:

    An online pharmacy is quite a help in an embarrassing scenario like this. The holding, the transfers, the modern rules and also the mail-order requirements. The massive surge in people using the web for many with their shopping and day by day needs has generated many pharmacies having an internet site built, where they offer numerous services which may help you avoid making unnecessary trips to any local pharmacy.
    #micronase

  21. bkunuz dice:

    While there is a small chance you can get laid off (for instance, if the chain supermarket closes some stores) you should not have much problem finding another job. Factors staying taught in educational facilities regularly variations, this is a fact. Make sure that you take the time to ask about a cheaper version so they really will check the list.

  22. エロ い 下着Gelid light and air were in thekitchen but out of doors gentle summer morning everywhere.Made himfeel a bit peckish.

  23. “It brought me here,it brought me to my grave.こすぷれ えろ

  24. fitjaro dice:

    I’m not sure where you’re getting your info, but good topic.
    I needs to spend some time learning more or understanding more.
    Thanks for fantastic information I was looking
    for this information for my mission.

  25. hnwzcp dice:

    The moon sheds her subtle affect on all of the, adding for the variables. The above image shows that a secure protocol ( is being used by the fraudster. If possible try to use the same pharmacy around possible.

  26. หวย dice:

    I am really impressed with your writing abilities
    and also with the format to your blog. Is this
    a paid subject matter or did you modify it your self?

    Anyway stay up the excellent high quality writing, it’s uncommon to look a
    nice blog like this one these days..

  27. I’d like to find out more? I’d love to find out
    more details.

  28. ynidbco dice:

    By giving your pharmacy the complete name of the medication you are able to better safe guard your health. Insurance is confusing to start with, plus it is constantly changing. Strong customer service skills certainly are a must when handling the hectic pace of an pharmacy or pharmaceutical department.

  29. Hi there, I check your new stuff like every week. Your story-telling style is awesome, keep up the
    good work!

  30. eqpcnirb dice:

    We were going on the big city to see a doctor, therefore it made sense. ” A good reply to this just isn’t “I’m looking for a job. Most drugs need to become stored at exact temperatures, so one from the things pharmacists learn as part of pharmaceutical quality training may be the necessary steps to hold the facilities clean and in compliance with regulations.

  31. AntonioStare dice:

    Ролик создан, грузит без проблем https://rutube.ru/video/220f5082b659620c25a8577d96926b4d/?r=wd

  32. keo nha cai dice:

    Nice blog here! Also your web site loads up very fast! What host are
    you using? Can I get your affiliate link to your host? I wish my web site loaded up
    as quickly as yours lol

  33. ShaneLab dice:

    Spend a few days on the Vaud Riviera and benefit [url=]https://shop.zdravnitza.com[/url]

  34. lsswxs dice:

    Location and the kind of employer are the final factors in determining how much pharmacists make. The pharmacist technician have to have the prepared prescription, reviewed by a pharmacist, before dispensing or submitting the completed order to your patient or customer. You should find this info somewhere inside “Contact Us” section in the website.

  35. olxtoto dice:

    Hey would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 completely different web browsers and I must say this blog loads a lot faster then most.
    Can you suggest a good internet hosting provider at a fair price?
    Thank you, I appreciate it!

  36. Ces ressources sont essentielles pour accomplir des quêtes importantes, telles que celles menant à l’obtention du Dofus Pourpre.

  37. hmizfslj dice:

    Pharmacy technicians also tend not to provide advice to patients about medication options, negative effects, or any other drug information. In Oklahoma, pharmacists are required to obtain a valid photo identification before dispensing any controlled, dangerous substance. After you filled out the account, you are going to now pick a payment scheme.

  38. Stefan Pilz dice:

    Hmm it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still new to the whole thing.
    Do you have any tips for inexperienced blog writers? I’d definitely appreciate
    it.

  39. bokep dice:

    It’s going to be finish of mine day, except before finish I am reading
    this impressive paragraph to improve my know-how.

  40. bandar toto dice:

    Very quickly this web site will be famous among all blogging people,
    due to it’s pleasant articles or reviews

Responder a texas holdem poker pro hack Cancelar respuesta