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: 80,650

  1. aviator game [url=http://aviator-game-best.com/]aviator game[/url] .

  2. slot 5000 dice:

    Aw, this was a really good post. Finding the time and actual effort to generate a very good article… but what can I say… I put things off a lot and
    don’t manage to get nearly anything done.

  3. MartinJaify dice:

    StromectaDirect: ivermectin trial – best pharmacy buy Stromectol

  4. TimothyBruth dice:

    IndiavaMeds [url=https://indiavameds.xyz/#]IndiavaMeds[/url] medicines online india

  5. aviator bonus game [url=https://www.aviator-game-cash.com]https://www.aviator-game-cash.com[/url] .

  6. MartinJaify dice:

    guinea pig ivermectin: best pharmacy buy Stromectol – Stromectol tablets

  7. I’ve been exploring for a little for any high quality articles or weblog posts on this sort of house .
    Exploring in Yahoo I finally stumbled upon this site.
    Studying this info So i am happy to exhibit that I have a very excellent uncanny feeling I discovered just what I needed.
    I most unquestionably will make sure to don?t fail to remember
    this website and give it a glance on a continuing basis.

  8. кухни на заказ спб [url=http://kuhni-spb-12.ru/]кухни на заказ спб[/url] .

  9. MartinJaify dice:

    prednisone price: Prednexa Med – Prednexa Med

  10. кухни на заказ в санкт-петербурге [url=https://kuhni-spb-9.ru/]https://kuhni-spb-9.ru/[/url] .

  11. MartinJaify dice:

    buy ivermectin online: buy ivermectin online – buy ivermectin online

  12. кухни спб на заказ [url=http://www.kuhni-spb-11.ru]http://www.kuhni-spb-11.ru[/url] .

  13. umzugsunternehmen hannover

    Have you ever thought about including a little
    bit more than just your articles? I mean, what you say
    is fundamental and all. But think about if you added
    some great visuals or videos to give your posts more,
    “pop”! Your content is excellent but with images and video clips, this website
    could undeniably be one of the best in its field. Wonderful blog!

  14. toto slot 4d dice:

    Hello there! I could have sworn I’ve visited this site before but
    after looking at many of the articles I realized it’s new to
    me. Nonetheless, I’m definitely pleased I found it and I’ll
    be book-marking it and checking back regularly!

  15. 555 win dice:

    If you are going for finest contents like I do, simply go to see this site all the time as it offers quality contents,
    thanks

  16. app 888p dice:

    Undeniably believe that which you stated.

    Your favorite justification appeared to be on the net the easiest thing to be
    aware of. I say to you, I definitely get annoyed while people consider
    worries that they just do not know about. You managed to hit the nail
    upon the top and also defined out the whole thing without having side effect , people can take a signal.
    Will likely be back to get more. Thanks

  17. кухни под заказ спб [url=kuhni-spb-9.ru]kuhni-spb-9.ru[/url] .

  18. Hey! Do you know if they make any plugins to safeguard against hackers?
    I’m kinda paranoid about losing everything I’ve worked hard on. Any tips?

  19. 1win_kg_pyPl dice:

    lucky jet скачать на айфон играть luckyjetslot [url=http://1win5521.ru]http://1win5521.ru[/url]

  20. MartinJaify dice:

    buy prednisone: Prednexa Med – Prednexa Med

  21. I’ve been surfing online more than 3 hours as of late, yet I never discovered any attention-grabbing article like yours.
    It’s pretty price sufficient for me. Personally, if all
    website owners and bloggers made just right content as you did, the
    net shall be a lot more helpful than ever before.

  22. aviator game [url=https://www.aviator-game-best.com]aviator game[/url] .

  23. 1win_kg_oiPl dice:

    ван вин регистрация [url=www.1win5521.ru]ван вин регистрация[/url]

  24. изготовление кухонь на заказ в санкт петербурге [url=www.kuhni-spb-11.ru]www.kuhni-spb-11.ru[/url] .

  25. MartinJaify dice:

    PrednexaMed: buy prednisone – buy prednisone

  26. Yupoo Fendi dice:

    Hi there, I discovered your blog by the use of Google
    whilst searching for a similar topic, your site came up, it appears to be like good.
    I have bookmarked it in my google bookmarks.

    Hello there, simply became aware of your weblog through Google, and found that it’s really informative.

    I am going to watch out for brussels. I will be grateful should you continue this in future.
    Lots of people shall be benefited out of your writing.
    Cheers!

  27. TimothyBruth dice:

    prednisone price [url=https://prednexamed.com/#]Prednexa Med[/url] PrednexaMed

  28. Hello, after reading this awesome post i am also cheerful to share my knowledge
    here with colleagues.

  29. web scam dice:

    Thank you for the good writeup. It if truth be told was a amusement account it.
    Glance complicated to far brought agreeable
    from you! By the way, how could we keep up a correspondence?

  30. win crash game [url=https://aviator-game-cash.com/]win crash game[/url] .

  31. Normally I do not read article on blogs however I would like to say that this writeup very forced me to try and do so Your writing style has been amazed me Thanks quite great post

  32. Heya i am for the first time here. I found this board and I find
    It really helpful & it helped me out a lot. I’m hoping to present one thing
    back and help others such as you aided me.

  33. изготовление кухонь на заказ в санкт петербурге [url=http://kuhni-spb-12.ru/]изготовление кухонь на заказ в санкт петербурге[/url] .

Responder a delivery from China Cancelar respuesta