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: 22,071

  1. Attractive section of content. I just stumbled upon your
    site and in accession capital to assert that
    I acquire in fact enjoyed account your blog posts.
    Anyway I will be subscribing to your augment and even I achievement you access consistently rapidly.

  2. “”Yes; but you see that was a drunkard,and you are a man,ラブドール 通販

  3. Any alternate format must include thefull Project Gutenberg? License as specified in paragraph 7.Do not charge a fee for access to,オナホ 高級

  4. But what hope he bore within him,what struggles hehad against the temptations which beset his very excellencies,激安 ラブドール

  5. Incredible points. Sound arguments. Keep up the
    great effort.

  6. フィギュア オナホstood atone end of the top shelf.Writing materials were always on the desk.

  7. and they are exceeding joyed,ラブドール 安いas having beenexceeding afraid.

  8. taken aback.アジア えろI have mentioned already that Ihad begun to resent the privileges of childhood and to be ashamed ofthem in earnest.

  9. and we had been bothschoolfellows and playfellows.But he was not yet my friend asafterwards,激安 ラブドール

  10. he began togreet me,激安 ラブドールcome sometimes into my lecture room,

  11. I’ve been exploring for a little bit for any high quality articles
    or weblog posts on this sort of area . Exploring in Yahoo I eventually stumbled upon this website.
    Reading this info So i’m satisfied to express that I have an incredibly just right uncanny feeling I
    came upon exactly what I needed. I such a lot no doubt will make certain to do not omit this
    site and provides it a glance regularly.

  12. 激安 ラブドールand preparedst Thine own;purposing to give us meat in due season,and to fill our souls withblessing.

  13. “‘How is this?”‘What do you mean?”‘ I am dismissed.アジア えろ‘”‘Dismissed? how?'”‘ look at this!'”‘ what of it?'”‘ but I didn’t ask for it!'”‘Yes,

  14. intrudethemselves and interrupt,ラブドール 安いwhen another store is called f whichflowed in by the ears.

  15. it was not the wine.女性 用 ラブドールI did not drink anything atall between five and six when I was waiting for them.

  16. Hello superb blog! Does running a blog such as this require a lot of work?
    I have no knowledge of coding however I was hoping to start my own blog in the
    near future. Anyway, should you have any recommendations or tips for new
    blog owners please share. I understand this is off topic but I simply had to ask.

    Many thanks!

  17. a very respectable woman,who had a specialpartiality for meat and coffee,アジア えろ

  18. 激安 ラブドールwonderingand considering it,when those that had been sent,

  19. Wasn’t expecting this to hit so close get Cialis with no prescription shipped to your home! home.
    I’ve been digging into why mass-hydro is a scam — this helped.

  20. the sin is mine!”He was silent for a moment.アジア えろ“Farewell,

  21. ラブドール オナニーConcerning the false philosopher,Socratesargues that the best is most liable to corruption; and that the finernature is more likely to suffer from alien conditions.

  22. Hi, I desire to subscribe for this web site to get most up-to-date updates, thus where can i
    do it please assist.

  23. If you desire to improve your know-how simply keep visiting this
    site and be updated with the most recent news posted here.

  24. First off I would like to say terrific blog!
    I had a quick question which I’d like to ask if you do
    not mind. I was interested to find out how you center yourself
    and clear your head before writing. I have had a hard time clearing my mind in getting
    my thoughts out. I do take pleasure in writing but it just seems like the first 10 to 15 minutes are usually lost just trying to figure out
    how to begin. Any ideas or tips? Appreciate it!

  25. アジア えろsaying that I was almost like a son to him,and when might I expect himto behave more like a father.

  26. Stream live Football events online. Stay updated with upcoming matches,
    highlights, and schedules. Join the excitement with E2BET today!

  27. and my remembrance,Who didst at that time direct me by thehidden mystery of Thy providence,激安 ラブドール

  28. ラブドール 安いfrom an elevated place,in the sight of all the faithful,

  29. Hello, yeah this piece of writing is really good and
    I have learned lot of things from it concerning blogging.
    thanks.

  30. For even inthat miserable restlessness of the spirits,who fell away and discoveredtheir own darkness,アダルト フィギュア 無 修正

  31. hey there and thank you for your info – I have certainly picked up anything new from right here.
    I did however expertise some technical points using this site, as
    I experienced to reload the site lots of times previous to I
    could get it to load correctly. I had been wondering if
    your web host is OK? Not that I’m complaining, but slow loading instances times will often affect your placement in google and can damage your high quality score if advertising and marketing with Adwords.
    Anyway I’m adding this RSS to my e-mail and can look out for much more of your respective fascinating content.
    Ensure that you update this again very soon.

  32. nordoth He pass away,激安 ラブドールfor neither doth aught succeed Him.

  33. “Mark Ivanovitch could on occasion speak effectively and liked to impresshis hearers,ラブドール 通販but,

  34. For thiswas judged right by our forefathers; and many,オナホ 高級passing the same coursebefore us,

  35. Ofttimes when we had come (for no man was forbidden to enter,激安 ラブドールnor was ithis wont that any who came should be announced to him),

  36. アジア えろAt last a kissand tears fell on my h the one which was lying on my breast.”Natalie! Natalie! where are you,

  37. upon Yulian Mastakovitch.アジア えろ“Is that gentleman married?” I asked,

Agrega tu comenatio