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,411

  1. data macau dice:

    Hello, I log on to your new stuff daily. Your humoristic style
    is witty, keep up the good work!

  2. Hi 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 recommendations?

  3. I am curious to find out what blog platform you are utilizing?

    I’m having some small security problems with my latest website and I’d like to find something more secure.
    Do you have any recommendations?

  4. Such a informative resource.

  5. Alan Patel dice:

    The depth in this content is commendable.

  6. This is the kind of writing I find helpful.

  7. Alan Green dice:

    Thanks for sharing. It’s top quality.

  8. I’ll certainly bookmark this page.

  9. I particularly admired the manner this was written.

  10. This is the kind of writing I truly appreciate.

  11. kqdlvrzi dice:

    The moon sheds her subtle influence on all of the, adding towards the variables. The above image shows which a secure protocol ( is being used from the fraudster. There is really no difference between ordering drugs from your drugstore inside United States than by way of a Canada pharmacy except for that price.

  12. I’ll certainly bookmark this page.

  13. xnbxlsm dice:

    It might be used by fraudsters to gain access to your accounts at a number of financial institutions. I must add, I have never had any type of emotional disorder inside my life and am a skeptic of anti-depressants. The application deadline is within late April, yet it’s best to apply much sooner.

  14. This submission is brilliant.

  15. I gained useful knowledge from this.

  16. keonhacai dice:

    Hello there! This is my first visit to your blog! We are a group of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a marvellous job!

  17. glgqzqvu dice:

    To obtain the most out of the card, apply it every visit and keep track of coupon restrictions and expiration dates. The above image shows which a secure protocol ( will be used by the fraudster. So like a buyer, you will need to identify a realistic online pharmacy which is licensed and sells only Food and Drug Administration (FDA) approved medicines.

  18. dnpaoke dice:

    To maximum benefit out in the card, put it to use every visit and keep track of coupon restrictions and expiration dates. College pre-pharmacy study as little like a day or two and can still pass the exam. However, by exercising with adequate practice pharmacy technician test questions we’ve got better probability of being successful.

  19. I particularly enjoyed the style this was written.

  20. You’re so interesting! I don’t suppose I have read anything like this before.
    So nice to find someone with a few unique thoughts on this issue.
    Seriously.. many thanks for starting this
    up. This web site is something that is needed on the internet, someone
    with a little originality!

  21. Andrew Lewis dice:

    This is the kind of content I value most.

  22. bcxboo dice:

    1 teaspoon grated fresh ginger, or 1-2 lumps of preserved ginger, chopped. Screaming, yelling, demanding things, or being rude will not help the situation. After you completed the account, you are going to now decide on a payment scheme.

  23. Anónimo dice:

    Když chcete najít bezpečné virtuální kasino s rozmanitou širokou paletou her, výhodnými promo akcemi a ochranným online platformou, mohu vřele doporučit vyzkoušet bdfort.com.

    Nabízí parádní bonusy Spinmama, jednoduché přihlášení přes spinmama casino login a navíc skvělou spinmama app, která dovoluje
    hrát kdykoliv a kdekoliv. Neustále přicházejí s promo kódy,
    které poskytují volná zatočení a další bonusy. Mně osobně se líbí, jak vše běží
    hladce a férově. Pokud hledáte bezstarostnou a zábavnou hru, Spinmama casino je ideální volba.

  24. I have read so many content regarding the blogger lovers however this article is genuinely a pleasant paragraph, keep it up.

  25. LloydRof dice:

    Комплект из двух справок, необходимых для закрытия прогулов до 30 дней [url=https://munclinic.ru]справка в бассейн[/url]

  26. I always emailed this web site post page to all my contacts, as if like to
    read it afterward my contacts will too.

  27. airmatic dice:

    If you are going for finest contents like I do, only visit this website all the
    time since it provides quality contents, thanks

  28. qcjeqka dice:

    If you are disabled according to federal government standards, and receive government disability payments, then you certainly generally will surely have your student loans discharged. In Oklahoma, pharmacists are needed to obtain a valid photo identification before dispensing any controlled, dangerous substance. The respiratory therapist’s tasks include supplying the precise measurements of oxygen or other varieties of gas concentrations within the patient’s blood and also measuring blood alkalinity or acidity levels.

  29. kra31 at dice:

    Ahaa, its good discussion about this piece of writing here at this
    blog, I have read all that, so at this time me also commenting here.

  30. kqvsfiqv dice:

    The moon sheds her subtle impact on all of this, adding towards the variables. The above image shows that a secure protocol ( will be used from the fraudster. They can also check with doctors to authorize refills, and enter drug information to the computer.
    #benoquin

  31. вход dice:

    My partner and I stumbled over here different web page and thought I
    should check things out. I like what I see so i am just following you.
    Look forward to checking out your web page yet again.

  32. hfgfxlcs dice:

    While there is really a small chance you can get laid off (as an example, when the chain supermarket closes some stores) you shouldn’t have much problem finding another job. The local temperature in the medicine producing country is one and the other country might be another, and also the avian temperature could be the other. Make sure you take the time to ask about a cheaper version in order that they will look into the list.

  33. ddwhguo dice:

    “(3) The Washington Post(4) commemorated the closing which has a write-up that contained slightly of Schadenfreude. The last volume of the certified local pharmacy professional study course takes a twelve month preparation software in addition to as soon because the completing this tutorials you could possibly purchase an associates education. If you receive prescriptions every month make sure your pharmacy has your most up-to-date prescription insurance information.

  34. Great goods from you, man. I’ve understand your
    stuff previous to and you’re just too magnificent.
    I really like what you have acquired here,
    really like what you are saying and the way in which you say it.
    You make it enjoyable and you still take care of to keep it sensible.
    I cant wait to read much more from you. This is actually a tremendous web
    site.

  35. yknxwuyv dice:

    To make the most out from the card, apply it every visit and make track of coupon restrictions and expiration dates. To find degree programs that train you to get a career as a pharmacy technician, you are able to check out the Directory of Schools website at directoryofschools. If possible try to use exactly the same pharmacy just as much as possible.

  36. Appreciating the time and effort you put into your blog and
    detailed information you present. It’s great to come across a blog every once in a while that isn’t
    the same unwanted rehashed information. Fantastic read!

    I’ve bookmarked your site and I’m including your RSS feeds to
    my Google account.

  37. I have read a few good stuff here. Certainly value bookmarking for revisiting.
    I surprise how so much attempt you put to make the
    sort of wonderful informative site.

  38. Wonderful post! We are linking to this great article on our site.
    Keep up the good writing.

  39. Toplu forma yaptırma

    Good information. Lucky me I came across your site by chance (stumbleupon).
    I have book marked it for later!

  40. Futbol forma yaptırma

    I like it when individuals come together and share thoughts.

    Great blog, stick with it!

  41. 성인웹툰 dice:

    Nice post. I learn something totally new and challenging on websites I
    stumbleupon everyday. It will always be exciting
    to read through articles from other writers and practice a little something
    from other web sites.

  42. keo nha cai dice:

    Very rapidly this web page will be famous among all blogging people, due to it’s fastidious articles
    or reviews

Agrega tu comenatio