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: 22,143

  1. как приобрести программу 1с [url=www.kupit-1s23.ru/]www.kupit-1s23.ru/[/url] .

  2. Thanks for ones marvelous posting! I truly enjoyed reading it, you could be a
    great author. I will remember to bookmark your blog and will come back in the future.
    I want to encourage continue your great posts, have a nice day!

  3. Roof dice:

    It’s in fact very complex in this full of activity life to listen news on TV, therefore
    I just use world wide web for that reason, and obtain the most up-to-date news.

  4. SovrexNova dice:

    Pretty nice post. I just stumbled upon your weblog and wished to say
    that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again very soon!

  5. Genuinely no matter if someone doesn’t understand after that its up to other visitors
    that they will assist, so here it takes place.

  6. toto slot dice:

    Very quickly this website will be famous among all blog users, due to it’s pleasant posts

  7. прогнозы на теннис го спорт [url=https://prognoz-na-segodnya-na-sport9.ru/]https://prognoz-na-segodnya-na-sport9.ru/[/url] .

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

  9. Hi there! I simply want to give you a big thumbs up for the excellent info you’ve got here on this
    post. I am coming back to your blog for more soon.

  10. Ridiculous quest there. What occurred after?
    Take care!

  11. Hurrah! Finally I got a weblog from where I can actually
    take valuable information concerning my study and knowledge.

  12. 비아몰 dice:

    I’ve been exploring for a little for any high quality articles or weblog
    posts on this sort of space . Exploring in Yahoo I at last stumbled upon this site.
    Studying this information So i’m happy to express that I
    have a very just right uncanny feeling I discovered exactly what I needed.
    I so much no doubt will make sure to don?t omit this website and provides
    it a glance regularly.

  13. Top service! Putzfrau kam schnell gefunden und sie war super freundlich.

  14. Vryxo Poder dice:

    These are genuinely fantastic ideas in about blogging.
    You have touched some good points here. Any way keep up wrinting.

  15. 90bola dice:

    Hi there are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started and create
    my own. Do you need any html coding knowledge to make your own blog?
    Any help would be really appreciated!

  16. Rudy dice:

    Hello, after reading this remarkable paragraph i am as well cheerful to share my experience here with mates.

  17. fashion dice:

    Terrific work! That is the kind of information that should be shared
    around the net. Shame on the seek engines for not positioning this put
    up higher! Come on over and seek advice from my website .
    Thank you =)

  18. Greate pieces. Keep writing such kind of info on your page.
    Im really impressed by your blog.
    Hey there, You’ve done an excellent job. I’ll definitely digg it and personally recommend to my friends.
    I’m sure they’ll be benefited from this site.

  19. Hello, Neat post. There is an issue with your web site in web explorer, would check this?
    IE still is the marketplace chief and a large portion of other folks
    will pass over your great writing because of this problem.

  20. health food dice:

    I love your blog.. very nice colors & theme.

    Did you make this website yourself or did you hire someone to do it for you?

    Plz reply as I’m looking to construct my own blog and would like to know where
    u got this from. many thanks

  21. diy dice:

    Heya i’m for the first time here. I came across this
    board and I find It truly useful & it helped me out much.
    I hope to give something back and aid others like you helped me.

  22. This piece of writing will assist the internet users for building up new weblog or even a blog
    from start to end.

  23. I’m really enjoying the design and layout of your blog. It’s a very easy on the eyes which
    makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme?
    Excellent work!

  24. Great delivery. Sound arguments. Keep up the great effort.

  25. Vovan Casino — не просто казино, а настоящий клуб удачи.
    Здесь всё работает на результат:
    от удобной навигации до стабильной работы платёжной
    системы. Воспользуйся возможностью — казино с бесплатными играми — и открой для себя настоящую силу удачи.

    Разнообразие игр Vovan Casino поражает:
    от легендарных слотов до карточных баталий
    с живыми дилерами. Каждый запуск автомата — шанс на
    крупный выигрыш.

    Регулярные акции, розыгрыши и VIP-программы

    Играй где угодно — на смартфоне или планшете

    Служба поддержки помогает без выходных

    Здесь нет случайных побед — только заслуженные награды и яркие
    эмоции https://roslodka.ru/

  26. play288 dice:

    I do not know if it’s just me or if perhaps everybody else encountering problems with your blog.
    It appears as though some of the written text in your posts are
    running off the screen. Can someone else please comment and let me know if this is happening to them too?
    This could be a problem with my web browser because I’ve had this happen before.
    Kudos

  27. setor 123 dice:

    I think this is one of the most vital info for me.
    And i am glad reading your article. But want to remark on few general
    things, The web site style is great, the articles is really great : D.
    Good job, cheers

  28. Opulatrix dice:

    I read this article fully concerning the comparison of most
    up-to-date and earlier technologies, it’s awesome article.

  29. toko123 dice:

    Ahaa, its fastidious discussion on the topic of this article at this
    place at this weblog, I have read all that,
    so now me also commenting at this place.

Responder a www.kimiapembersih.co.id Cancelar respuesta