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: 22,549

  1. As the admin of this web page is working, no hesitation very quickly
    it will be famous, due to its feature contents.

  2. 撥筋創業 dice:

    https://je-tall-marketing-770.blr1.digitaloceanspaces.com/research/je-marketing-(170).html
    However, the only rule for sporting sequin attire is to maintain accessories and make-up
    refined.

  3. Annie dice:

    I don’t even know how I ended up here, but I thought this post was great.

    I don’t know who you are but definitely you’re going to a
    famous blogger if you are not already 😉 Cheers!

  4. resources dice:

    After checking out a number of the blog articles on your web site,
    I seriously appreciate your technique of blogging.
    I saved as a favorite it to my bookmark site list and will be checking back soon.
    Please check out my web site as well and let me know what you think.

  5. Right here is the perfect blog for anyone who would like to understand this topic.
    You know a whole lot its almost tough to argue with you (not
    that I actually will need to…HaHa). You certainly put a new spin on a topic which has been discussed for
    a long time. Excellent stuff, just great!

  6. Ramonita dice:

    When someone writes an paragraph he/she maintains the idea of a user in his/her mind that how a user can know it.
    So that’s why this post is great. Thanks!

  7. For most up-to-date news you have to visit the web and on internet
    I found this site as a finest site for most recent updates.

  8. 經絡課程 dice:

    https://digi596sa.z44.web.core.windows.net/research/digi596sa-(114).html
    For this romantic marriage ceremony at Brooklyn’s Wythe Hotel,
    the bride’s mom selected a short-sleeved, full-length teal
    gown.

  9. Heya just wanted to give you a quick heads up and let you know a few of the images aren’t loading properly.
    I’m not sure why but I think its a linking issue.
    I’ve tried it in two different internet browsers and both show
    the same results.

  10. keonhacai dice:

    We stumbled over here different web page and thought I might check things out.
    I like what I see so i am just following you. Look forward to
    exploring your web page yet again.

  11. seobests.com dice:

    Hey there! I know this is kinda off topic but I was wondering
    which blog platform are you using for this website? I’m getting sick and
    tired of WordPress because I’ve had problems with hackers and I’m looking at options for another platform.

    I would be awesome if you could point me in the direction of a good platform.

  12. If you wish for to improve your familiarity only keep visiting this
    web site and be updated with the latest news update posted
    here.

  13. m89 dice:

    What a data of un-ambiguity and preserveness of
    valuable know-how regarding unexpected emotions.

  14. agenpadel dice:

    Thanks for sharing your thoughts about agenpadel. Regards

  15. Admiring the hard work you put into your site and in depth information you provide.
    It’s awesome to come across a blog every once in a while that isn’t the same
    old rehashed material. Fantastic read! I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  16. Your style is very unique in comparison to other people I’ve
    read stuff from. Many thanks for posting when you’ve got the opportunity, Guess
    I’ll just book mark this site.

  17. футбол ставки [url=http://prognozy-na-futbol-2.ru/]футбол ставки[/url] .

  18. Thanks for some other excellent article. The place
    else may just anyone get that type of info in such a perfect manner
    of writing? I have a presentation next week,
    and I’m on the look for such information.

  19. Ich bin begeistert von der Büroreinigung durch dieses Team

  20. Hey! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate!
    He always kept chatting about this. I will forward this article to him.

    Fairly certain he will have a good read. Many thanks for sharing!

  21. Everything is very open with a clear clarification of the issues.
    It was really informative. Your website is very useful.
    Thank you for sharing!

  22. Добро пожаловать в Клубника Казино – место, где
    азарт и возможности для выигрыша сливаются в одну захватывающую игру.
    В Клубника Казино собрано множество развлечений:
    слоты, рулетки, покер и уникальные игры с живыми дилерами.
    Наша приоритетная цель – обеспечение безопасности и честности игр, чтобы каждый игрок мог
    наслаждаться игрой без лишних забот.

    Почему стоит выбрать онлайн казино Клубника депозит для игры в интернете?

    Мы предлагаем выгодные бонусы для новых игроков, фриспины и регулярные акции, которые помогут вам увеличить шансы на победу.
    Кроме того, мы обеспечиваем быстрые выплаты и круглосуточную техническую поддержку,
    чтобы ваше время в казино было комфортным.

    Когда лучше всего начинать играть в
    Клубника Казино? Не упустите шанс начать с бонусами и бесплатными спинами, которые помогут вам ускоренно погрузиться
    в мир выигрышей. Вот что ждет вас в
    Клубника Казино:

    Выгодные бонусы и бесплатные спины для новичков.

    Будьте в центре событий, участвуйте в турнирах
    и акциях с крупными денежными призами и
    выигрышами.
    Каждый месяц Клубника Казино пополняет свою коллекцию новыми играми, чтобы вы всегда могли найти что-то
    новое и интересное.

    Клубника Казино – это место, где ваша удача будет на
    вашей стороне.

  23. Lsp-Ipi.Org dice:

    You stated that really well!

  24. ロボット エロI shall change their lives andthose ages.Two minutes and a quarter from now Nikolaus will wake out ofhis sleep and find the rain blowing in.

  25. Thanks , I’ve just been looking for info approximately this subject for a long time and yours is the greatest I’ve found out so far.
    However, what in regards to the conclusion? Are you positive in regards to
    the supply?

  26. Very nice post. I just stumbled upon your blog and wished to say that I
    have truly enjoyed surfing around your blog posts.
    After all I will be subscribing to your rss feed and I hope you write
    again soon!

  27. Every weekend i used to visit this web site,
    because i want enjoyment, since this this web site conations
    actually good funny data too.

  28. Please let me know if you’re looking for a article author
    for your weblog. You have some really great
    posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love
    to write some articles for your blog in exchange for a link back
    to mine. Please blast me an email if interested.
    Many thanks!

  29. Hi tһere i am kavin, itѕ my first occasion to commenting anyplace, whеn i read tһis paragraph і tһought і
    cߋuld аlso creɑtе comment due to this sеnsible paragraph.

    Ꭺlso visit mу site Jackpot bet online

Responder a reliable black car service Cancelar respuesta