saa Infraestructura como código – Politraining

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: 136,438

  1. дайсон пылесос купить спб [url=https://dn-pylesos-4.ru/]dn-pylesos-4.ru[/url] .

  2. пылесосы дайсон [url=https://dn-pylesos-kupit-4.ru/]dn-pylesos-kupit-4.ru[/url] .

  3. gbgbet dice:

    each time i used to read smaller articles that also clear their motive, and that is also happening with this paragraph which I am reading now.

  4. Louiscaf dice:

    Xin chào 500 anh em, người anh em nào cần nhà cái uy tín để gỡ gạc Game bài thì tham khảo con hàng này. Uy tín luôn: Link tải Sunwin. Chiến thắng nhé.

  5. dyson спб [url=https://pylesos-dn-6.ru/]pylesos-dn-6.ru[/url] .

  6. дайсон сервисный центр санкт петербург [url=https://pylesos-dn-10.ru/]дайсон сервисный центр санкт петербург[/url] .

  7. gbgbet dice:

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

  8. https://classic-blog.udn.com/8f0d0e53/185092153
    The costume has flattering loose chiffon sleeves, a relaxed tie waist, and complicated beading work.

  9. Thanks for another magnificent post. Where else could anyone get that kind of info
    in such a perfect means of writing? I have a presentation subsequent week, and I
    am at the look for such info.

    Feel free to surf to my website: BUY XANAX WITHOUT PRESCRITION

  10. https://clcqlue.wixsite.com/my-site-1/post/____3
    Always costume for consolation and to please what the bride has in mind.

  11. дайсон официальный сайт [url=https://dn-pylesos-2.ru/]dn-pylesos-2.ru[/url] .

  12. dyson спб [url=https://pylesos-dn-7.ru/]pylesos-dn-7.ru[/url] .

  13. gbgbet dice:

    Peculiar article, just what I wanted to find.

  14. пылесос dyson [url=https://dn-pylesos-3.ru/]пылесос dyson[/url] .

  15. AnthonyZex dice:

    Chào anh em, ai đang tìm trang chơi xanh chín để cày cuốc Đá Gà thì tham khảo trang này nhé. Tốc độ bàn thờ: https://gramodayalawcollege.org.in/#. Chiến thắng nhé.

  16. https://timothyirise.jimdofree.com/2026/01/22/5/
    Dresses are made in beautiful colors corresponding to gold, purple,
    and blue and mother of the bride dresses.

  17. https://classic-blog.udn.com/5c997c33/184847561
    A structured costume will all the time be flattering, especially one that nips you at the waist like this chic
    frock from Amsale.

  18. riobet online casino, сайт riobet предлагает разнообразные игры, включая картинки и настольные развлечения.

  19. this is an interesting article, i enjoy reading it, keep up the good work, do you post often, i want to start following you. my site is https://webdesignfreelancermunchen.de/ it is the top webdesign freelancer platform in Germany.

  20. nika ai dice:

    I visited many web sites but the audio feature for audio songs current at
    this website is actually fabulous.

  21. Joshuatop dice:

    Hi cac bac, ngu?i anh em nao c?n ch? n?p rut nhanh d? cay cu?c N? Hu thi tham kh?o ch? nay. Dang co khuy?n mai: BJ88. Hup l?c d?y nha.

  22. gbgbet dice:

    Whats up very nice web site!! Guy .. Excellent .. Superb .. I will bookmark your site and take the feeds additionally? I am glad to search out so many useful information here within the submit, we need work out more techniques in this regard, thanks for sharing. . . . . .

  23. web page dice:

    I am now not certain the place you are getting
    your information, but great topic. I must spend some time finding out
    much more or understanding more. Thank you for great info I was looking for this information for my mission.

  24. gbgbet dice:

    I love it when folks come together and share opinions. Great blog, stick with it!

  25. https://ggvsxfjlg61.free-blogz.com/86593731
    From impartial off-white numbers to bold, punchy, and fashion-forward designs, there’s something here that
    will swimsuit her fancy.

  26. gbgbet dice:

    Awesome blog! Do you have any recommendations for aspiring writers? I’m planning to start my own blog soon but I’m a little lost on everything. Would you suggest starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally overwhelmed .. Any recommendations? Bless you!

  27. gbgbet dice:

    I was pretty pleased to discover this great site. I wanted to thank you for ones time just for this fantastic read!! I definitely enjoyed every part of it and I have you saved to fav to look at new things on your blog.

  28. gbgbet dice:

    Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! However, how can we communicate?

  29. gbgbet dice:

    Hi! I know this is kinda off topic however , I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My site discusses a lot of the same topics as yours and I feel we could greatly benefit from each other. If you’re interested feel free to send me an email. I look forward to hearing from you! Awesome blog by the way!

  30. https://randolphpjane.jimdofree.com/2026/01/15/4/
    But it’s important to examine in with the bride before you make any decisions.

  31. 推拿師 dice:

    https://triciaxxs.collectblogs.com/84159062/3
    From the floor-sweeping A-line skirt to the on-trend off-the-shoulder sleeves, there’s lots to like.

  32. https://classic-blog.udn.com/3cf293b8/185673954
    This mom’s robe featured a striped off-the-shoulder neckline that
    was a wonderful complement to the bride’s own wedding dress.

Responder a BobbyCem Cancelar respuesta