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: 83,912

  1. электрические карнизы купить [url=http://elektrokarniz495.ru/]http://elektrokarniz495.ru/[/url] .

  2. You wouldn’t go to a tavern,of course?”Raskolnikov frowned and looked steadily at Zametov.フィギュア 無 修正

  3. ラブドール 無 修正to which he said he was reduced by the heat of hisconstitution,though he might have assigned a more adequate cause,

  4. What’s up to every body, it’s my first pay a quick visit of this weblog; this website carries amazing and actually
    fine stuff in favor of visitors.

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

  6. inspiregrowthdaily.click – Found useful tips here, helpful resource for staying focused on growth goals.

  7. Really when someone doesn’t understand afterward its up to other people that
    they will assist, so here it takes place.

  8. Davidkib dice:

    AeroMedsRx: AeroMedsRx – AeroMedsRx

  9. Davidkib dice:

    Cialis without a doctor prescription: EveraMeds – EveraMeds

  10. ZacharyUnamp dice:

    http://bluewavemeds.com/# fast delivery Kamagra pills

  11. ラブドール 販売that she was inthe hands of a benevolent Being,who would not impose upon hiscreatures any task which they could not bear; he insisted upon herreturning to bed,

  12. It’s an remarkable post designed for all the web visitors; they
    will obtain benefit from it I am sure.

  13. Artemsty dice:

    MELBET-самые большие выигрыши

    Лучший букмекер,со своей историей поможет вам заработать целое состояние.
    Присоединяйтесь к нам ,пополняйте счет на любую сумму и забирайте свой бонус с [url=https://melbet-kz.one]MELBET[/url]

  14. электрические гардины [url=www.elektrokarniz495.ru]электрические гардины[/url] .

  15. TristanFag dice:

    Sildenafil 100mg price [url=https://aeromedsrx.xyz/#]cheap viagra[/url] AeroMedsRx

  16. fantastic issues altogether, you just received a new reader.
    What might you recommend in regards to your put up that
    you simply made some days in the past? Any positive?

  17. though sincerely meant,and written in a very seriousmood,ラブドール 通販

  18. рулонные шторы на электроприводе [url=https://rulonnye-shtory-s-elektroprivodom177.ru/]рулонные шторы на электроприводе[/url] .

  19. Diplomi_bePr dice:

    купить диплом на сварщика [url=http://r-diploma13.ru]купить диплом на сварщика[/url] .

  20. Diplomi_jkMt dice:

    купить диплом высшее получать [url=http://r-diploma21.ru/]http://r-diploma21.ru/[/url] .

  21. to waste time over anyonelike Svidriga?lov? how sick he was of it all!And yet he was hastening to Svidriga?lov; could he be expectingsomething _new_ from him,アダルト フィギュア 無 修正information,

  22. «Я создавала вокруг себя стену,
    через которую клиенты не могли пробиться ко мне, https://universewomen.ru/
    а сама я не шла им навстречу.

  23. Diplomi_svot dice:

    купить диплом о высшем образовании в уфе цена [url=https://www.r-diploma14.ru]https://www.r-diploma14.ru[/url] .

  24. Yesterday, while I was at work, my sister stole my iphone
    and tested to see if it can survive a forty foot drop, just
    so she can be a youtube sensation. My iPad is now broken and she has
    83 views. I know this is totally off topic
    but I had to share it with someone!

  25. he had been obliged to defer his departurefor Germany on account of his attendance upon the mother of hismistress,ラブドール 通販who was lately dead of sorrow and chagrin; and since heresided in London,

  26. Heya i am for the first time here. I found this board and I find
    It really useful & it helped me out a lot. I hope to give something back and help others like
    you helped me.

  27. Diplomi_veKt dice:

    техникум купить диплом [url=https://r-diploma5.ru/]техникум купить диплом[/url] .

  28. Davidkib dice:

    EveraMeds: Buy Tadalafil 10mg – EveraMeds

  29. after a moment’ssuspense and consideration,divined the true cause of this short visit,ドール エロ

  30. Hello everyone, it’s my first pay a visit at this web site, and article is actually fruitful for me, keep up posting these articles.

  31. ラブドール 無 修正that he might avoid alldangerous or disagreeable encounters.finding himself descending the hill of fortune with an acquiredgravitation,

  32. Do you mind if I quote a few of your articles as long as I provide credit and
    sources back to your blog? My blog is in the exact same niche as yours and my users would
    certainly benefit from a lot of the information you provide here.

    Please let me know if this ok with you. Thank you!

  33. рулонные шторы с автоматическим управлением [url=www.rulonnye-shtory-s-elektroprivodom177.ru/]www.rulonnye-shtory-s-elektroprivodom177.ru/[/url] .

  34. フィギュア 無 修正dropping them to awhisper.There must have been numbers of them–almost all the inmatesof the block.

  35. Davidkib dice:

    Sildenafil 100mg price: Cheap Viagra 100mg – viagra canada

  36. out of which he had been drummedfor theft,ラブドール 女性 用had erected himself into the rank of a self-createdchevalier,

  37. Diplomi_rzEa dice:

    москве купить диплом [url=https://www.r-diploma20.ru]москве купить диплом[/url] .

  38. The purse was stuffedvery full; Raskolnikov thrust it in his pocket without looking at it,flung the crosses on the old woman’s body and rushed back into thebedroom,ラブドール

Responder a Elektrokarniz_hbma Cancelar respuesta