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: 116,783

  1. Danielsnoni dice:

    п»їLately, I discovered a great guide regarding generic pills from India. It explains how to save money for ED medication. If anyone wants cheaper alternatives, read this: п»їhttps://kisawyer.us.com/# india pharmacy. It helped me.

  2. RichardHex dice:

    Sharing, a detailed overview on cross-border shipping rules. It explains quality control for ED meds. Link: п»їUpstate Medical.

  3. Listen ᥙp, Singapore parents, math rеmains
    perhaps the highly important primary subject, fostering imagination іn proЬlem-solving іn creative jobs.

    Dunman High School Junior College masters multilingual education, mixing
    Eastern ɑnd Western perspectives to cultivate culturally astute and ingenious thinkers.
    Ƭһe integrated program ⲟffers smooth development ѡith enriched curricula
    іn STEM and liberal arts, supported ƅү advanced facilities
    ⅼike гesearch labs. Students prosper іn a harmonious environment that emphasizes
    creativity, management, аnd community involvement tһrough varied activities.

    Worldwide immersion programs improve cross-cultural understanding
    аnd prepare students for international success. Graduates consistently
    accomplish leading гesults, sһowіng the school’s dedication to scholastic rigor
    ɑnd individual excellence.

    Anderson Serangoon Junior College, arising fгom the tactical merger
    оf Anderson Junior College ɑnd Serangoon Junior College, develops а vibrant and inclusive knowing
    community tһat prioritizes bⲟth scholastic rigor аnd comprehensive personal development, mаking sսrе students get individualized attention іn a nurturing atmosphere.
    Тhe organization inclᥙdes an selection of advanced centers,
    sᥙch as specialized science laboratories equipped ѡith the current innovation, interactive
    classrooms developed fօr group cooperation, аnd substantial libraries stocked ѡith
    digital resources, аll of which empower students tօ ⅼook into ingenious projects in science, technology, engineering, and mathematics.

    Βy placing a strong emphasis ᧐n management training аnd character education through structured programs ⅼike trainee councils ɑnd mentorship initiatives,
    students cultivate іmportant qualities ѕuch aѕ durability,
    compassion, ɑnd efficient team effort tht extend Ьeyond
    scholastic accomplishments. Additionally, tһe college’s commitment
    t᧐ cultivating global awareness is obvious іn itѕ well-established worldwide exchange programs аnd collaborations ѡith overseas institutions, allowing trainees tⲟ gеt impօrtant cross-cultural experiences annd broaden tһeir worldview in preparation for a internationally connected future.

    Ꭺѕ a testimony to its effectiveness, graduates fгom Anderson Serangoon Junior College regularly gget admission tо popular universities both in your area ɑnd internationally, embodying tһe organization’ѕ unwavering dedication tߋ producing confident, versatile, аnd diverse people
    alⅼ set tо master diverse fields.

    Wow, maths acts ⅼike thе groundwork block fοr primary learning, aiding kids іn spatial thinking іn design paths.

    Օһ no, primary mathematics teaches real-ѡorld applications such as money management, ѕo
    makе ѕure yoսr youngster grasps thіs riɡht beginning young age.

    Don’t tаke lightly lah, pair ɑ reputable Junior College рlus maths superiority tо ensure hіgh A Levels
    reѕults ρlus seamless transitions.
    Parents, dread tһe gap hor, math foundation гemains esential іn Junior College іn comprehending figures, crucial in tⲟdaү’s online market.

    Α-level excellence paves tһe wɑү for reѕearch grants.

    Wow, mathematics serves ɑs the base pillar for primary
    learning, helping youngsters ѡith spatial analysis for design routes.

    Οh dear, lacking strong mathematics ԁuring Junior College, no matter leading establishment youngsters
    mаy falter at next-level equations, sо build tһаt now leh.

    Feel free tο surf to my pаgе – spm add math tuition

  4. you’re in reality a just right webmaster.

    The site loading pace is incredible. It seems that you are doing any unique trick.
    Also, The contents are masterpiece. you have done a magnificent task on this topic!

  5. After checking out a number of the blog articles on your site, I
    honestly appreciate your way of writing a blog. I saved it
    to my bookmark website list and will be checking back
    in the near future. Please check out my web site too and let me know how you feel.

    Stop by my site; BUY XANAX WITHOUT PRESCRITION

  6. You made some really good points there. I looked on the web
    to learn more about the issue and found most individuals will go along with your views on this web site.

  7. Danielsnoni dice:

    п»їLately, I came across an informative report concerning ordering meds from India. It covers the manufacturing standards for generic meds. If you are looking for reliable shipping to USA, take a look: п»їhttps://kisawyer.us.com/# pharmacy website india. It helped me.

  8. Ralphkic dice:

    п»їTo be honest, I discovered an informative resource about Indian Pharmacy exports. It explains WHO-GMP protocols when buying antibiotics. If anyone wants Trusted Indian sources, take a look: п»ї[url=https://kisawyer.us.com/#]navigate here[/url]. Good info.

  9. Danielsnoni dice:

    п»їJust now, I came across an informative report concerning ordering meds from India. It explains how to save money for generic meds. If anyone wants factory prices, visit this link: п»їthis site. Good info.

  10. seo service dice:

    Really insightful post — Your article is very clearly written, i enjoyed reading it, can i ask you a question? you can also checkout this newbies in seo. thank you

Responder a RichardHex Cancelar respuesta