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: 95,907

  1. obviously like your web-site however you need to test
    the spelling on quite a few of your posts. A number
    of them are rife with spelling problems and I to find
    it very bothersome to inform the truth nevertheless I will surely come again again.

  2. h3jgj7n.top dice:

    Hi, I read your new stuff like every week. Your story-telling style is awesome, keep doing what you’re doing!

  3. codere group operates in seven European countries (Spain and Italy) and South America (Argentina, Colombia, Mexico, Panama and Uruguay), and codere casino is leading
    in area of multi-channel gambling games and playground in region.

  4. ang panghihiganti ng mga tao,sa pamamagitanng canyang dugo,ランジェリー エロ

  5. 1win_rjsl dice:

    1win бонус за установку приложения [url=https://1win12043.ru]https://1win12043.ru[/url]

  6. modifying the adjective phrase _at a loss_.アダルト ランジェリー+44+ The subjunctive was formerly common in indirect questions,

  7. a cette heure matinale,エッチ コスプレelle n’avait pasencore arrangé ses faux cheveux,

  8. JamesOxype dice:

    cheap ed meds online: Ed Pills Afib – Ed Pills Afib

  9. オナドールwhere it has Priviledges: for in such priviledges consisteth theirPower.Eloquence because it is seeming Prudence.

  10. Diplomi_jjKn dice:

    диплом кондитера купить [url=r-diploma4.ru]диплом кондитера купить[/url] .

  11. Napuna sa lahat ng? nasa salas ang pagkaguló,at matapos silangmakapagting?inan ay napatitig sa General upang makilala ang ipapaMay anim na buwan nang ang kahiling?an ay nagaantay doon ng? isangkapasiyahan at naging isang warì’y casus belli na tulóy ng? ilanglupon.ボディ スーツ エロ

  12. Fabulous, what a website it is! This blog gives useful
    information to us, keep it up.

  13. our curate (we had a curate then who made the living answer byteaching the little Lintons and Earnshaws,セクシー えろand farming his bit of landhimself) advised that the young man should be sent to college; and Earnshaw agreed,

  14. 1win_xyPl dice:

    сколько карт в покере [url=1win12044.ru]1win12044.ru[/url]

  15. エッチ コスプレThis he carried in his pack,and this constituted his food,

  16. rundbecken dice:

    I’m not sure where you are getting your information, but
    great topic. I needs to spend some time learning more or understanding more.

    Thanks for wonderful info I was looking for this info for my mission.

  17. Diplomi_wcOn dice:

    купить диплом вгу [url=https://r-diploma8.ru/]купить диплом вгу[/url] .

  18. Stevepsymn dice:

    overseas pharmacies https://edpillsafib.xyz/# pills for erectile dysfunction online

  19. Hi, I do think this is a great site. I stumbledupon it 😉 I will come back yet again since i have book marked
    it. Money and freedom is the best way to change, may you be rich and continue to guide other people.

  20. JamesOxype dice:

    canadian pharmacy viagra 50 mg: Cor Pharmacy – Cor Pharmacy

  21. Appreciate this post. Will try it out.

  22. Great 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 stand out. Please let me know where you got
    your design. Bless you

  23. Asking questions are truly good thing if you are not understanding anything fully, except this article presents fastidious understanding yet.

  24. Siya’y isangbinatang napagkikilalang malacas sa canyang pangangatawan,mga camayat paa,ストッキング エロ

  25. I’m amazed, I have to admit. Seldom do I encounter a
    blog that’s equally educative and engaging, and let me tell you, you’ve hit the nail on the head.
    The problem is something which not enough folks are speaking intelligently about.
    I am very happy that I came across this during my search for something regarding this.

  26. achtformpool dice:

    Very descriptive article, I enjoyed that a lot.
    Will there be a part 2?

  27. Thanks for sharing such a good idea, piece of writing
    is fastidious, thats why i have read it fully

  28. オナドールas long as this naturall Right of every man toevery thing endureth,there can be no security to any man,

  29. Bookmarks dice:

    Mangelsen
    7916 Girard Avenue, Lа Joya
    ᏟA 92037, United Stateѕ
    1 800-228-9686
    Bookmarks

Responder a rhino-de.com Cancelar respuesta