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: 18,589

  1. cagliari dice:

    Hi! Someone in my Myspace group shared this site 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! Fantastic blog and brilliant style and design.

  2. portiva.com dice:

    This design is spectacular! You definitely know how to keep a reader amused.
    Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!)
    Fantastic job. I really loved what you had to say, and more than that, how you presented it.
    Too cool!

  3. I constantⅼy spent my half an hour to гead thjs website’s posts every day along with a cup of ϲoffee.

  4. urxrecvw dice:

    “(3) The Washington Post(4) commemorated the closing with a write-up that contained just a little of Schadenfreude. The last volume of the certified local pharmacy professional training program takes a twelve month preparation software and also as soon because completing the specific tutorials you may purchase an associates education. The application deadline is in late April, but it’s best to apply much sooner.
    Buy Lipitor online

  5. типография официальный сайт типография

  6. fmcggxld dice:

    The moon sheds her subtle impact on all of the, adding on the variables. These will be the pharmacist who works as being a professor or lecture in any medical college; they spend around 50 per cent with their time in the other areas of pharmacy. However, by exercising with adequate practice pharmacy technician test questions we have better odds of being successful.
    Losartan mail-order pharmacy

  7. vavada login dice:

    Great goods from you, man. I have understand your stuff previous to
    and you’re just extremely excellent. I actually like what you have acquired here, really
    like what you are saying and the way in which you
    say it. You make it entertaining and you still take care of
    to keep it sensible. I cant wait to read far more from you.
    This is really a wonderful website.

  8. slot mpo dice:

    bookmarked!!, I love your web site!

  9. ea sports dice:

    Hey there just wanted to give you a quick heads up. The words in your post seem to be running off the screen in Firefox. I’m not sure if this is a format issue or something to do with browser compatibility but I thought I’d post to let you know. The layout look great though! Hope you get the problem resolved soon. Cheers

  10. situs bokep dice:

    I want to to thank you for this fantastic read!! I definitely
    loved every bit of it. I have you book-marked to check out new things you post…

  11. slot 5000 dice:

    I am now not positive where you’re getting your info, however great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for wonderful information I used to be searching for this information for my
    mission.

  12. Thanks for the auspicious writeup. It if truth be told used to be a leisure
    account it. Glance complicated to far added agreeable from
    you! However, how could we be in contact?

  13. With havin so much content and articles do you ever run into any
    problems of plagorism or copyright violation? My site has a lot of unique content I’ve either authored
    myself or outsourced but it looks like a lot of it is popping it up all over the web without my agreement.

    Do you know any ways to help stop content from being
    stolen? I’d really appreciate it.

  14. hptoto dice:

    Hey very interesting blog!

  15. and were now going to his sepulchre.irontech dollThese womenhad rested over the Sabbath as the Law required,

  16. Visit dice:

    You are so interesting! I don’t believe I’ve read a single thing like that before.
    So nice to find someone with a few genuine thoughts on this subject.
    Seriously.. many thanks for starting this up. This website is one thing that is required on the web, someone with a little originality!

  17. lqzoxtnl dice:

    It is important to note that doesn’t every pharmacy technician receives such a low wage knowning that when employed in private pharmacies, it is more than likely that one receives a wage of $17 hourly minimum. When I asked the tech about it new action she stated that yes, it is a brand new policy understanding that it can be a “law” that pharmacies must adhere to. They are also in charge of inspecting the operational control over dispensary and manufacturing units and providing a platform to further improve the pharmacists’ role to prescribe medicine independently.
    Buy over-the-counter drugs online

  18. Remarkable! Its genuinely remarkable piece of writing, I have got much clear idea on the topic of from this paragraph.

  19. 線上A片 dice:

    It’s the best time to make some plans for the future and it’s time to be happy.
    I have read this post and if I could I wish to suggest you few interesting things or suggestions.

    Maybe you could write next articles referring to this article.

    I desire to read more things about it!

    Also visit my blog – 線上A片

  20. zlibrary dice:

    Do you have a spam issue on this website; I also am a blogger, and I was curious about your situation; we have created some nice practices and we are looking to trade techniques
    with other folks, please shoot me an e-mail if interested.

  21. bandar togel dice:

    I think the admin of this site is actually working hard in favor of his website,
    because here every stuff is quality based material.

  22. mqvkwdge dice:

    To maximum benefit out of the card, put it to use every visit and keep track of coupon restrictions and expiration dates. The above image shows that a secure protocol ( is being used from the fraudster. However, by exercising with adequate practice pharmacy technician test questions we’ve got better chances of being successful.
    Order Amlodipine from an online pharmacy

  23. fpwgedlj dice:

    Most patients were paying big money for their insurance and were often upset when their prescriptions required a $50 co-pay, or they’d not met their $4,000 deductable and must spend the money for entire cost out-of-pocket. Ask the managers of the places in which you enjoy shopping if they feature these varieties of programs, in the event you aren’t already frequenting CVS and Winn-Dixie. According for the Bureau of Labor Statistics (BLS), pharmacists execute a lot more than provide medications to patients.
    Online pharmacy for skincare products

  24. Do you have a spam problem on this site; I also am a blogger, and I was curious about your situation; many
    of us have developed some nice procedures and we are looking to exchange solutions with others, why
    not shoot me an e-mail if interested.

  25. ypbcqqp dice:

    It could be used by fraudsters to gain access to your accounts at a variety of financial institutions. When I asked the tech about it new action she stated that yes, it is a fresh policy understanding that it can be a “law” that pharmacies must adhere to. They are also accountable for inspecting the operational control over dispensary and manufacturing units and providing a platform to further improve the pharmacists’ role to prescribe medicine independently.
    #promethazine

  26. Definitely consider that which you said. Your favourite justification seemed to be at
    the net the simplest thing to remember of. I say to you,
    I certainly get irked at the same time as people think about issues that they plainly do not understand about.
    You managed to hit the nail upon the highest and defined out the entire thing without having side
    effect , other people could take a signal. Will probably
    be again to get more. Thank you

  27. I really like your blog.. very nice colors & theme. Did you design this
    website yourself or did you hire someone to do it for you?
    Plz reply as I’m looking to create my own blog and would like to
    know where u got this from. appreciate it

  28. rskmjkxn dice:

    To make the most out of the card, utilize it every visit and track of coupon restrictions and expiration dates. To find degree programs that train you for a career being a pharmacy technician, you’ll be able to check out the Directory of Schools website at directoryofschools. If possible try to use the same pharmacy just as much as possible.
    Prescription allergy medications online

  29. Hi there, 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 stop it, any plugin or anything you can recommend?
    I get so much lately it’s driving me insane so any assistance
    is very much appreciated.

  30. Way cool! Some extremely valid points! I appreciate you penning this write-up plus the rest
    of the website is extremely good.

  31. canadian approved online casinos, united kingdom poker texas holdem and
    does united states have should i invest in casinos, or new casino
    slot sites usa

  32. kiegpkw dice:

    Most patients were paying a nice 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 pay for the entire cost out-of-pocket. In 1960, the Ayala Group of Companies offered Mariano Que a space to lease in the shopping center that has been about being developed within the heart of Makati. After you filled in the account, you are going to now decide on a payment scheme.
    Prescription transfer online

Agrega tu comenatio