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: 19,619

  1. частный дом под ключ цена [url=https://www.stroitelstvo-doma-1.ru]https://www.stroitelstvo-doma-1.ru[/url] .

  2. Hello i am kavin, its my first occasion to commenting anywhere, when i read this paragraph i thought i could also create comment due to this
    sensible post.

  3. Ahaa, its nice dialogue concerning this post at this
    place at this weblog, I have read all that, so now
    me also commenting at this place.

  4. частные дома под ключ сколько стоят [url=http://stroitelstvo-doma-1.ru]http://stroitelstvo-doma-1.ru[/url] .

  5. стройка дома под ключ [url=stroitelstvo-doma-1.ru]stroitelstvo-doma-1.ru[/url] .

  6. Agrandarlo dice:

    I would like to thank you for the efforts you’ve put in penning this website.
    I’m hoping to see the same high-grade content from you later on as well.
    In truth, your creative writing abilities has motivated me to get my very own blog now ;
    )

  7. Christa dice:

    If you are going for finest contents like myself,
    simply pay a quick visit this web page daily for the reason that it offers quality contents, thanks

  8. oibllrue dice:

    CVS Pharmacy must rely on prescription drug sales to stay in business, but Wal-Mart doesn’t must add an enormous markup to the prescription drugs they sell. Drugs may be ordered by just entering the pharmacy website and placing an order with a click of the mouse button. It is extremely important that the internet doctor exactly understands exactly what the problem is and accordingly provides the medicine.
    Online pharmacy for hormone therapy

  9. Cabinet IQ
    15030 N Tatum Blvd #150, Phoenix,
    AZ 85032, United Տtates
    (480) 424-4866
    Designworkshop

  10. First off I would like to say excellent blog! I had a quick question that I’d like to ask if you don’t mind.
    I was curious to find out how you center yourself and clear your thoughts before writing.
    I have had a tough time clearing my thoughts in getting my
    ideas out there. I do take pleasure in writing however
    it just seems like the first 10 to 15 minutes are generally wasted just trying to figure out how to
    begin. Any recommendations or hints? Cheers!

  11. m88 dice:

    Hi 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 browsers and both show the same results.

  12. pzp online dice:

    Howdy, i read your blog occasionally and i own a similar one and
    i was just curious if you get a lot of spam comments?
    If so how do you prevent it, any plugin or anything you can advise?

    I get so much lately it’s driving me mad so any support is
    very much appreciated.

  13. develops the feelings and capacities which have the good ofothers for their object.But to be restrained in things not affectingtheir good,フィギア エロ

  14. Электромобили Evolute https://poverka-msk.ru современные технологии, надёжность и доступность. Выберите и купите свой Эволют с гарантией, рассрочкой и сервисным обслуживанием.

  15. Управляющая организация https://uk-tehneks.ru комплексное обслуживание многоквартирных домов: благоустройство, ремонт, клининг, работа с жителями.

  16. regdoma-163 dice:

    Оформление недвижимости https://regdoma.ru под ключ с юристами в Москве. Купля-продажа, дарение, наследство, регистрация права собственности. Работаем с жилыми и коммерческими объектами. Гарантия законности.

  17. ohoksba dice:

    If you’re disabled according to federal government standards, and receive government disability payments, then you generally might have your student loans discharged. Screaming, yelling, demanding things, or just being rude won’t help the situation. According for the Bureau of Labor Statistics (BLS), pharmacists perform a lot over provide prescription medications to patients.
    Simvastatin online drugstore

Responder a oknaotzavoda-887 Cancelar respuesta