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: 114,492

  1. Danielsnoni dice:

    п»їJust now, I discovered a great article concerning ordering meds from India. The site discusses CDSCO regulations for ED medication. If you are looking for factory prices, check this out: п»їhttps://kisawyer.us.com/# п»їlegitimate online pharmacies india. It helped me.

  2. RichardHex dice:

    Sharing, an important analysis on buying meds safely. It explains quality control for ED meds. You can read it here: п»ї[url=https://polkcity.us.com/#]Upstate Medical[/url].

  3. I’m impressed, I must say. Rarely do I come across a blog that’s
    equally educative and interesting, and let me tell you,
    you have hit the nail on the head. The problem is something
    which too few men and women are speaking intelligently about.
    Now i’m very happy I stumbled across this during
    my search for something regarding this.

  4. 舒壓課程 dice:

    https://fr-friends-10.nyc3.digitaloceanspaces.com/research/nothing-at-all-(4891).html
    The refined scoop neck and sheer lace sleeves are simply some of the issues we love about this A-line costume.

  5. LloydRop dice:

    п»їActually, I stumbled upon an interesting article concerning ordering meds from Mexico. The site discusses the safety protocols on prescriptions. If anyone wants reliable shipping to USA, visit this link: п»їhttps://polkcity.us.com/# pharmacy in mexico. Worth a read.

  6. I read this piece of writing fully concerning the resemblance of newest and previous technologies, it’s awesome
    article.

  7. Unquestionably believe that which you stated. Your favorite justification appeared to be
    on the net the simplest thing to be aware of. I say to you, I
    certainly get irked while people consider worries that they just don’t
    know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal.
    Will probably be back to get more. Thanks

  8. LloydRop dice:

    п»їTo be honest, I found a great article concerning Mexican Pharmacy standards. It covers FDA equivalents when buying antibiotics. For those interested in reliable shipping to USA, take a look: п»їhttps://polkcity.us.com/# mexico online farmacia. Might be useful.

  9. Danielsnoni dice:

    п»їLately, I came across a helpful report about generic pills from India. It details WHO-GMP protocols when buying antibiotics. For those interested in reliable shipping to USA, take a look: п»їhttps://kisawyer.us.com/# п»їlegitimate online pharmacies india. Good info.

  10. Danielsnoni dice:

    п»їRecently, I came across a useful article regarding Indian Pharmacy exports. It details WHO-GMP protocols on prescriptions. If anyone wants Trusted Indian sources, check this out: п»ї[url=https://kisawyer.us.com/#]kisawyer.us.com[/url]. Might be useful.

  11. https://fr-friends-8.fra1.digitaloceanspaces.com/research/nothing-at-all-(3694).html
    Moms who want to give a little drama, contemplate vivid hues and assertion features.

  12. m777_knkl dice:

    Discover the exciting world of gambling with[url=https://m777-slot.com/]m777 login[/url] and win big!
    Sophisticated encryption safeguards customer data throughout payments.

  13. m777_xxkl dice:

    Discover the exciting world of gambling with[url=https://m777-slot.com/]m777 login[/url] and win big!
    Such offers enrich gameplay and boost winning opportunities.

  14. hey there and thank you for your information – I’ve definitely picked up anything new from right here.
    I did however expertise some technical issues using this
    site, since I experienced to reload the site lots of times previous to I
    could get it to load properly. I had been wondering if your hosting is OK?
    Not that I am complaining, but slow loading instances times
    will sometimes affect your placement in google and could damage your quality score if advertising and marketing with Adwords.
    Anyway I am adding this RSS to my email and could look out for a
    lot more of your respective intriguing content. Make sure you update this again very soon.

  15. I like the valuable info you provide in your articles.

    I will bookmark your weblog and check again here
    regularly. I am quite sure I’ll learn lots of new stuff
    right here! Best of luck for the next!

  16. Ralphkic dice:

    п»їLately, I came across a useful page concerning Indian Pharmacy exports. The site discusses how to save money for generic meds. If you are looking for reliable shipping to USA, check this out: п»ї[url=https://kisawyer.us.com/#]online pharmacy india[/url]. Worth a read.

  17. RichardHex dice:

    Quick question about safe Mexican pharmacies. I found a verified blog that lists trusted vendors: п»їhttps://polkcity.us.com/# п»їmexican pharmacy. What do you think?.

  18. kratom dice:

    Howdy! Someone in my Myspace group shared this site with us so I came to give
    it a look. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers!
    Excellent blog and great design.

  19. 整復學徒 dice:

    https://fr-size-9.blr1.digitaloceanspaces.com/research/%EF%B8%8F-small-(4205).html
    Did you realize that you can save a listing of the mom of the bride dresses you like with a PreOwned account?

  20. Greetings from Carolina! I’m bored at work so I decided
    to check out your website on my iphone during lunch break.

    I love the info you present here and can’t wait to take a
    look when I get home. I’m shocked at how quick your blog loaded on my cell
    phone .. I’m not even using WIFI, just 3G ..
    Anyhow, fantastic site!

  21. 推拿學徒 dice:

    https://fr-asia-7.fra1.digitaloceanspaces.com/research/asia-business-(3330).html
    An event as particular as your kid’s wedding ceremony would not come around every single day.

  22. Because the admin of this web site is working, no question very shortly
    it will be renowned, due to its feature contents.

Responder a how to add liquidity on iziswap Cancelar respuesta