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: 120,688

  1. I’m not sure exactly why but this website is loading very slow for me.
    Is anyone else having this issue or is it a issue on my end?
    I’ll check back later and see if the problem still exists.

  2. An interesting discussion is definitely worth comment. I believe that you should publish more about this topic, it might not be a taboo matter but typically folks don’t speak about such topics. To the next! Many thanks!!

  3. Diplomi_ovSn dice:

    купить диплом медсестры [url=frei-diplom13.ru]купить диплом медсестры[/url] .

  4. OMT’ѕ standalone е-learning alternatives empower independent expedition, nurturing ɑn individual love for mathematics ɑnd exam passion.

    Transform math obstacles іnto triumphs with OMT Math Tuition’ѕ mix οf
    online and on-site alternatives, backed Ƅy a performance history
    օf trainee excellence.

    Consіdered that mathematics plays a pivotal function іn Singapore’s economic advancement ɑnd progress, buying specialized
    math tuition gears սp students with the analytical abilities needed to thrive in ɑ competitive landscape.

    Tuition programs foг primary school math concentrate ᧐n mistake analysis from
    ⲣast PSLE papers, teaching students to аvoid recurring mistakes in estimations.

    Personalized math tuition іn senior һigh school addresses specific learning voids іn topics liкe calculus and stats, preventing tһem fгom hindering Ⲟ Level success.

    Junior college math tuition promotes collective understanding іn ѕmall grouрѕ, boosting peer discussions on facility
    A Level ideas.

    OMT’ѕ proprietary math program matches MOE criteria ƅy highlighting
    theoretical mastery ߋver memorizing learning, causing
    deeper ⅼong-lasting retention.

    Visual һelp like representations assist picture ρroblems lor, enhancing understanding ɑnd test efficiency.

    Singapore’s emphasis on alternative education іs matched Ƅy math tuition thаt builds abstract tһought for long-lasting
    examination advantages.

    Check ⲟut mʏ page A levels math tuition

  5. child? ?cries Thwackum pretty eagerly.“Why,人形 エロ

  6. binance code dice:

    Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

  7. 1win_lnpi dice:

    1win casino mexico [url=https://1win3002.mobi]https://1win3002.mobi[/url]

  8. пылесос дайсон беспроводной в москве [url=https://pylesos-dsn-1.ru/]пылесос дайсон беспроводной в москве[/url] .

  9. emastoto dice:

    Simply wish to say your article is as surprising.
    The clarity in your post is simply spectacular and i can assume you are an expert on this subject.
    Fine with your permission allow me to grab your feed to keep updated with forthcoming
    post. Thanks a million and please continue the enjoyable work.

  10. Great delivery. Outstanding arguments. Keep
    up the great work.

  11. An interesting discussion is definitely worth comment.
    I do believe that you need to publish more on this subject matter, it might not be a taboo subject but generally
    people don’t speak about these subjects. To the next!

    Best wishes!!

  12. 1win_pjpi dice:

    1win партнер [url=www.1win3002.mobi]www.1win3002.mobi[/url]

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

  14. дайсон пылесос беспроводной цены [url=https://dn-pylesos-kupit.ru/]дайсон пылесос беспроводной цены[/url] .

  15. fun88 dice:

    A fascinating discussion is definitely worth comment. I do think that you need to publish more on this subject, it might not be a taboo matter but generally people do not speak about such issues. To the next! Many thanks!!

  16. 1win_napi dice:

    1win com [url=www.1win3002.mobi]1win com[/url]

  17. пылесос дайсон оригинал купить [url=https://pylesos-dsn-1.ru/]pylesos-dsn-1.ru[/url] .

  18. Really no matter if someone doesn’t know afterward its up to other
    people that they will help, so here it occurs.

  19. Savaspin dice:

    Savaspin Casino, Savaspin offre un’ampia di giochi per gli utenti.

    Dalle slot machine entusiasmanti ai giochi da tavolo, c’è qualcosa per
    ogni gusto. Il casino è facile da usare e offre bonus favorevoli per recenti
    iscritti.

  20. tab dice:

    A motivating discussion is worth comment. There’s no doubt that that you should write more about this topic, it may not be a taboo subject but generally folks don’t talk about such subjects. To the next! All the best!!

  21. I enjoy, lead to I found exactly what I used to be taking a
    look for. You have ended my four day lengthy hunt!

    God Bless you man. Have a nice day. Bye

  22. 云搜客 dice:

    After reading your perspective, I find myself reevaluating some long-held assumptions. The historical context you provided was especially enlightening and helped me understand the roots of current developments. 云搜客 references the official specifications.

  23. An interesting discussion is worth comment. I believe that you ought to write more on this topic, it may not be a taboo subject but typically people don’t talk about these topics. To the next! All the best!!

  24. I really like looking through an article that will make people think.
    Also, many thanks for allowing me to comment!

  25. духи Spirit of Kings Arrakis, https://spiritofkingsarrakis.ru/ — это уникальное сочетание ароматов, которое переносит
    вас в мир загадочных песков и древних тайн.

  26. Please let me know if you’re looking for a author for
    your site. You have some really great posts and I
    believe I would be a good asset. If you ever want to take some of the load off,
    I’d absolutely love to write some material for your blog in exchange
    for a link back to mine. Please shoot me an e-mail if interested.
    Regards!

  27. stout man witha grey beard,等身 大 ラブドールin a short full-skirted coat.

Responder a Cazrqhv Cancelar respuesta