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

  1. ryirwg dice:

    The moon sheds her subtle influence on all of this, adding towards the variables. These include the pharmacist who works as a professor or lecture in different medical college; they spend around 50 per cent with their time inside the other areas of pharmacy. If possible try to use exactly the same pharmacy as much as possible.
    Online pharmacy for travel medications

  2. Hi there, just became aware of your blog through Google, and found that it is really
    informative. I’m going to watch out for brussels. I’ll appreciate if you continue this in future.
    Many people will be benefited from your writing. Cheers!

  3. slot 5000 dice:

    I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an nervousness over that you
    wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly a lot often inside case you shield this increase.

  4. Right now it seems like WordPress is the best
    blogging platform out there right now. (from what I’ve read) Is that what you
    are using on your blog?

    Look into my homepage – สถิติหวยฮานอยวีไอพี ruay

  5. v9bet dice:

    Howdy! Would you mind if I share your blog with my myspace group?

    There’s a lot of folks that I think would really appreciate your content.
    Please let me know. Cheers

  6. slot 5000 dice:

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

  7. ektlorrw dice:

    Most patients were paying big money for their insurance and were often upset when their prescriptions required a $50 co-pay, or they’d not met their $4,000 deductable and must pay for the entire cost out-of-pocket. Screaming, yelling, demanding things, or being rude won’t help the situation. After you filled in the account, you will now decide on a payment scheme.
    Gabapentin online consultation

  8. buugfldp dice:

    “(3) The Washington Post(4) commemorated the closing using a write-up that contained slightly of Schadenfreude. Fear not, with time you will know precisely how to handle different varieties of problems that may come about. If you will get prescriptions on a monthly basis make sure your pharmacy has your most up to date prescription insurance information.
    Online pharmacy for skin treatments

  9. This review really breaks down how Yu Sleep can help with falling asleep faster
    and staying asleep longer. With so many stressful days, having a supplement that supports restful sleep naturally is a game changer.

    Definitely adding this to my nighttime routine!

  10. qqcnrndd dice:

    While there can be a small chance you could get laid off (as an example, in the event the chain supermarket closes some stores) you shouldn’t have much problem finding another job. ” A good reaction to this is just not “I’m looking for a job. Most drugs need to get stored at exact temperatures, so one from the things pharmacists learn within pharmaceutical quality training will be the necessary steps to maintain the facilities clean and in compliance with regulations.
    Online pharmacy for heart medications

  11. kxsfpvqy dice:

    To make the most out in the card, apply it every visit and track of coupon restrictions and expiration dates. You might additionally check out “Physician Assistant Is a Top Healthcare Career. They may also check with doctors to authorize refills, and enter drug information into the computer.
    Online pharmacy loyalty program

  12. Wow that was odd. I just wrote an extremely long comment but after I clicked
    submit my comment didn’t appear. Grrrr…

    well I’m not writing all that over again. Anyhow, just wanted to say great blog!

  13. slot 123 dice:

    I like the helpful info you provide on your articles.
    I’ll bookmark your weblog and take a look at once more here
    frequently. I am relatively certain I’ll be told many new stuff right here!

    Best of luck for the following!

  14. My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the costs. But he’s tryiong
    none the less. I’ve been using WordPress on various websites
    for about a year and am concerned about switching to another platform.
    I have heard very good things about blogengine.net. Is there a way
    I can import all my wordpress content into it? Any help would be greatly appreciated!

  15. Why viewers still use to read news papers when in this technological world
    the whole thing is existing on net?

  16. nkyyijbh dice:

    An online pharmacy is fairly a help in a embarrassing scenario like this. Any reputable web business puts their shopping cart on a safe and secure server. Strong customer service skills really are a must when handling the hectic pace of a pharmacy or pharmaceutical department.
    Health and wellness products online

  17. Fine way of describing, and fastidious post to take facts about my presentation topic, which i am going to deliver in university.

  18. Excellent way of explaining, and nice post to take facts on the topic of my
    presentation topic, which i am going to convey in academy.

  19. This site certainly has all the info I wanted concerning this subject and didn’t know who to ask.

Responder a custom home builders near me Cancelar respuesta