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

  1. Myrongurce dice:

    Открой мир https://hotel-atlantika.com.ua с нашим туристическим порталом! Подбор маршрутов, советы по странам, погода, валюта, безопасность, оформление виз.

  2. Anónimo dice:

    Σήμερα, το rvba.ca ξεχωρίζει ως μια καινοτόμα
    και αξιόπιστη πλατφόρμα online καζίνο, παρέχοντας μοναδική
    εμπειρία χρήστη με γρήγορο και εύκολο login ,
    και συνεχίζει με πλούσια γκάμα παιχνιδιών που καλύπτει όλα τα γούστα .
    Το spinmama gr ξεχωρίζει για την ασφάλεια και τη
    διαφάνεια που παρέχει στους παίκτες, κάτι που εκτιμά ιδιαίτερα το ελληνικό κοινό.
    Τα μπόνους και οι προσφορές που διαθέτει το Spinmama
    casino αυξάνουν τη διασκέδαση και κάνουν την
    εμπειρία πιο ελκυστική . Η υποστήριξη πελατών στα ελληνικά και η συμβατότητα με κινητές συσκευές καθιστούν το spin mama casino ιδανική επιλογή για όσους θέλουν να παίζουν όπου κι αν βρίσκονται .

    Συνολικά, το Spinmama συνδυάζει
    ποιότητα, τεχνολογία και ευρεία γκάμα παιχνιδιών , και είναι μια εξαιρετική
    επιλογή για όλους τους λάτρεις των online παιχνιδιών.

  3. Thanks for sharing your thoughts about دستگاه مبل شویی
    چگونه است. Regards

  4. Ahaa, its fastidious dialogue concerning this paragraph here at this weblog, I have read all that, so now me also
    commenting here.

  5. Today, I went to the beach with my children. I found a sea shell and gave
    it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.”
    She put the shell to her ear and screamed.
    There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  6. You need to take part in a contest for one of the finest
    blogs on the internet. I most certainly will recommend this website!

  7. ywlwuz dice:

    Most patients were paying good money for their insurance and were often upset when their prescriptions required a $50 co-pay, or that they not met their $4,000 deductable and must give the entire cost out-of-pocket. As a little entrepreneur, when is it time to increase prices like Netflix. After you filled in the account, you are going to now go with a payment scheme.

  8. I do not know whether it’s just me or if perhaps everybody else
    experiencing issues with your blog. It appears as though some of the written text within your posts are running off the
    screen. Can someone else please comment and let me know if this
    is happening to them as well? This could be a issue with my browser because
    I’ve had this happen previously. Thanks

  9. NBA Tickets dice:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I
    get three emails with the same comment. Is there any way you can remove people from that service?
    Cheers!

  10. sanal pos continental

    At this time it looks like Drupal is the best blogging platform available
    right now. (from what I’ve read) Is that what you’re using on your
    blog?

  11. tsutiwrw dice:

    1 teaspoon grated fresh ginger, or 1-2 lumps of preserved ginger, chopped. Ask the managers from the places where you enjoy shopping if they have these varieties of programs, should you aren’t already frequenting CVS and Winn-Dixie. According for the Bureau of Labor Statistics (BLS), pharmacists execute a lot a lot more than provide prescription medications to patients.

  12. Because the admin of this web site is working, no question very shortly it will be well-known, due
    to its quality contents.

  13. bmmqde dice:

    It is important to note that does not every pharmacy technician receives this kind of low wage knowning that when working in private pharmacies, it is more than likely that one gets to be a wage of $17 by the hour minimum. When I asked the tech relating to this new action she stated that yes, it is a new policy understanding that it is a “law” that most pharmacies must adhere to. If you get prescriptions every month make sure your pharmacy has your most up-to-date prescription insurance information.

  14. Your method of telling all in this post is truly fastidious, every one be capable of easily understand it, Thanks a lot.

  15. Piece of writing writing is also a excitement, if you know then you can write or else it is
    complex to write.

Responder a ผักปลอดสารพิษ คืออะไร? Cancelar respuesta