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,426

  1. Good info. Lucky me I found your website by chance
    (stumbleupon). I have book-marked it for later!

  2. I’m not certain the place you are getting your information, but great topic.
    I must spend some time finding out much more or figuring out more.
    Thank you for great info I was in search of this info for my mission.

  3. Currently it seems like Expression Engine is the best blogging platform out there right now.
    (from what I’ve read) Is that what you’re using on your blog?

  4. It’s very straightforward to find out any matter on net
    as compared to books, as I found this post at this
    site.

  5. エロ コスチュームFor under such conditions,the school becomes itself a form of social life,

  6. Hey I am so excited I found your blog page, I really found you by
    accident, while I was searching on Bing for something else, Anyways I am here now and would just like to say many thanks for a incredible post and a all round entertaining blog (I also love the
    theme/design), I don’t have time to browse it all at the moment but I have saved it and also included your RSS feeds, so when I have
    time I will be back to read a lot more, Please do keep up the awesome work.

  7. Escort KL dice:

    Reliable knowledge Cheers.

  8. ProDentim dice:

    ProDentim is receiving a lot of positive feedback for
    its unique approach to oral health by supporting the balance of
    good bacteria in the mouth. Many users report fresher breath, healthier gums, and whiter teeth after regular
    use. It’s an interesting choice for those wanting to improve dental wellness from
    the inside out.

  9. My programmer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the costs. But he’s tryiong none the less.
    I’ve been using Movable-type on several websites for
    about a year and am anxious about switching to another platform.
    I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress content into it?
    Any kind of help would be greatly appreciated!

  10. Jamesgek dice:

    ?Que piensan?

    Gente, ?alguien sabe — donde retirar sin pasaporte? Estoy jugando aqui: [url=ebingo-casino.com]Registrate y juega[/url]

    Verificacion sencilla

    VPN no necesario, todo funciona

  11. エロ コスチュームeven though theirsocial bearing may not be thought of at the time of performance.Forevery act,

  12. 1с бухгалтерия облако цена https://1c-oblako-msk.ru

  13. ベビー ドール エロbut cultivated various arts and even sciences after a fashion of their own.It is related of them that they were acute in many respects,

  14. Jamesbet dice:

    MediDirect USA: MediDirect USA – online pharmacy vardenafil

  15. My spouse and I stumbled over here by a different page and thought I might check things
    out. I like what I see so now i am following you.
    Look forward to exploring your web page for a second time.

  16. upon the receipt ofany injury,with a present purpose of reveng1 Envy.海外 コスプレ えろ

  17. 1wiN dice:

    Официальный Telegram канал 1win Casinо. Казинo и ставки от 1вин. Фриспины, актуальное зеркало официального сайта 1 win. Регистрируйся в ван вин, соверши вход в один вин, получай бонус используя промокод и начните играть на реальные деньги.
    https://t.me/s/Official_1win_kanal/4421

  18. Thanks for finally writing about > Infraestructura como código – Politraining < Liked it!

  19. Attractive component of content. I just stumbled upon your
    website and in accession capital to say that I get in fact loved account your weblog posts.
    Any way I’ll be subscribing in your augment and even I success you get right of entry to consistently quickly.

  20. I think the admin of this web site is in fact working hard in favor of his site,
    since here every material is quality based stuff.

  21. Roccopully dice:

    reputable indian pharmacies: reputable indian pharmacies – Indian Meds One

  22. 鐗?銈ㄣ儹Bilwa鈥擳he bel treBish茅swar鈥擜 name of Siva,alluding to his having swallowed poison.

  23. u31 com dice:

    I could not resist commenting. Very well written!

  24. ozInaph dice:

    [b][url=https://momspace.ru/articles/pervyye-priznaki-beremennosti-do-zaderzhki-chto-vazhno-znat/]первый признак беременности до задержки[/url][/b]

    Может быть полезным: https://momspace.ru/articles/son-na-zhivote-pri-beremennosti-chto-dopustimo-a-chto-uzhe-net/ или [url=https://momspace.ru/23-nedelya-beremennosti/]беременность 23 недели норма[/url]

    [b][url=https://momspace.ru/vitaminy-planirovanie-beremennosti/]какие витамины при планировании беременности[/url][/b]

  25. non la conception réelle; dans lesinstitutions les règles officielles,エロ パンストnon la pratique réelle.

  26. Alien Matrix EA is drawing interest for its advanced approach to automated trading.
    Many users like how it analyzes market trends and executes trades with precision, aiming to maximize profits while reducing manual effort.
    It seems like a solid choice for traders looking to leverage technology for
    smarter investing.

  27. Justinstync dice:

    fluconazole pharmacy: MediDirect USA – MediDirect USA

  28. This site was… how do you say it? Relevant!!
    Finally I have found something that helped me.
    Thanks!

  29. Hey would you mind letting me know which hosting company you’re using?
    I’ve loaded your blog in 3 different browsers and I
    must say this blog loads a lot faster then most. Can you recommend a good web hosting provider at a honest price?
    Thank you, I appreciate it!

  30. вывод из запоя круглосуточно краснодар
    vivod-iz-zapoya-krasnodar006.ru
    лечение запоя краснодар

  31. and marched up to the barn to the utteramazement of the old man!” [Illustration: She took the saddle to the horse]”Did she ride the horse?””Of course she did,エロ ロボットand had a capital time.

  32. jepang88 dice:

    Good article. I’m dealing with a few of these issues as well..

  33. 2o Il ne faut jamais confondre les faits tirés directement de l’examendes documents avec les résultats d’un raisonnemen Quand on affirme unfait connu seulement par raisonnement,エロ パンストon ne doit pas laisser croirequ’on l’ait trouvé dans les documents,

  34. Hey there! Do you know if they make any plugins to assist with SEO?

    I’m trying to get my blog to rank for some targeted keywords but
    I’m not seeing very good success. If you know of any please share.

    Thanks!

  35. But after all my adventures,アジア えろI feltsomehow ashamed.

  36. and I was forced to give place to others.アジア えろOverwhelmedby this fresh blow,

  37. 토닥이 dice:

    토닥이는 여성전용마사지 서비스로, 많은 고객들의 꾸준한 선택을 받고 있습니다.
    외모는 물론 예의와 태도까지 겸비한
    전문 매니저들이 고객 한 분 한 분에게 최적화

  38. [237] Parole attribuée à ?un professeur de la Sorbonne? par M.エロ パンストde la Blanchère,

  39. and ye shall find;knock,and it shall be opened unto you.アダルト フィギュア 無 修正

Agrega tu comenatio