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: 23,210

  1. Charlesgeara dice:

    Большой выбор сварочной проволоки Св-08Г2С и других марок для полуавтомата [url=https://wire.in.ua/drit-zvaryuvalnij-0-8-mm-sv08g2s-4si1-er70s-6-polirovanij-5-kg-katushka-plastik-d200.html]Св-08Г2С[/url]

  2. and ?eale,make your returne As ?peedy as you can.せっくす 美人

  3. Exceptional post however , I was wanting to know if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit further.
    Thanks!

  4. Team debrief: once we decided to buy twitter likes, reply depth jumped two levels overnight.

  5. Instant gratification isn’t always bad—Buffalo News lists two legit services to buy instant twitter likes sans bot chatter.

  6. Having read this I believed it was rather informative.

    I appreciate you spending some time and effort to put this
    content together. I once again find myself spending a significant amount of time
    both reading and leaving comments. But so what, it was still worth it!

  7. I am truly thankful to the holder of this web page who has shared this enormous
    post at at this time.

  8. Homepage dice:

    Every weekend i used to go to see this site, for the reason that i wish for enjoyment, for the reason that this this web site conations genuinely
    fastidious funny data too.

  9. thanbai88pro dice:

    WOW just what I was looking for. Came here by searching for
    thanbai88pro

  10. ev88 dice:

    EV88 chính là điểm đến lý tưởng cho người chơi mê cá độ online, với các thể loại như
    đá gà, casino, đến sports betting. Mang đến hệ thống
    hỗ trợ chuyên nghiệp, bảo mật tuyệt đối và chăm sóc
    khách hàng liên tục, EV88 cung cấp trò chơi cực đỉnh.
    Tham gia ngay để khám phá sân chơi giải trí
    sôi động và công bằng tại EV88!

  11. bandar slot dice:

    Thanks a bunch for sharing this with all people you actually realize what you are speaking approximately!
    Bookmarked. Kindly additionally seek advice from my site =).
    We could have a hyperlink trade contract among
    us

  12. Hello would you mind letting me know which web host you’re utilizing?
    I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot faster then most.

    Can you suggest a good internet hosting provider at a reasonable price?
    Many thanks, I appreciate it!

  13. Richmondzux dice:

    Awesome blog! Is your theme custom made or did you download it from somewhere?
    A theme like yours with a few simple adjustements would really
    make my blog jump out. Please let me know where
    you got your design. Bless you

  14. Arnoldwak dice:

    Новый бизнес полностью с нуля требует временных затрат на регистрационные процедуры и получение документов [url=http://www.privivok.net.ua/smf/index.php/topic,11780.0.html]купить фирму с лицензией[/url]

  15. ac repair dice:

    I’m not sure why but this blog is loading extremely slow for
    me. Is anyone else having this problem or is it a problem on my end?
    I’ll check back later on and see if the problem still
    exists.

  16. visite here dice:

    Hey there! Would you mind if I share your blog with my twitter group?
    There’s a lot of folks that I think would really
    appreciate your content. Please let me know. Cheers

  17. Pretty section of content. I just stumbled
    upon your website and in accession capital to assert that I get in fact enjoyed account your blog
    posts. Anyway I will be subscribing to your feeds and even I
    achievement you access consistently rapidly.

  18. over to Loontown.And she wuz a-travellin’ along peacible,和服 エロ

  19. understand,アダルト コスプレagree toand accept all the terms of this license and intellectual property(trademark/copyright) agreement.

  20. ButI never dream of reforming,knowing that I must take myself as I am andget what work I can out of myself.大型 オナホ

  21. he didn’t mean to speak right out about men’susual way of bossin’ wimmen round.和服 エロIt was only his unfortunate andtransparent manner of speakin’.

  22. Screw dice:

    Simply desire to say your article is as surprising.
    The clarity in your post is just excellent and i can assume you’re an expert on this subject.
    Well with your permission allow me to grab your RSS feed to keep
    updated with forthcoming post. Thanks a million and please carry on the gratifying work.

  23. I haveendeavoured,海外 コスプレ エロwith the whole affection and desire of my mind,

  24. コスプレ エロand acute; his chin and cheeks,although wrinkled with age,

  25. Hello, the whole thing is going well here and ofcourse every one is sharing data,
    that’s really fine, keep up writing.

  26. website dice:

    Having read this I thought it was really enlightening.
    I appreciate you finding the time and energy to put this short article together.
    I once again find myself spending a lot of time both reading and posting comments.
    But so what, it was still worth it!

  27. I really like what you guys are up too. This sort of clever work
    and reporting! Keep up the very good works guys I’ve you guys to
    blogroll.

  28. “There has in mine.Your wicked and profane swearin’ hascast many and many a cloud over my sky,和服 エロ

Responder a buffalonews.com-806 Cancelar respuesta