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: 20,832

  1. Hello there, just became aware of your blog through Google,
    and found that it’s truly informative. I’m gonna watch out for brussels.
    I will appreciate if you continue this in future.
    Lots of people will be benefited from your writing.
    Cheers!

  2. Asking questions are genuinely nice thing if you are not understanding
    something totally, but this article provides fastidious understanding yet.

  3. Somebody essentially help to make severely articles I’d state.
    This is the very first time I frequented your website page and so far?
    I surprised with the research you made to make this particular publish
    extraordinary. Fantastic process!

  4. toto macau dice:

    I read this article completely about the comparison of most up-to-date and preceding
    technologies, it’s amazing article.

  5. Arthurdut dice:

    Kush Casino offers live tables from Evolution [url=https://childcars.ru/]купить сиалис индийского производства[/url]

  6. Hey, I think your site might be having browser
    compatibility issues. When I look at your blog in Opera, it looks fine
    but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that,
    superb blog!

  7. I have read several good stuff here. Definitely worth bookmarking for revisiting.
    I surprise how much effort you place to make this sort of fantastic informative website.

  8. Spot on with this write-up, I really feel this website needs far more
    attention. I’ll probably be returning to read through
    more, thanks for the information!

  9. meaning,and purpose—the key elements of happiness.ラブドール 販売

  10. We have been helping Canadians Borrow Money Against Their Car Title Since March 2009
    and are among the very few Completely Online Lenders in Canada.

    With us you can obtain a Loan Online from anywhere in Canada
    as long as you have a Fully Paid Off Vehicle that is 8 Years old or newer.

    We look forward to meeting all your financial needs.

  11. My brother suggested I would possibly like this web site.
    He used to be totally right. This put up actually made my day.
    You can not imagine simply how much time I had spent
    for this info! Thank you!

  12. baim4d Login dice:

    Heya i am for the primary time here. I came across this board and I in finding It really useful & it helped
    me out a lot. I am hoping to offer something again and aid others
    like you aided me.

  13. Hi there everyone, it’s my first pay a quick visit at this website, and post is genuinely fruitful in favor of me, keep
    up posting such articles or reviews.

  14. Добро пожаловать в Анлим Казино, мир азартных игр и возможности для побед
    сливаются в идеальную комбинацию.
    Здесь игроки могут выбрать огромное количество игр, включая слоты, рулетку, а также принять участие в турнирах и заработать
    солидные призы. Независимо от уровня опыта, мы предложим лучший игровой
    опыт.

    Анлим Казино предоставляет профессиональное обслуживание и множество способов выигрыша.
    Присоединяйтесь к игрокам, которые уже выигрывают, и успешно участвуйте в акциях.

    Вас ждут щедрые бонусы для увеличения
    ваших шансов на успех.

    Что отличает нас от других казино?

    Моментальная регистрация — начните играть в пару кликов.

    Увлекательные бонусы для новичков — больший шанс на успешный старт.

    Частые турниры и акции — для тех, кто хочет повысить свои шансы на выигрыш и получить дополнительные призы.

    Круглосуточная поддержка — всегда готовы помочь по любым
    вопросам.

    Мобильная версия — играйте в любимые игры в любое время и в любом месте.

    Пришло время выигрывать! Присоединяйтесь к нам и наслаждайтесь
    прямо сейчас. https://unlimclub-jackpot.buzz/

  15. hptoto dice:

    Why users still make use of to read news papers when in this technological world
    everything is available on net?

  16. Hi! I’ve been reading your web site for a long time now and finally got
    the bravery to go ahead and give you a shout out from Atascocita Tx!

    Just wanted to mention keep up the excellent job!

  17. Foi esse o caso durante o embate inaugural entre Casper Ruud e Francisco
    Cerundolo, com o norueguês recebendo ajuda direta de ‘treinadores’ muito especiais.

  18. eoahlg dice:

    To obtain the most out with the card, apply it every visit and track of coupon restrictions and expiration dates. These are the pharmacist who works like a professor or lecture in a medical college; they spend around 50 per cent with their time inside other areas of pharmacy. There is basically no difference between ordering drugs from the drugstore within the United States than through a Canada pharmacy except for that price.
    #lexapro

  19. rent konim dice:

    Very nice article, exactly what I was looking for.

  20. Can you tell us more about this? I’d want to find out more details.

  21. toto macau dice:

    Thanks for the good writeup. It in fact was a entertainment account it.
    Look complicated to far added agreeable from you! By the way, how can we be
    in contact?

  22. ysqlibz dice:

    An online pharmacy is very a help in the embarrassing scenario like this. Important point to become noticed is that cost can’t continually be the first consideration. Strong customer care skills really are a must when handling the hectic pace of your pharmacy or pharmaceutical department.
    #elocon

  23. リアル ラブドールhas exploded in popularity and attention over the past decad This fantasy is extremely popular in online pornography and has garnered significant mainstream attention,particularly as the term “cuck” was co-opted in modern conservative politics.

Responder a ywjjdgfy Cancelar respuesta