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: 28,039

  1. plinko game [url=http://plinko-kz2.ru]plinko game[/url]

  2. Secret Billionaire Frequency sounds really intriguing!
    I like how it focuses on using sound and frequency to reprogram the mind for
    wealth and success. It’s a unique approach compared to the usual money mindset programs,
    and definitely worth exploring for anyone looking to unlock new opportunities.

  3. The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a thirty
    foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is completely off topic but I had to share
    it with someone!

  4. RobertBat dice:

    ED treatment without doctor visits [url=http://kamameds.com/#]ED treatment without doctor visits[/url] Affordable sildenafil citrate tablets for men

  5. ElijahCah dice:

    buy viagra online nz: SildenaPeak – SildenaPeak

  6. RobertBat dice:

    SildenaPeak [url=https://sildenapeak.com/#]SildenaPeak[/url] SildenaPeak

  7. футбол ставки [url=http://prognozy-na-futbol-5.ru]http://prognozy-na-futbol-5.ru[/url] .

  8. прогноз футбол на сегодня [url=https://prognozy-na-futbol-6.ru/]прогноз футбол на сегодня[/url] .

  9. RichardSof dice:

    Men’s sexual health solutions online: Non-prescription ED tablets discreetly shipped – Kamagra oral jelly USA availability

  10. KAITO 189 dice:

    Hello just wanted to give you a quick heads up. The words in your content seem to be running off the
    screen in Firefox. I’m not sure if this is a formatting issue or something to do with browser compatibility but I thought I’d post
    to let you know. The style and design look great
    though! Hope you get the problem fixed soon. Many thanks

  11. GGWIN dice:

    Pretty nice post. I simply stumbled upon your weblog and wished to
    mention that I’ve truly enjoyed surfing around your blog posts.
    In any case I’ll be subscribing in your rss feed and I’m hoping you write again soon!

  12. Если вы или ваши близкие столкнулись с алкогольной зависимостью, важно знать о возможностях вызова капельницы от запоя в Красноярске. Врачи, предоставляющие медицинскую помощь, предлагают эффективное лечение алкоголизма и детоксикацию организма. Капельница от алкоголя способствует выведению токсинов и восстановлению после запоя. Клиника в Красноярске оказывает экстренную помощь при запое и консультации нарколога. Вызов капельницы — это не только удобство, но и важный шаг к здоровью и реабилитации. Мы осознаем, что вызов капельницы является первым шагом к избавлению от алкогольной зависимости. Свяжитесь за наркологической помощью, чтобы получить профессиональную поддержку и начать путь к восстановлению. Не откладывайте свое здоровье на потом — приступайте к действию!} vivod-iz-zapoya-krasnoyarsk008.ru

  13. You can certainly see your skills within the article you write.

    The world hopes for more passionate writers like you who are not afraid to mention how they believe.
    Always follow your heart.

  14. Diplomi_auEn dice:

    купить аттестат 11 класс барнаул [url=arus-diplom22.ru]купить аттестат 11 класс барнаул[/url] .

  15. I used to be able to find good information from your blog
    articles.

  16. PeterCalse dice:

    side effects of cialis: Tadalify – Tadalify

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

  18. Howdy very cool blog!! Man .. Excellent .. Superb .. I will bookmark your site and take the feeds additionally?
    I am glad to find a lot of helpful info right here within the submit, we want develop
    extra techniques on this regard, thanks for sharing. . .
    . . .

  19. macau dice:

    Hey there just wanted to give you a brief heads up and let you know a few of the images aren’t loading
    properly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different web browsers and both show the
    same results.

  20. porb] dice:

    I blog often and I really appreciate your content. This article has really peaked my interest.

    I am going to take a note of your blog and keep checking for new details about once a week.
    I subscribed to your RSS feed too.

  21. подключение интернета по адресу
    krasnoyarsk-domashnij-internet006.ru
    интернет провайдеры по адресу дома

  22. My family members always say that I am wasting my time here at net, except I know I am getting familiarity everyday by reading thes good articles or reviews.

  23. … [Trackback]

    […] Here you will find 97423 more Information to that Topic: politraining.upiita.ipn.mx/infraestructura-como-codigo/ […]

  24. бесплатные прогнозы на ставки [url=https://prognozy-na-sport-8.ru/]https://prognozy-na-sport-8.ru/[/url] .

  25. Thanks for sharing. I read many of your blog posts, cool, your blog is very good.

  26. PeterCalse dice:

    Kamagra reviews from US customers: Compare Kamagra with branded alternatives – Safe access to generic ED medication

  27. Excellent weblog here! Additionally your website a lot up very fast!
    What host are you the usage of? Can I get your
    associate link to your host? I desire my website loaded up as quickly
    as yours lol

  28. togel online dice:

    Ahaa, its nice dialogue concerning this piece of writing at this place at this weblog, I have read all that,
    so at this time me also commenting here.

  29. slot online dice:

    This design is incredible! You most certainly know how to keep a reader amused.

    Between your wit and your videos, I was almost moved to start my own blog
    (well, almost…HaHa!) Wonderful job. I really loved what you had to say, and more than that, how you presented
    it. Too cool!

  30. Thanks for the great info. Appreciate the insights,
    especially since I play on platforms like bos388 regularly.

  31. 구글 아이디 판매, 구글 계정 구매를 고려한다면 반드시 알아야 할 안전한 거래
    방법과 유의사항을 확인하세요.

  32. slot online dice:

    Hi, I do believe this is a great blog. I stumbledupon it
    😉 I’m going to come back once again since I bookmarked it.
    Money and freedom is the best way to change, may you be rich
    and continue to guide others.

  33. I would like to thank you for the efforts you have put in penning this website.
    I’m hoping to view the same high-grade blog posts from you later on as well.
    In fact, your creative writing abilities has motivated me to get my
    own, personal site now 😉

Responder a vivodkrasnoyarskdreno Cancelar respuesta