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: 17,517

  1. Aw, this was an incredibly good post. Spending some time and actual effort to produce a really
    good article… but what can I say… I procrastinate a lot and don’t
    seem to get nearly anything done.

  2. xnfhehv dice:

    There are two ways being a pharmacist technician, getting certified or registered by your state. These are the pharmacist who works being a professor or lecture in a medical college; they spend around 50 per cent of these time inside other areas of pharmacy. There is basically no difference between ordering drugs coming from a drugstore inside United States than via a Canada pharmacy except for that price.

  3. Wow that was unusual. I just wrote an extremely long comment but after I clicked submit my comment
    didn’t appear. Grrrr… well I’m not writing all that over again. Regardless, just
    wanted to say superb blog!

  4. tfimdt dice:

    Most patients were paying a high income for their insurance and were often upset when their prescriptions required a $50 co-pay, or that they not met their $4,000 deductable and must give the entire cost out-of-pocket. As a little entrepreneur, when is it time to raise prices like Netflix. Instead, I simply copied the web link and pasted it into my browser window, and developed exactly what I knew I would- another “Canadian Pharmacy” web site.

  5. It’s going to be finish of mine day, except before ending I am reading this great piece
    of writing to increase my knowledge.

  6. Hi there! Would you mind if I share your blog with my twitter group?
    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Many thanks

  7. Hi there to every one, the contents present at this website are
    really remarkable for people experience, well, keep
    up the nice work fellows.

  8. vfwmazw dice:

    In order to be eligible for federal loans a Free Application for Federal Student Aid (FAFSA) must be completed and aid is granted based upon student need, tuition rates with the college, as well as other factors. Fear not, with time you will know just how to handle different varieties of problems that comes about. You should find these records somewhere inside “Contact Us” section of the website.

  9. slot spam dice:

    Slotnya cocok buat support.

  10. whoah this weblog is fantastic i love reading your posts. Keep up the
    great work! You realize, lots of individuals are hunting around for
    this information, you could help them greatly.

  11. djsmlxyd dice:

    Location and the form of employer would be the final factors in determining the amount pharmacists make. When I asked the tech about it new action she stated that yes, it is a fresh policy understanding that it is a “law” that every pharmacies must adhere to. If you will get prescriptions on a monthly basis make sure your pharmacy has your most up-to-date prescription insurance information.

  12. sleeper sofa dice:

    Excellent post! We will be linking to this great article on our
    site. Keep up the great writing.

  13. At this time I am going away to do my breakfast, when having
    my breakfast coming yet again to read more news.

  14. After looking at a number of the blog posts on your web site,
    I honestly appreciate your way of blogging.

    I book marked it to my bookmark website list and will be checking back in the near future.
    Please check out my website as well and let me know how you feel.

  15. CharleyFlery dice:

    Fifty Shades of Grey (2015 ) is based on the best-selling novel of the same name by Erica Leonard James [url=https://www.vdsv.ru/]50 оттенков серого смотреть онлайн[/url]

Responder a how to hack riddle master Cancelar respuesta