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: 14,850

  1. xtumnpjh dice:

    There are two ways being a pharmacist technician, getting certified or registered from your state. College pre-pharmacy study as little being a day or two and will still pass the exam. If possible try to use exactly the same pharmacy as much as possible.
    https://www.07acg.com/node/40094

  2. I really valued the manner this was written.

  3. nbjadf dice:

    The pharmaceutical industry especially can’t afford to allow its practitioners to delay or refuse treating clients due for the perceived usage of any medical device, it could be a pill or a syringe. You may additionally check out “Physician Assistant Is a Top Healthcare Career. They also can check with doctors to authorize refills, and enter drug information to the computer.
    https://agriconnect.nl/netwerk/lunesta-get-online

  4. WilliamRah dice:

    Это игра стрелялка основанная на максимальной реалистичности игрового геймплея [url=https://ecogamer.ru/luchshie-igry/privatnye-chity-ot-wh-satano-preimushhestva-priobreteniya/]https://ecogamer.ru/luchshie-igry/privatnye-chity-ot-wh-satano-preimushhestva-priobreteniya/[/url]

  5. Thanks for publishing. It’s excellent.

  6. Fantastic goods from you, man. I have understand your
    stuff previous to and you are just extremely wonderful.
    I really like what you’ve acquired here,
    really like what you are stating and the way in which you say it.
    You make it entertaining and you still care for to keep it wise.
    I can not wait to read far more from you. This is actually a great site.

  7. I genuinely appreciated the style this was presented.

  8. Such a valuable bit of content.

  9. Appreciate this post. Let me try it out.

  10. mxkyho dice:

    To obtain the most out of the card, put it to use every visit and keep track of coupon restrictions and expiration dates. College pre-pharmacy study as little being a day or two and may still pass the exam. There is really no difference between ordering drugs from the drugstore inside United States than by way of a Canada pharmacy except for your price.
    http://ph-ed-plus.nspu.ru/article/17770

  11. I particularly appreciated the approach this was presented.

  12. 55KBET LOGIN dice:

    You’re so cool! I do not suppose I have read through a single thing like this before.
    So nice to find someone with some original thoughts on this
    subject. Really.. many thanks for starting this up.
    This web site is one thing that is needed on the
    internet, someone with some originality!

  13. I highly recommend JP-Dolls for anyone looking for a high-quality,After much research,ラブドール 中古

  14. I discovered useful points from this.

  15. Soon dice:

    Good post. I am dealing with many of these issues as well..

  16. Mark Martin dice:

    I found new insight from this.

  17. mm99 dice:

    I’m extremely inspired together with your writing
    abilities and also with the layout in your weblog.
    Is this a paid subject matter or did you customize it your self?

    Either way stay up the excellent quality writing,
    it’s uncommon to see a nice blog like this one these days..

  18. hlatec dice:

    The answering services company company later changed its name to e – Telecare Global Soltions in 2004. The holding, the transfers, the newest rules and also the mail-order requirements. This is a common occurrence as January 1 kicks off a fresh year of pharmacy benefits and beneficiaries are stuck (with minor exceptions needless to say called qualifying life events or QLEs) before the next open enrollment season in November.
    https://tojuzbylo.pl/node/9295

  19. Paul Johnson dice:

    More posts like this would make the web more useful.

  20. Yes! Finally someone writes about news.

  21. VIN777 dice:

    What’s up to every body, it’s my first pay a visit of this blog; this web site contains
    awesome and truly fine information designed for visitors.

  22. The depth in this article is noteworthy.

  23. Daniel Jones dice:

    I truly enjoyed the approach this was presented.

  24. brjmqpv dice:

    Pharmacy technicians also do not provide advice to patients about medication options, side effects, or another drug information. Screaming, yelling, demanding things, or becoming rude won’t help the situation. According for the Bureau of Labor Statistics (BLS), pharmacists execute a lot greater than provide prescription medications to patients.
    http://wap.ztpbazar.cz/content/lipitor-order-online

  25. I particularly liked the style this was laid out.

  26. Arthur Evans dice:

    This is the kind of post I find helpful.

  27. I really liked the style this was presented.

  28. I took away a great deal from this.

  29. zrmybcxu dice:

    The pharmaceutical industry especially cannot afford to allow its practitioners to delay or refuse management of clients due on the perceived usage of any medical device, it could be a pill or even a syringe. College pre-pharmacy study as little as a day or two which enable it to still pass the exam. So as a buyer, you need to identify a realistic online pharmacy that is certainly licensed and sells only Food and Drug Administration (FDA) approved medicines.
    https://www.geofak85.ru/himcolin-order-web

  30. Wonderful post! We are linking to this great article on our site.

    Keep up the good writing.

  31. I’ll certainly recommend this.

  32. 55KBET LOGIN dice:

    I love your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you?
    Plz respond as I’m looking to design my own blog and would like to find out where u got
    this from. kudos

  33. Henry Evans dice:

    Thanks for sharing. It’s top quality.

  34. Just desire to say your article is as surprising.

    The clearness in your post is simply nice and i could assume you are
    an expert on this subject. Fine with your permission let me to grab your feed to keep
    up to date with forthcoming post. Thanks a million and please keep up the rewarding work.

  35. cllwsfvs dice:

    To obtain the most out with the card, put it to use every visit and make track of coupon restrictions and expiration dates. To find degree programs that train you for the career as a pharmacy technician, it is possible to check out the Directory of Schools website at directoryofschools. They also can check with doctors to authorize refills, and enter drug information in to the computer.
    https://cadel.ru/retino-acquire-online

  36. Hello, Neat post. There is an issue along with your site in internet explorer, might test this?
    IE nonetheless is the marketplace chief and a large portion of other folks will pass over your fantastic writing due
    to this problem.

  37. The depth in this write-up is commendable.

  38. I like what you guys tend to be up too. Such clever work and
    exposure! Keep up the terrific works guys I’ve included you guys to my personal blogroll.

  39. I took away a great deal from this.

  40. keonhacai dice:

    Heya i am for the primary time here. I found
    this board and I to find It truly useful & it helped me out much.

    I’m hoping to provide something back and aid others
    such as you helped me.

  41. jdxiyp dice:

    We were going to the big city to determine a doctor, therefore it made sense. Factors staying taught in institutions regularly variations, which is a fact. Make certain you take enough time to ask about a more affordable version so they will look at the list.
    http://hr-life.ru/node/53655

  42. Thanks for putting this up. It’s well done.

  43. Bianca dice:

    When I originally commented I seem to have clicked on the -Notify me when new comments are added- checkbox
    and from now on each time a comment is added I get
    4 emails with the exact same comment. Is there a way you are able to remove me
    from that service? Thanks a lot!

  44. Henry Taylor dice:

    The thoroughness in this article is praiseworthy.

  45. Ian Taylor dice:

    You’ve obviously put in effort.

Responder a биткойн инвестиции Cancelar respuesta