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: 25,534

  1. Jamesbet dice:

    viagra target pharmacy: MediDirect USA – MediDirect USA

  2. Men are differently furnished with these,熟女 t バックaccording to the differentObjects they converse with.

  3. Roccopully dice:

    reputable indian online pharmacy: Online medicine order – best india pharmacy

  4. It’s an remarkable article in favor of all the internet users; they will get benefit from it I am sure.

  5. bk8 dice:

    I was pretty pleased to discover this site. I want to to thank
    you for ones time due to this wonderful read!! I definitely enjoyed every bit of it and i also have you
    book-marked to look at new information on your site.

  6. Escort Kl dice:

    I’m extremely impressed with your writing
    skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself?

    Anyway keep up the excellent quality writing, it is rare to see
    a nice blog like this one these days.

  7. But in death only,was I fully impressed with the strength of her affection.着物 えろ

  8. I am sure this piece of writing has touched all the internet viewers, its really really good
    article on building up new webpage.

  9. Wonderful article! That is the kind of info that are meant to be shared around the net.
    Disgrace on the seek engines for no longer positioning this publish upper!
    Come on over and seek advice from my web site .
    Thank you =)

  10. And by the way,it does seem something like a coincidence,コス エロ

  11. and continued for many minutes weeping like a child.コスプレ アダルトThe vessel in sight was a large hermaphrodite brig,

  12. the comma after “published every day” was replaced with aperiod.ロボット エロSee page 225 of 1869 book.

  13. Jamesbet dice:

    MediDirect USA: MediDirect USA – bartell drug store pharmacy hours

  14. Hey there would you mind stating which blog platform you’re working with?
    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 seems different then most blogs and I’m looking for something unique.
    P.S Sorry for getting off-topic but I had to ask!

  15. I think that everything said was very reasonable.
    However, what about this? suppose you wrote a catchier post title?
    I am not saying your content is not good., however
    suppose you added something to possibly grab people’s attention?
    I mean Infraestructura como código – Politraining is a little vanilla.
    You ought to glance at Yahoo’s home page and see how they create post titles to grab
    viewers interested. You might try adding a video
    or a picture or two to get readers interested about what you’ve got to say.

    Just my opinion, it would make your posts a little bit more
    interesting.

  16. 脿 leurs amis.鐗?銈ㄣ儹Mais l鈥檋umeur des collectionneurs (et deleurs h茅ritiers) est changeante,

  17. Сервисный центр РемТочка предлагает
    услуги по диагностике, ремонту и обслуживанию компьютерной
    техники. Мы специализируемся на решении любых проблем
    с вашим компьютером, от простых настроек до сложных технических работ.
    Наши опытные специалисты всегда готовы
    помочь вам с любыми вопросами, такими
    как
    ремонт ноутбука связанными
    с компьютерами и программным обеспечением.

  18. 鐗?銈ㄣ儹returned for answer:鈥斺€楾hou art our Lord and we thy slaves,we live one by one in thy power.

  19. Houstonmib dice:

    neoral pharmacy [url=https://medidirectusa.com/#]online pharmacy tetracycline[/url] MediDirect USA

  20. ドレス エロit might notbe worth while.Stubbornness shows itself even more in reluctance tocriticize ends which present themselves than it does in persistence andenergy in use of means to achieve the end.

  21. Miranda dice:

    Westminste Council Plans Late-night Leisure Zones website (Miranda)

  22. roofers dice:

    You really make it seem so easy with your presentation but I find this
    matter to be actually something which I think I would never understand.
    It seems too complicated and very broad for me. I am looking forward for your next post, I
    will try to get the hang of it!

  23. Hi, Neat post. There’s an issue together with your website in web explorer, may check
    this? IE still is the market leader and a big component of
    people will leave out your magnificent writing because of
    this problem.

  24. Pattaya Nightlife 2024 Travellers Information link (https://graph.org/)

  25. вывод из запоя оренбург
    vivod-iz-zapoya-orenburg004.ru
    экстренный вывод из запоя оренбург

  26. 1win_vdoa dice:

    1win скачать на телефон андроид официальный [url=http://1win1164.ru]1win скачать на телефон андроид официальный[/url]

  27. Edwardtrele dice:

    Modern reward platforms are appearing as a trending option for players who want regulated ways to play gaming titles. This piece explains how these sites operate and what sets them appealing to current players.

    How they work

    Promo operators use online tokens to let customers to participate in slots without cash betting of funds. These sweeps coins can often be exchanged for gifts under defined rules. The mechanic builds on promotional schemes that conform with advertising regulations in multiple areas [url=https://locustglen.com/]sweeps casinos[/url]

    Benefits for players

    Gamblers enjoy the reduced-risk setting where they can explore well-known video slots and card games without large cash risk. Many modern reward sites also supply competitive offers such as free plays and bonus credits to assist gambler activity.

    Key things to consider

    When choosing a sweepstakes site, verify license standing and read the rules for withdrawal coins. Look for honest redemption guidelines, random software mechanics, and dependable service. Also consider the accessibility of the service in your location.

  28. Justinstync dice:

    Indian Meds One: Indian Meds One – Indian Meds One

  29. Heya i am for the first time here. I came across 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 helped me.

  30. On doit rapprocher non des détails isolés ou des caractèressecondaires[213],mais des groupes de faits qui se ressemblent par unensemble de caractères.エロ パンスト

  31. ummy dice:

    Videos will be downloaded and converted into MP3 or
    MP4 formats and HD or even full HD resolution.

  32. Ned dice:

    Neews Unique Interviews, Footage & Extra Leisure Tonight
    submit (Ned)

  33. 裸聊网站 dice:

    It’s great that you are getting ideas from this post as well as from our discussion made at this place.

  34. https://stanproperty.com/property/binjai-on-the-park-penthouse-for-sale2/

    Very nice post. I just stumbled upon your blog and wanted to say that I
    have truly enjoyed surfing around your blog posts. After all I will be
    subscribing to your rss feed and I hope you write again soon!

  35. SariXfin dice:

    I’ve been surfing on-line more than three hours nowadays, but I never discovered any fascinating article
    like yours. It is lovely value enough for me. In my view, if all webmasters
    and bloggers made good content as you probably
    did, the net will be much more useful than ever before.

  36. Roccopully dice:

    four corners pharmacy domperidone: viagra online pharmacy europe – MediDirect USA

  37. электрические карнизы для штор в москве [url=http://www.elektrokarnizy-dlya-shtor150.ru]http://www.elektrokarnizy-dlya-shtor150.ru[/url] .

  38. 熟女 t バック) would be as good a proof that they were innate,as tosay they are innate because men assent to them when they come to theuse of reason.

  39. Justinstync dice:

    Indian Meds One: Indian Meds One – Indian Meds One

  40. Frax Swap dice:

    The UI of Frax Swap is intuitive and efficient.

Responder a Jamesbet Cancelar respuesta