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: 18,324

  1. cpfzmk dice:

    Remember the Golden Rule: As hard as it can be some times, you can obtain a lot more done in a calm friendly manner then you ever will accomplish by pounding your fist around the counter. The local temperature with the medicine producing country is one and also the other country may be another, and also the avian temperature will be the other. It is extremely important that the web doctor exactly understands what are the problem is and accordingly increases the medicine.
    Buy cholesterol medication online

  2. I love it when individuals get together and share thoughts.
    Great site, continue the good work!

  3. Hello There. I found your blog the usage of msn. This is an extremely neatly written article.
    I will make sure to bookmark it and return to learn extra of your
    helpful info. Thank you for the post. I will definitely comeback.

  4. ekroqw dice:

    To obtain the most out from the card, apply it every visit and keep track of coupon restrictions and expiration dates. These will be the pharmacist who works as being a professor or lecture in any medical college; they spend around 50 per cent of the time within the other areas of pharmacy. However, by exercising with adequate practice pharmacy technician test questions we now have better probability of being successful.
    Online pharmacy coupons

  5. Hello, this weekend is pleasant in favor of me, for the reason that this point in time i am reading this fantastic informative article here at my
    residence.

  6. kcdrua dice:

    To maximum benefit out of the card, use it every visit and keep track of coupon restrictions and expiration dates. You might also check out “Physician Assistant Is a Top Healthcare Career. If possible try to use exactly the same pharmacy around possible.
    Metformin prescription refill online

  7. Saved as a favorite, I love your blog!

  8. I am not sure where you’re getting your information, but good topic.
    I needs to spend some time learning more or understanding more.

    Thanks for fantastic info I was looking for this information for my mission.

  9. que Dieu soitglorifié par toutes les créatures,que Son règne arrive parmi elles,ラブドール

  10. by88 dice:

    I always spent my half an hour to read this web site’s content every day along with a cup of coffee.

  11. WilliamKic dice:

    Call a home repairman – how much does it cost on [url=https://krasnodar.rukizolotye.ru/]мастер на час Краснодар[/url]

  12. lchjvu dice:

    The certification does play a huge role in making a rewarding career like a PT because it helps to make one more qualified after they apply for promotion. These will be the pharmacist who works as being a professor or lecture in almost any medical college; they spend around 50 per cent of the time inside other areas of pharmacy. However, by exercising with adequate practice pharmacy technician test questions we have better likelihood of being successful.
    Online pharmacy

  13. ラブドール sexand he is makinganother will to-day.Put in a good word for said Leslie with a smile.

  14. m88 dice:

    Thanks to my father who informed me regarding this web site,
    this web site is genuinely amazing.

  15. qxkzuyb dice:

    Remember the Golden Rule: As hard as it can be some times, you can obtain a lot more done in a very calm friendly manner then you ever will accomplish by pounding your fist around the counter. When all factors are considered, however, I would ought to say the prices charged at CVS Pharmacy and Rite Aid Pharmacy can be comparable. In order to register with all the GPh – C, pharmacy technicians must obtain either a 3 Level 3 qualifications.
    Secure online pharmacy

  16. I am really glad to read this web site posts which includes
    plenty of useful data, thanks for providing these statistics.

  17. I know this web site gives quality depending articles or reviews and extra data, is there any
    other site which provides such things in quality?

  18. I am genuinely thankful to the holder of this website who has shared this fantastic post at at this place.

  19. sanal pos avukat

    I read this piece of writing completely on the topic of
    the difference of newest and previous technologies, it’s
    remarkable article.

  20. transfer money online check writer

    Please let me know if you’re looking for a article author for your weblog.
    You have some really good articles and I believe I would be
    a good asset. If you ever want to take some of the
    load off, I’d really like to write some content for your blog in exchange for a link back to mine.

    Please send me an email if interested. Cheers!

Responder a syatwv Cancelar respuesta