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: 94,398

  1. Hmm is anyone else experiencing problems with
    the pictures on this blog loading? I’m trying to figure out if
    its a problem on my end or if it’s the blog.

    Any feed-back would be greatly appreciated.

  2. Williamecoto dice:

    online pharmacy worldwide shipping [url=https://corpharmacy.xyz/#]Cor Pharmacy[/url] online pharmacy canada

  3. Amazing! Its really amazing article, I have got much clear idea about from this
    piece of writing.

  4. Diplomi_vnOa dice:

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

  5. Hello, yes this article is truly good and I have
    learned lot of things from it regarding blogging. thanks.

  6. Stevepsymn dice:

    ed meds online http://edpillsafib.com/# EdPillsAfib

  7. наркологические клиники в москве [url=https://www.narkologicheskaya-klinika-40.ru]наркологические клиники в москве[/url] .

  8. slot toto dice:

    I like the helpful information you provide in your articles.
    I’ll bookmark your weblog and check again here regularly.
    I’m quite sure I will learn many new stuff right here! Best of luck for the next!

  9. Excellent beat ! I would like to apprentice at the same
    time as you amend your website, how can i subscribe for a weblog site?
    The account helped me a appropriate deal. I have been a little bit familiar of this your broadcast
    offered shiny transparent idea

  10. наркология клиника [url=https://www.narkologicheskaya-klinika-40.ru]наркология клиника[/url] .

  11. Bridging components in OMT’s curriculum simplicity changes ƅetween levels,
    supporting continuous love fⲟr mathematics and test confidence.

    Expand ʏour horizons ѡith OMT’s upcoming new physical aгea opening іn Seρtember 2025, offering
    a ⅼot moгe opportunities fߋr hands-᧐n math expedition.

    In a syѕtem wһere math education һas developed tо promote development
    ɑnd global competitiveness, enrolling іn math tuition еnsures trainees stay ahead Ƅу deepening
    tһeir understanding аnd application ߋf essential ideas.

    Ϝor PSLE success, tuition uses individualized
    assistance tߋ weak areas, ⅼike ratio ɑnd percentage issues, avoiding common risks tһroughout tһe examination.

    Tuition cultivates sophisticated analytic abilities,
    іmportant fⲟr addressing the facility, multi-step inquiries tһat define O Level mathematics obstacles.

    Ӏn аn affordable Singaporean education ѕystem, junior college math tuition ρrovides pupils tһe edge to accomplish hіgh qualities required fοr university admissions.

    Distinctively, OMT enhances tһe MOE curriculum ᴡith an exclusive program tһat
    consists ⲟf real-time progression monitoring fߋr
    tailored improvement strategies.

    12-mоnth accessibility implies you can revisit subjects anytime lah, building strong structures fⲟr regular higһ
    math marks.

    Math tuition supports а growth ѕtate of mind, motivating Singapore pupils tо see difficulties аs opportunities for examination quality.

    Alѕo visit my webpage – singapore secondary 4 math tuition

  12. MatthewOrbip dice:

    Промокод – небольшая цифробуквенная комбинация, которая дает право на получение каких-то привилегий и бонусов. Система промокодов позволяет букмекерским конторам привлекать новых пользователей, поощрять их регистрацию и пополнение счета, поэтому эта схема удобна как букмекерам, так и пользователям. Вводя промокод melbet на сегодня и другие бонусы для первых ставок. Обычно ввод промокода не представляет особой сложности. На сайте букмекера при регистрации будет отведено специальное поле для ввода кодовой комбинации. При выполнении всех условий компании, предоставляющей бонус, код начинает действовать сразу после ввода. Дополнительная активация не требуется. В этом случае есть свои особенности, о которых будет рассказано далее.

  13. Diplomi_gden dice:

    купить аттестата на заказ [url=https://r-diploma22.ru]купить аттестата на заказ[/url] .

  14. look at here dice:

    I really love your website.. Pleasant colors & theme. Did you develop this site yourself?
    Please reply back as I’m trying to create my own personal website and
    would like to learn where you got this from
    or just what the theme is called. Cheers!

  15. kun kaksi tuntia h?nensaapumisensa j?lkeen kyl??n tuli suurellisesti k?vellen mies nimelt?Ofalikari,ラブドール オナニーngombilainen,

  16. Danielanosy dice:

    Cor Pharmacy: Cor Pharmacy – safe online pharmacies

  17. a reason I will not give but which will interestyou in a few months time.But you were fearful of losing your richson-in-law.ラブドール sex

  18. Amazing blog! Do you have any suggestions for aspiring writers?
    I’m planning to start my own site soon but I’m a little lost on everything.

    Would you propose starting with a free platform
    like WordPress or go for a paid option? There are so many choices out there that I’m completely overwhelmed ..

    Any ideas? Many thanks!

  19. Williamecoto dice:

    Cor Pharmacy [url=https://corpharmacy.com/#]Cor Pharmacy[/url] Cor Pharmacy

  20. вывод из запоя москва клиника [url=https://www.narkologicheskaya-klinika-40.ru]https://www.narkologicheskaya-klinika-40.ru[/url] .

Responder a Williamecoto Cancelar respuesta