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: 92,676

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

  2. RonaldVoicy dice:

    микрозайм онлайн без проверок Минимальные требования к заемщику позволяют почти каждому получить на этом сайте кредитные микрозаймы онлайн.

  3. Современные методики позволяют избавиться от них быстро и эффективно.

    На dzen.ru разобрали, когда нужно обращаться к врачу.

    Информация будет полезна каждому, кто заботится о здоровье кожи.

  4. enlargement dice:

    Hello would you mind sharing which blog platform you’re using?
    I’m going to start my own blog soon but I’m having a
    difficult time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your layout
    seems different then most blogs and I’m looking for something unique.
    P.S Apologies for getting off-topic but I had to ask!

  5. pepe bridge dice:

    I switched from another service because of the seamless withdrawals and quick deposits. Support solved my issue in minutes.

  6. большая кухня на заказ [url=http://www.kuhni-spb-1.ru]http://www.kuhni-spb-1.ru[/url] .

  7. Angellaf dice:

    This is a personal code that allows you to learn about your actions http://planetofanimals.com/blog/theme-905/6223

  8. CharlesSor dice:

    buy zithromax online: zithromax z- pak buy online – buy zithromax

  9. CharlesSor dice:

    cheap zithromax: cheap zithromax – buy zithromax online

  10. JosephTar dice:

    Игровые автоматы, бонусы за регистрацию и быстрые выплаты на казино типпи

  11. melbet_pjSt dice:

    казино мелбет официальный сайт [url=www.melbetofficialsite.ru/]казино мелбет официальный сайт[/url] .

  12. The servant brought back his tumbler turned upside down,with anunfinished bit of nibbled sugar,ドール エロ

  13. ラブドール 中出しAfter that journeyto Ryazán he found the country dull,his former pursuits no longerinterested him,

  14. where he is refuting the scepticism whichmaintained either that there was no such thing as predication,or thatall might be predicated of all,ラブドール オナニー

  15. усиление углеволокном [url=http://dpcity.ru/usilenie-betona-uglevoloknom-fundamentov-svayami-i-gruntov-inektirovaniem-yuviks-grupp-spb/]http://dpcity.ru/usilenie-betona-uglevoloknom-fundamentov-svayami-i-gruntov-inektirovaniem-yuviks-grupp-spb/[/url] .

  16. The site’s easy navigation made the customization process straightforward and enjoyable.I highly recommend com to anyone seeking a high-quality,ラブドール えろ

  17. I recently bought a doll from Realistic Companions,and the unmatched realism and personalization options have left me thoroughly impressed.ラブドール 中古

  18. DavidbaK dice:

    AmoxDirect USA [url=https://amoxdirectusa.shop/#]Buy Amoxicillin for tooth infection[/url] buy amoxil

  19. 女性 用 ラブドールHe was in love with every button on hiscoat,every nail on his fingersabsolutely in love with them,

  20. ドール エロand the like,intowhich intellectual knowledge is divided.

  21. CharlesSor dice:

    buy amoxil: Purchase amoxicillin online – AmoxDirect USA

  22. прогноз футбол [url=http://prognozy-na-futbol-9.ru/]прогноз футбол[/url] .

  23. GlennDiz dice:

    buy finasteride: Propecia buy online – Propecia buy online

  24. The more frequently and frankly sexual matters are discussed,the easier and even more open such discussions are likely to be as you both grow comfortable with talking about it.リアル ドール

  25. заказать кухню в спб от производителя [url=https://kuhni-spb-1.ru/]https://kuhni-spb-1.ru/[/url] .

  26. DavidbaK dice:

    generic amoxicillin cost [url=https://amoxdirectusa.com/#]Buy Amoxicillin for tooth infection[/url] Purchase amoxicillin online

  27. ラブドール 通販Villona was entertaining also—abrilliant pianist— unfortunately,very poor.

  28. melbet_omSt dice:

    casino melbet [url=www.melbetofficialsite.ru/]casino melbet[/url] .

  29. アジア えろostensibly to reporton Vasya.Some one must be informed of it.

  30. えろ 人形the female derriere has captured men’s lascivious attention since the time of the Greeks and ancient Chinese dynasties.And if female buttocks rank behind men’s similarly erotic interest in breasts,

  31. Link exchange is nothing else except it is simply placing the other person’s weblog link on your page at
    suitable place and other person will also do similar in favor of you.

  32. hargatoto dice:

    Wonderful, what a weblog it is! This weblog provides valuable facts to us, keep it
    up.

  33. Diplomi_hcei dice:

    сколько стоит купить диплом медсестры [url=www.frei-diplom14.ru/]сколько стоит купить диплом медсестры[/url] .

  34. Hello! I know this is kinda off topic nevertheless I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest writing a
    blog article or vice-versa? My site covers a lot of the same topics as yours and
    I feel we could greatly benefit from each other.
    If you happen to be interested feel free to shoot me an email.

    I look forward to hearing from you! Wonderful blog by the way!

  35. кухня по индивидуальному проекту [url=http://kuhni-spb-1.ru/]http://kuhni-spb-1.ru/[/url] .

  36. オナホare more exploratory and playful in nature rather than planned,do not show a preoccupation with sexual interactions,

  37. Diplomi_swMt dice:

    купить диплом в петрозаводске [url=http://rudik-diplom8.ru/]купить диплом в петрозаводске[/url] .

  38. Diplomi_bfOr dice:

    Купить диплом техникума в Донецк [url=https://educ-ua7.ru]https://educ-ua7.ru[/url] .

  39. Diplomi_wkkr dice:

    купить новый диплом [url=https://rudik-diplom2.ru/]купить новый диплом[/url] .

  40. усиление углеволокном [url=dpcity.ru/usilenie-betona-uglevoloknom-fundamentov-svayami-i-gruntov-inektirovaniem-yuviks-grupp-spb/]dpcity.ru/usilenie-betona-uglevoloknom-fundamentov-svayami-i-gruntov-inektirovaniem-yuviks-grupp-spb/[/url] .

  41. Diplomi_fssi dice:

    купить диплом о высшем образовании легально [url=https://frei-diplom4.ru/]купить диплом о высшем образовании легально[/url] .

  42. DavidbaK dice:

    Propecia buy online [url=https://regrowrxonline.com/#]Propecia buy online[/url] RegrowRx Online

  43. What’s up, its pleasant post on the topic
    of media print, we all understand media is a fantastic source of facts.

  44. Diplomi_eeKr dice:

    купить диплом в брянске [url=rudik-diplom4.ru]купить диплом в брянске[/url] .

Responder a kyhni spb_znpn Cancelar respuesta