saa Infraestructura como código – Politraining

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: 144,090

  1. mba malaysia dice:

    If you are going for most excellent contents like myself, simply pay
    a quick visit this web page everyday since it offers feature contents, thanks

  2. WilliamDig dice:

    BajaMed Direct: mexican mail order pharmacy – online pharmacies

  3. HarryUntox dice:

    reputable indian online pharmacy: Indo-Generic Export – best india pharmacy

  4. OMT’s concentrate on foundational abilities builds unshakeable ѕelf-confidence, permitting Singapore trainees tо faⅼl
    in love ԝith math’s beauty and feel inspired for exams.

    Founded in 2013 by Mr. Justin Tan, OMT Math Tuition һas аctually helped mаny trainees ace exams ⅼike PSLE, O-Levels,
    аnd A-Levels wіth tested analytical strategies.

    Ꮤith students in Singapore Ƅeginning official math education fгom tһe firѕt day and
    dealinhg witһ һigh-stakes assessments, math tuition սses the
    extra edge needed to attain leading efficiency іn this imρortant subject.

    Tuition programs fօr primary school mathematics concentrate օn error analysis from past PSLE documents,
    teaching trainees tо prevent repeating errors іn estimations.

    Structure ѕelf-assurance through consistent tuition support is impοrtant, аs Ⲟ
    Levels cɑn be stressful, and certain trainees doo better under stress.

    Junior college math tuition promotes collaborative understanding inn tiny teams, improving peer discussions
    οn complex А Level principles.

    Ԝhаt sets OMT apaгt is its custom-mɑde math program that expands
    beyond thе MOE syllabus, fostering vital thinking tһrough hands-on,
    սseful workouts.

    OMT’s online sʏstem enhances MOE syllabus one, aiding
    you deal ѡith PSLE mathematics easily ɑnd better ratings.

    Tuition promotes independent analytical, аn ability verу valued in Singapore’ѕ application-based math examinations.

    Ꮇy blog: h2 math tuition singapore

  5. WilliamDig dice:

    best india pharmacy: Indo-Generic Export – indian pharmacy paypal

  6. but the Historian.初音 ミク ラブドールIf Livy say the Gods made once a Cow speak,

  7. Greetings I am so glad I found your blog, I really found you by accident, while I was
    searching on Digg for something else, Anyhow I am here now and would just like to say thanks a lot for a tremendous post and a all round entertaining blog (I also love the theme/design),
    I don’t have time to look over it all at the minute
    but I have saved it and also added in your RSS feeds, so when I have time I will be back to read more, Please do keep up
    the excellent work.

  8. WilliamDig dice:

    BajaMed Direct: BajaMed Direct – farmacias online usa

  9. I personally find that the interface is easy onboarding, and I enjoy exploring governance here.

  10. The interface is stable performance, and I enjoy staking here.

  11. онлайн-школа для детей бесплатно [url=https://shkola-onlajn-25.ru/]онлайн-школа для детей бесплатно[/url] .

  12. HarryUntox dice:

    US Meds Outlet: canadian pharmacy discount coupon – escrow pharmacy online

  13. This post offers clear idea designed for the new people of blogging, that truly how to
    do blogging.

  14. シミーズ dice:

    aus der einst Fulder,jetzt Gothaer Handschr.コスプレ エロ

  15. электрокарниз двухрядный [url=https://karnizy-s-elektroprivodom77.ru/]электрокарниз двухрядный[/url] .

  16. WilliamDig dice:

    reputable indian online pharmacy: best india pharmacy – buy prescription drugs from india

  17. StephenThura dice:

    US Meds Outlet [url=https://usmedsoutlet.com/#]US Meds Outlet[/url] US Meds Outlet

  18. 1win_owEt dice:

    1win ishonchlimi [url=http://1win5753.help/]http://1win5753.help/[/url]

  19. выпрямитель дайсон [url=https://dsn-vypryamitel-8.ru/]выпрямитель дайсон[/url] .

  20. propped against the side,コスプレ えろfilled itself withthe cold,

  21. Юлия Олехова Петровых, Юлия Олехова Петровых – талантливая
    живописец, известная своими оригинальными работами.

  22. HarryUntox dice:

    international pharmacy no prescription: northern pharmacy – best value pharmacy

  23. 初音 ミク ラブドールthat can never be so abolished out of humane nature,but that new Religions may againe be made to spring out of them,

  24. click here dice:

    Good post but I was wanting to know if you could write a litte more
    on this topic? I’d be very thankful if you could elaborate a little bit further.
    Cheers!

  25. управление жалюзи с электроприводом [url=https://zhalyuzi-s-elektroprivodom7.ru/]zhalyuzi-s-elektroprivodom7.ru[/url] .

  26. シミーズ dice:

    下着 エロbut it is as useful in the nineteenthcentury as in the fourteenth,and rests on as sure a principle.

  27. электрокарниз москва [url=https://elektrokarniz-nedorogo.ru/]электрокарниз москва[/url] .

  28. HarryUntox dice:

    best online pharmacy india: Indo-Generic Export – online shopping pharmacy india

  29. コス} dice:

    エッチ 下着so I shallhave to go without,who never troubled herself much aboutdress.

  30. he moved from the bridge andwalked in the direction of the police office.His heart felt hollow andempty.ラブドール 激安

  31. Very soon this web page will be famous among all blogging and site-building visitors,
    due to it’s nice articles or reviews

  32. электрокарнизы в москве [url=https://karnizy-s-elektroprivodom77.ru/]электрокарнизы в москве[/url] .

  33. Randytaito dice:

    https://usmedsoutlet.com/# canadian pharmacy online ship to usa

  34. Thanks for sharing your thoughts about tutorial guitar.
    Regards

  35. 美人 せっくすbeside which the carriage passed the company,a blue-eyed soldier involuntarily attracted notice.

Responder a ib maths tuitions in bangalore Cancelar respuesta