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: 15,075

  1. What’s up, every time i used to check webpage posts here in the early hours in the
    daylight, because i enjoy to learn more and more.

  2. Such a beneficial bit of content.

  3. This information is invaluable. Where can I find
    out more?

  4. web site dice:

    Awesome website you have here but I was wondering
    if you knew of any discussion boards that cover the same
    topics talked about in this article? I’d really love to be a part of group where I can get advice from other experienced people that share
    the same interest. If you have any recommendations,
    please let me know. Kudos!

  5. Daniel Jones dice:

    More blogs like this would make the internet better.

  6. situs toto dice:

    I don’t even know how I ended up here, but I thought this post
    was good. I don’t know who you are but certainly you are going to a famous blogger
    if you aren’t already 😉 Cheers!

  7. I really admired the manner this was laid out.

  8. qhdigj dice:

    By giving your pharmacy the precise name of your medication you’ll be able to better safe guard your health. Before taking any exams necessary for their state, they need to pass the Foreign Pharmacy Graduate Equivalency examination (FPGEE), Test of English being a Foreign Language (TOEFL) and Test of Spoken English (TSE) exams. An individual that finds work in this profession can be a radiology technician if his competency qualifies him to complete work using x-ray, ultra-sound, CAT or ECG equipment that provides the doctors with scanned images that the latter use as bases for his or her diagnoses.
    https://wibride.com/your-couple-name-2089

  9. Good day! I could have sworn I’ve been to this blog before but after reading through some of the
    post I realized it’s new to me. Anyhow, I’m definitely delighted I found it
    and I’ll be bookmarking and checking back often!

  10. Your style is so unique in comparison to other people I
    have read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this site.

  11. This is the kind of information I value most.

  12. Ian Davies dice:

    I found new insight from this.

  13. rwacecj dice:

    Remember the Golden Rule: As hard as it can be some times, you can have a lot more done in the calm friendly manner then you certainly ever will accomplish by pounding your fist around the counter. The local temperature with the medicine producing country is one along with the other country might be another, as well as the avian temperature may be the other. Most drugs need being stored at exact temperatures, so one of the things pharmacists learn within pharmaceutical quality training could be the necessary steps to hold the facilities clean and in compliance with regulations.
    https://www.trustcirclenetworks.org/issues/2129

  14. aofvvye dice:

    Most patients were paying a nice income for their insurance and were often upset when their prescriptions required a $50 co-pay, or they had not met their $4,000 deductable and must pay the entire cost out-of-pocket. As a tiny entrepreneur, when is it time to raise prices like Netflix. According towards the Bureau of Labor Statistics (BLS), pharmacists execute a lot greater than provide prescriptions to patients.
    https://masters.adminskiracing.com/node/413111

  15. baby batter dice:

    This website was… how do I say it? Relevant!! Finally I have found something that helped me.

    Thank you!

  16. Every weekend i used to go to see this site, for the
    reason that i want enjoyment, since this this website conations actually pleasant funny stuff too.

  17. I don’t even understand how I finished up here, however I assumed this
    publish was great. I don’t realize who you are however definitely you’re going to a famous blogger should you aren’t already.
    Cheers!

  18. A fascinating discussion is definitely worth comment.
    I do believe that you ought to write more about this topic, it may not be a
    taboo subject but generally people don’t discuss such subjects.

    To the next! Many thanks!!

  19. iaztxcey dice:

    The moon sheds her subtle affect on all of the, adding to the variables. College pre-pharmacy study as little as a day or two and will still pass the exam. There is basically no difference between ordering drugs from a drugstore inside the United States than by way of a Canada pharmacy except for that price.
    https://cloudcon.ru/valtrex-procure-online

  20. pharmacy uk dice:

    Hello there! 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 tips?

  21. Thanks in support of sharing such a pleasant thought, piece of writing is
    nice, thats why i have read it entirely

  22. keo nha cai dice:

    Remarkable! Its genuinely awesome post, I have got much
    clear idea about from this paragraph.

  23. What’s Happening i’m new to this, I stumbled upon this
    I’ve found It positively useful and it has helped me out
    loads. I’m hoping to contribute & help different customers like its aided me.
    Good job.

Responder a cleaning trash can service Cancelar respuesta