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,343

  1. cpfzmk dice:

    Remember the Golden Rule: As hard as it can be some times, you can obtain a lot more done in a calm friendly manner then you ever will accomplish by pounding your fist around the counter. The local temperature with the medicine producing country is one and also the other country may be another, and also the avian temperature will be the other. It is extremely important that the web doctor exactly understands what are the problem is and accordingly increases the medicine.
    Buy cholesterol medication online

  2. I love it when individuals get together and share thoughts.
    Great site, continue the good work!

  3. Hello There. I found your blog the usage of msn. This is an extremely neatly written article.
    I will make sure to bookmark it and return to learn extra of your
    helpful info. Thank you for the post. I will definitely comeback.

  4. ekroqw dice:

    To obtain the most out from the card, apply it every visit and keep track of coupon restrictions and expiration dates. These will be the pharmacist who works as being a professor or lecture in any medical college; they spend around 50 per cent of the time within the other areas of pharmacy. However, by exercising with adequate practice pharmacy technician test questions we now have better probability of being successful.
    Online pharmacy coupons

  5. Hello, this weekend is pleasant in favor of me, for the reason that this point in time i am reading this fantastic informative article here at my
    residence.

  6. kcdrua dice:

    To maximum benefit out of the card, use it every visit and keep track of coupon restrictions and expiration dates. You might also check out “Physician Assistant Is a Top Healthcare Career. If possible try to use exactly the same pharmacy around possible.
    Metformin prescription refill online

  7. Saved as a favorite, I love your blog!

  8. I am not sure where you’re getting your information, but good topic.
    I needs to spend some time learning more or understanding more.

    Thanks for fantastic info I was looking for this information for my mission.

  9. que Dieu soitglorifié par toutes les créatures,que Son règne arrive parmi elles,ラブドール

  10. by88 dice:

    I always spent my half an hour to read this web site’s content every day along with a cup of coffee.

  11. WilliamKic dice:

    Call a home repairman – how much does it cost on [url=https://krasnodar.rukizolotye.ru/]мастер на час Краснодар[/url]

  12. lchjvu dice:

    The certification does play a huge role in making a rewarding career like a PT because it helps to make one more qualified after they apply for promotion. These will be the pharmacist who works as being a professor or lecture in almost any medical college; they spend around 50 per cent of the time inside other areas of pharmacy. However, by exercising with adequate practice pharmacy technician test questions we have better likelihood of being successful.
    Online pharmacy

  13. ラブドール sexand he is makinganother will to-day.Put in a good word for said Leslie with a smile.

  14. m88 dice:

    Thanks to my father who informed me regarding this web site,
    this web site is genuinely amazing.

  15. qxkzuyb dice:

    Remember the Golden Rule: As hard as it can be some times, you can obtain a lot more done in a very calm friendly manner then you ever will accomplish by pounding your fist around the counter. When all factors are considered, however, I would ought to say the prices charged at CVS Pharmacy and Rite Aid Pharmacy can be comparable. In order to register with all the GPh – C, pharmacy technicians must obtain either a 3 Level 3 qualifications.
    Secure online pharmacy

  16. I am really glad to read this web site posts which includes
    plenty of useful data, thanks for providing these statistics.

  17. I know this web site gives quality depending articles or reviews and extra data, is there any
    other site which provides such things in quality?

  18. I am genuinely thankful to the holder of this website who has shared this fantastic post at at this place.

  19. sanal pos avukat

    I read this piece of writing completely on the topic of
    the difference of newest and previous technologies, it’s
    remarkable article.

  20. transfer money online check writer

    Please let me know if you’re looking for a article author for your weblog.
    You have some really good articles and I believe I would be
    a good asset. If you ever want to take some of the
    load off, I’d really like to write some content for your blog in exchange for a link back to mine.

    Please send me an email if interested. Cheers!

  21. bnwgzes dice:

    Most patients were paying good 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. As a small entrepreneur, when is it time to boost prices like Netflix. After you completed the account, you may now decide on a payment scheme.
    Pharmacy app

  22. Hello, i read your blog from time to time and i
    own a similar one and i was just wondering if you get a lot of spam responses?
    If so how do you protect against it, any plugin or anything you can advise?
    I get so much lately it’s driving me crazy so any support is very much appreciated.

  23. ?Era esta mujer conocida por muy pública alcahueta: Lucrecia bien losabía; mucho pesar ovo que muger tan infame con mensaje le fuesseembiada,y con cara turbada le dixo: ?Qué osadía,ダッチワイフ

  24. 처음 방문한 토닥이였지만, 세심하고 전문적인 마사지에 몸과 마음이 모두 편안해졌어요.
    다시 찾고 싶은 곳이에요!

  25. levyaqi dice:

    It doesn’t seem fair people do not have cheap drugs available to them for purchase and that they’re burdened with spending the remainder of their life worrying about something could affect their survival like this. Factors staying taught in educational institutions regularly variations, which is a fact. In order to register with all the GPh – C, pharmacy technicians must obtain whether 3 Level 3 qualifications.
    Buy antidepressants online

  26. vanity table dice:

    Very good article. I absolutely love this website. Keep writing!

  27. I have read so many articles on the topic of the blogger lovers but this post is truly a fastidious post, keep it up.

  28. Thanks for one’s marvelous posting! I definitely enjoyed
    reading it, you’re a great author. I will ensure that
    I bookmark your blog and will eventually come back at some
    point. I want to encourage one to continue your great writing, have a nice weekend!

  29. sill? t?m?seutu kuuluu Isisiin,ja p??maasta se erosi monessa suhteessa,ラブドール オナニー

  30. https://digi36sa.nyc3.digitaloceanspaces.com/research/digi36sa-(208).html
    You can simply minimize a dash by marrying your elegant
    mother of the bride dress in lace material with pearl jewelry and
    statement heels.

  31. ラブドール オナニーpaitsi silloin kun senukkuu? Ja kun ihmiset nukkuvat ja vuohet nukkuvat,niin miksei aurinkonuku ja ry?mi maakuoppaan,

  32. link olxtoto dice:

    I think this is among the most vital information for me.
    And i’m glad reading your article. But wanna remark on some general things,
    The site style is perfect, the articles is really great : D.
    Good job, cheers

  33. izlxavuk dice:

    The live answering services company company later changed its name to e – Telecare Global Soltions in 2004. Before taking any exams required by their state, they must pass the Foreign Pharmacy Graduate Equivalency examination (FPGEE), Test of English as a Foreign Language (TOEFL) and Test of Spoken English (TSE) exams. Strong customer service skills certainly are a must when handling the hectic pace of an pharmacy or pharmaceutical department.
    Online pharmacy for pain relief

  34. Cabinet IQ
    15030 N Tatum Blvd #150, Phoenix,
    AZ 85032, United Ѕtates
    (480) 424-4866
    Renovationexperts

  35. Wow, this post is nice, my younger sister is analyzing these
    things, so I am going to let know her.

    My blog – login teman 21

  36. uswara dice:

    The moon sheds her subtle influence on all of this, adding for the variables. College pre-pharmacy study as little as a day or two which enable it to still pass the exam. They can also check with doctors to authorize refills, and enter drug information in to the computer.
    Online pharmacy reviews

  37. Does your site have a contact page? I’m having trouble locating it but, I’d like to
    shoot you an e-mail. I’ve got some creative ideas for your
    blog you might be interested in hearing. Either way, great site and I look forward to seeing it improve over time.

Responder a Mservam Cancelar respuesta