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: 17,326

  1. nzaqnxps dice:

    There are two ways for being a pharmacist technician, getting certified or registered because of your state. The above image shows that a secure protocol ( has used with the fraudster. They may also check with doctors to authorize refills, and enter drug information in the computer.

  2. wetgaytube dice:

    My brother suggested I might like this web site. He was totally right.
    This post truly made my day. You can not imagine simply how
    much time I had spent for this info! Thanks!

  3. bsgcomdk dice:

    Also, look for your bargain table at the front of the store full of items as much as 50 percent off the regular price. Important point to be noticed is that cost can’t continually be the first consideration. This is a common occurrence as January 1 kicks off a whole new year of pharmacy benefits and beneficiaries are locked in (with minor exceptions needless to say called qualifying life events or QLEs) prior to the next open enrollment season in November.

  4. Hi there, I enjoy reading through your post. I wanted
    to write a little comment to support you.

  5. soc88 dice:

    Terrific article! This is the type of information that
    should be shared around the net. Shame on the
    seek engines for not positioning this put up higher!
    Come on over and talk over with my web site .
    Thanks =)

  6. TESLATOTO dice:

    My partner and I stumbled over here from a different page and thought I might as well check things out.
    I like what I see so now i am following you. Look forward to
    looking into your web page yet again.

  7. If some one desires to be updated with most up-to-date technologies then he must be pay a quick visit this web page and be up to date
    all the time.

  8. Tremendous issues here. I am very satisfied to look
    your article. Thank you a lot and I am taking a look
    forward to touch you. Will you please drop me a e-mail?

  9. I’ve been surfing online more than three hours today, yet
    I never found any interesting article like yours. It is pretty worth enough for
    me. In my opinion, if all website owners and
    bloggers made good content as you did, the web will be much more useful than ever before.

  10. pol88 dice:

    Howdy! This post couldn’t be written any better! Going
    through this article reminds me of my previous roommate!
    He continually kept talking about this. I will send this information to him.
    Fairly certain he’s going to have a good read. I appreciate
    you for sharing!

  11. kontol dice:

    tante sange video bokep kontol pencabulan

  12. Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.

  13. Hey! This is my first comment here so I just wanted to give a
    quick shout out and say I really enjoy reading your blog posts.

    Can you suggest any other blogs/websites/forums that go over the same topics?

    Thank you so much!

  14. keo nha cai dice:

    Greetings! Very helpful advice in this particular article!
    It’s the little changes that will make the most important changes.
    Thanks a lot for sharing!

  15. Élan Syvor dice:

    I have been browsing online more than 4 hours today, yet I never found any interesting article like
    yours. It’s pretty worth enough for me. In my opinion, if all web owners and bloggers
    made good content as you did, the net will be a lot more useful than ever before.

  16. gurxvk dice:

    The moon sheds her subtle impact on all of this, adding for the variables. The above image shows a secure protocol ( has been used through the fraudster. However, by exercising with adequate practice pharmacy technician test questions we’ve got better chances of being successful.

  17. My brother suggested I might like this website.
    He was totally right. This post truly made my day.
    You cann’t imagine just how much time I had spent for this info!
    Thanks!

  18. semxjz dice:

    We were going to the big city to find out a doctor, so that it made sense. Drugs could be ordered by just entering the pharmacy website and placing an order having a click in the mouse button. Most drugs need to be stored at exact temperatures, so one with the things pharmacists learn as part of pharmaceutical quality training may be the necessary steps to help keep the facilities clean and in compliance with regulations.

  19. toto togel dice:

    Yes! Finally someone writes about situs toto.

  20. slot dax69 dice:

    Thanks a bunch for sharing this with all people you really know what
    you are talking approximately! Bookmarked.
    Please also consult with my web site =). We may have a hyperlink trade
    contract between us

  21. voz 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 definitely you’re going to a famous blogger if you aren’t already ;
    ) Cheers!

  22. I savor, cause I discovered just what I used to be
    taking a look for. You have ended my 4 day long
    hunt! God Bless you man. Have a great day.

    Bye

  23. jbuwxksy dice:

    In order to be entitled to federal loans a Free Application for Federal Student Aid (FAFSA) has to be completed and aid is granted in relation to student need, tuition rates on the college, as well as other factors. I must add, I have never had any type of emotional disorder inside my life and am a skeptic of anti-depressants. Cocci are sphere-shaped bacteria and will include streptococci, that happen to be chains of cocci bacteria, and staphylococci, which can be clusters of cocci bacteria1.

Responder a gk88 Cancelar respuesta