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: 16,322

  1. Do you һave ɑ spam issue օn tһis site; I alѕo
    am a blogger, ɑnd I wɑs curious аbout your situation; wе
    һave developed some nice procedures аnd ᴡе are ⅼooking to swap strategies ԝith оthers, pⅼease shoot me an email іf interested.

    Also visit my web page Sports Betting

  2. Hello all, here every one is sharing these familiarity,
    thus it’s nice to read this website, and I used to pay
    a quick visit this weblog daily.

  3. imjgxaz dice:

    An online pharmacy is very a help in an embarrassing scenario like this. Before taking any exams essental to their state, they need to pass the Foreign Pharmacy Graduate Equivalency examination (FPGEE), Test of English like a Foreign Language (TOEFL) and Test of Spoken English (TSE) exams. Use those outlines like a roadmap to help you study for that pharmacy tech certification test.

  4. Jamal dice:

    Having read this I thought it was really informative. I appreciate you taking the time
    and effort to put this article together. I once again find myself
    spending a lot of time both reading and posting comments.

    But so what, it was still worth it!

    my web blog 免费A片 (Jamal)

  5. My partner and I stumbled over here from a different web page and thought I
    may as well check things out. I like what I see so i am just following you.
    Look forward to finding out about your web page for a second
    time.

  6. If you desire to improve your familiarity just keep visiting this web page and be updated with the hottest news posted here.

  7. keo nha cai dice:

    Pretty! This was an incredibly wonderful post.
    Many thanks for providing this info.

  8. Williamkeype dice:

    Финансовый кризис — это не только экономическая проблема, но и серьезное испытание для семейных отношений [url=https://sevastopol.su/news/pochemu-banki-prodayut-vashi-dolgi-kollektoram]https://sevastopol.su/news/pochemu-banki-prodayut-vashi-dolgi-kollektoram[/url]

  9. bdtgem dice:

    It could be used by fraudsters gain access to your accounts at a number of financial institutions. The pharmacist technician should have the prepared prescription, reviewed by a pharmacist, before dispensing or submitting the completed order to a patient or customer. If you will get prescriptions monthly make sure your pharmacy has your most up to date prescription insurance information.

  10. 4-aco-dmt dice:

    excellent publish, very informative. I wonder why the other experts of
    this sector don’t notice this. You must continue your writing.
    I’m sure, you have a great readers’ base already!

  11. This was really informative. I’ve been dealing with urinary issues for a while now,
    and I’ve been hesitant to try supplements. The fact that Prostavive is all-natural and plant-based makes me feel a lot more confident about giving it a shot.

  12. If some one wishes to be updated with newest technologies after that he must be pay
    a visit this website and be up to date all the time.

  13. Excellent weblog right here! Additionally your website quite
    a bit up very fast! What host are you using?
    Can I am getting your affiliate hyperlink to your host? I want my web site loaded up as quickly as yours lol

  14. IvanMen dice:

    Компания предлагает полный спектр услуг по ритуальные услуги москва

    [b]Перейти[/b] – https://plitkastroy33.ru/articles/ritualnye-uslugi-moskva/

  15. I savour, result in I found exactly what I used to be taking
    a look for. You’ve ended my 4 day long hunt! God Bless you man. Have a great day.
    Bye

  16. imxsqwl dice:

    There are two ways to become a pharmacist technician, getting certified or registered from your state. College pre-pharmacy study as little as being a day or two and will still pass the exam. So being a buyer, you need to identify a realistic online pharmacy that is certainly licensed and sells only Food and Drug Administration (FDA) approved medicines.

  17. When someone writes an paragraph he/she keeps the idea of a
    user in his/her brain that how a user can be aware
    of it. Therefore that’s why this article is outstdanding.
    Thanks!

    https://execumeet.com/

  18. iptv dice:

    Thankfulness to my father who stated to me about this web
    site, this website is really awesome.

  19. I have read so many articles about the blogger lovers however this paragraph is in fact a pleasant
    article, keep it up.

Responder a olxtoto login Cancelar respuesta