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: 27,977

  1. Hey! This is my first visit to your blog! We are a collection of volunteers and starting a new project
    in a community in the same niche. Your blog provided us beneficial information to work on.
    You have done a marvellous job!

    https://w10.datahkg6d.info/

  2. 1win_pikt dice:

    bonus 1win [url=http://1win22097.ru/]http://1win22097.ru/[/url]

  3. RADEN 99 dice:

    you’re really a good webmaster. The website loading pace is incredible.
    It sort of feels that you are doing any distinctive trick.
    Also, The contents are masterwork. you have performed a
    fantastic task on this matter!

  4. Ꮤhat’s սp to every one, thе cⲟntentѕ present аt this ԝeb pagе are actually awesomе foor people experience, wеll, keep
    uρ the nice work fellows.

  5. ElijahCah dice:

    SildenaPeak: SildenaPeak – SildenaPeak

  6. Bookmarks dice:

    Refresh Renovation Southwest Charlotte
    1251 Arrow Pine Ꭰr c121,
    Charlotte, NC 28273, United States
    +19803517882
    Bookmarks

  7. Just wish to say your article is as amazing. The clarity in your post is just
    excellent and i could assume you are an expert on this subject.
    Fine with your permission let me to grab your RSS feed
    to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.

  8. icon theme dice:

    Heⅼlo mates, its wonderful paragrap about еducationand completely defined, keep it up aall the time.

  9. RobertBat dice:

    SildenaPeak [url=https://sildenapeak.com/#]SildenaPeak[/url] viagra online rx pharmacy

  10. Sharri dice:

    RepairCdDvD 2.7 is a data recovery program for damaged CD, DVD media,recover data from corrupted dvd. The program is effective when the discs are scratched or badly recorded CD, DVD. The work of the program is risk-free. The process of repairing disks is write as an ISO image. RepairCdDvD v2.7 software to Recover Data from scrached and bad error on CD,DVD include CD+R/RW,DVD+R/RW. https://repaircddvd.com

  11. plinko kz [url=http://plinko-kz2.ru/]http://plinko-kz2.ru/[/url]

  12. RichardSof dice:

    SildenaPeak: buy viagra online canada – viagra from india for sale

  13. Danielrob dice:

    https://tadalify.com/# how to get cialis prescription online

  14. Generally I don’t learn post on blogs, however I
    wish to say that this write-up very compelled me to try and do it!
    Your writing taste has been amazed me. Thank you, quite
    nice article.

  15. Please let me know if you’re looking for a article
    writer for your site. You have some really great posts and I feel I would be a good asset.

    If you ever want to take some of the load off,
    I’d absolutely love to write some material for your blog in exchange for a link back to mine.
    Please send me an email if interested. Cheers!

  16. ElijahCah dice:

    best generic viagra: SildenaPeak – viagra online order india

  17. The content is detailed and the layout is also very comfortable. It is a rare good article!

  18. It’s great! The author spent a lot of time and thought, and the content is completely dry goods. I hope to continue to produce!

  19. Thanks for sharing your thoughts. I really appreciate your efforts and I am
    waiting for your next write ups thanks once
    again.

  20. Hi there, its fastidious paragraph regarding media print, we all understand media is a fantastic source of information.

  21. stavkiprognozy [url=http://www.stavki-prognozy-1.ru]http://www.stavki-prognozy-1.ru[/url] .

  22. Attractive element of content. I simply stumbled upon your web site and in accession capital to claim that I acquire in fact enjoyed account your blog
    posts. Any way I’ll be subscribing for your feeds and even I success you get admission to constantly fast.

  23. good-humoured,andconsiderate companion and housekeeper,えろ 人形

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

  25. he resolvedto govern himself according to his remonstrances,せっくす どー るfar fromconceiving the least spark of animosity against he looked uponthe poor boy as the innocent cause of his disgrace,

  26. Amazing blog! Is your theme custom made or did you download it from
    somewhere? A design like yours with a few simple tweeks would really make
    my blog jump out. Please let me know where you got your design. Thanks a lot

  27. And inthe meanwhile there were plenty of places where she could sit quietlyaway from them and remember.Also there was her own sitting-room,フィギュア オナホ

  28. melbet_arKr dice:

    тото мелбет [url=https://www.melbet3006.com]тото мелбет[/url]

  29. particularly at weddings and christenings,ラブドール 最 高級I compute thatDublin would take off annually about twenty thousand carcasses,

  30. 高級 ラブドールA horrble,portentous fact was slowly loomng out before herfrom the nebula of surmse and fear.

  31. провайдеры интернета в красноярске по адресу
    krasnoyarsk-domashnij-internet004.ru
    узнать интернет по адресу

  32. RichardSof dice:

    SildenaPeak: SildenaPeak – how to get viagra tablets

  33. вывод из запоя цена
    vivod-iz-zapoya-smolensk012.ru
    вывод из запоя смоленск

  34. 高級 ラブドールYou thnk ,m a blunt oldcurmudgeonand my letters are blunt enough.

  35. Howdy! Someone in my Facebook group shared this website with us so I came to
    look it over. I’m definitely enjoying the
    information. I’m book-marking and will be tweeting this to my followers!

    Great blog and brilliant design and style.

  36. Howdy, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam feedback?
    If so how do you protect against it, any plugin or anything you can suggest?

    I get so much lately it’s driving me crazy so any support
    is very much appreciated.

  37. igtoto link dice:

    I’m not sure why but this blog is loading very slow
    for me. Is anyone else having this issue or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

  38. Wow, incredible blog layout! How long have you been blogging
    for? you make blogging look easy. The overall look
    of your web site is magnificent, let alone the content!

  39. Today, I went to the beach with my children. I found a sea shell and gave it
    to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear
    and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  40. せっくす どー るand soartfully did Fathom in the meantime manage the influence he had alreadygained over her heart,before her passion could obtain a legalgratification,

  41. Bookmarks dice:

    Refresh Renovation Southwest Charlotte
    1251 Arrow Pine Ɗr c121,
    Charlotte, NC 28273, United Ꮪtates
    +19803517882
    Bookmarks

Responder a canada drug Cancelar respuesta