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: 27,059

  1. villa dice:

    https://stanproperty.com/bungalow/

    If you want to take a great deal from this post then you have to apply such techniques to
    your won web site.

  2. недорогой интернет воронеж
    voronezh-domashnij-internet004.ru
    подключить домашний интернет в воронеже

  3. Hi, i feel that i saw you visited my weblog so i got here to go back the favor?.I am attempting to
    to find things to improve my web site!I suppose its good
    enough to use some of your concepts!!

  4. v9bet dice:

    Incredible points. Sound arguments. Keep up the good
    effort.

  5. _–Un poco es esso de mo?a de villa; porque la dama que es lo mejor que ha de tener es seguridad y confian?a,sin llegar a presumir que nada le pueda ofender,ドール エロ

  6. ラブドール リアルansi biuo yo cuytado por amar vn nueuo amor[571]._–No oyes,

  7. 1win_vqpi dice:

    промокод 1xставка [url=http://1win1174.ru]http://1win1174.ru[/url]

  8. This is my first time visit at here and i am really impressed to read all at alone place.

  9. Howdy! Do you know if they make any plugins to safeguard against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any suggestions?

  10. I think the admin of this web page is truly working hard in favor of his web page,
    since here every information is quality based material.

  11. winbet299 dice:

    Incredible! This blog looks exactly like my old one!

    It’s on a completely different subject but it has
    pretty much the same page layout and design. Excellent choice of colors!

  12. Thanks in support of sharing such a good thought, piece of writing is fastidious, thats why i have read
    it fully

  13. Капельница от запоя – это популярный метод быстрого вывода из запойного состояния, который помогает справиться с физической зависимостью от алкоголя. Однако лечение зависимости требует внимания к различным аспектам, но и психологической поддержки. Важно понимать, что алкоголизм – это не только физический, но и эмоциональный недуг. Экстренный вывод из запоя включает в себя очистку организма от токсинов, но недостаточно просто провести капельницу для полного выздоровления. В кризисные ситуации помощь зависимым должна быть комплексной и включать различные методы. Поддержка семьи играет ключевую роль в процессе восстановления после запоя. Эмоциональная поддержка близких помогает создать привычку к трезвому образу жизни и помочь избежать повторного запойного состояния. Предотвращение возврата к алкоголизму включает в себя как медицинские, так и психологические аспекты, что делает подход к лечению многогранным и успешным.

  14. Have you ever considered about including a little bit more than just your articles?
    I mean, what you say is valuable and all. However think of
    if you added some great visuals or video clips to give your posts more,
    “pop”! Your content is excellent but with images and
    video clips, this website could certainly be one of the best in its niche.
    Amazing blog!

  15. AntwanFox dice:

    Fiber concrete panels are a new generation of decorative building materials [url=https://traktoramira.ru/bez-rubriki/steam-igry-kak-vybrat-igrat-i-naslazhdatsya-bez-stressov.html]https://traktoramira.ru/bez-rubriki/steam-igry-kak-vybrat-igrat-i-naslazhdatsya-bez-stressov.html[/url]

  16. v9bet dice:

    It’s wonderful that you are getting ideas from this paragraph as well as from our dialogue made at
    this time.

  17. Woah! I’m really enjoying the template/theme of this
    blog. It’s simple, yet effective. A lot of times it’s
    hard to get that “perfect balance” between usability and visual
    appeal. I must say you have done a fantastic
    job with this. Additionally, the blog loads very fast for me on Internet explorer.

    Outstanding Blog!

  18. Justinstync dice:

    Indian Meds One: top 10 online pharmacy in india – Indian Meds One

  19. mostbet_fvOa dice:

    скачать mostbet kg [url=https://www.mostbet11063.ru]скачать mostbet kg[/url]

  20. Muizenval dice:

    This is really interesting, You’re a very skilled blogger.
    I’ve joined your rss feed and look forward to seeking more of your magnificent
    post. Also, I’ve shared your web site in my social networks!

  21. casino dice:

    Greetings, I think your website may be having
    web browser compatibility issues. Whenever I look
    at your blog in Safari, it looks fine however when opening in IE, it’s got some overlapping issues.
    I just wanted to give you a quick heads up! Other than that,
    fantastic website!

  22. For hottest news you have to pay a visit web and on world-wide-web I found this website
    as a best web page for most up-to-date updates.

  23. These are in fact great ideas in concerning blogging.
    You have touched some nice things here. Any
    way keep up wrinting.

  24. Hi there 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.

Agrega tu comenatio