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: 26,229

  1. best USDT exchange IDR Indonesia

  2. Jamesbet dice:

    indian pharmacy: best online pharmacy india – п»їlegitimate online pharmacies india

  3. IEFR USDT Cyprus (Investor Economic Free Regime)

  4. I’m not sure where you’re getting your info, but good topic.
    I needs to spend some time learning much more or understanding more.

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

  5. 1win_dxKi dice:

    1win слоты играть скачать [url=https://1win1168.ru/]https://1win1168.ru/[/url]

  6. RabertabPaush dice:

    лучший порно сайт русское порно в хорошем качестве бесплатно!

  7. You actually make it seem so easy with your presentation but I find this matter to be really something
    which I think I would never understand. It seems too complex and extremely broad for
    me. I am looking forward for your next post, I will try to
    get the hang of it!

  8. You would often hear that Kashmir is full of talented youngsters
    but some are there who go out and prove these words.
    Aayun Ajaz Khan is one of them.

  9. evostoto dice:

    Hi! I know this is kinda off topic however , I’d figured
    I’d ask. Would you be interested in trading links or maybe guest writing a blog article or vice-versa?
    My website discusses a lot of the same subjects as yours
    and I think we could greatly benefit from each other.
    If you are interested feel free to shoot me an email.
    I look forward to hearing from you! Wonderful blog by the way!

  10. I know this if off topic but I’m looking into starting my own weblog
    and was curious what all is required to get set
    up? I’m assuming having a blog like yours would
    cost a pretty penny? I’m not very web smart so I’m not 100% certain. Any recommendations or advice would be greatly appreciated.
    Kudos

  11. akhuwat loan dice:

    Incredible points. Solid arguments. Keep up the amazing effort.

  12. 1win_md_egoi dice:

    1win live [url=https://1win40015.ru/]1win live[/url]

  13. Jamesbet dice:

    Indian Meds One: Indian Meds One – top 10 pharmacies in india

  14. Dewa Poker dice:

    Hi there! This article could not be written any better! Looking through this post reminds me of my previous roommate!
    He continually kept preaching about this. I am going
    to send this article to him. Fairly certain he’s going to have a good read.

    I appreciate you for sharing!

  15. Roccopully dice:

    phuket pharmacy viagra: MediDirect USA – MediDirect USA

  16. haartransplantation hamburg empfehlung alsterklinik

    This is a topic that is close to my heart… Take care!
    Exactly where are your contact details though?

  17. вывод из запоя минск
    vivod-iz-zapoya-minsk004.ru
    экстренный вывод из запоя

  18. Excellent article. Keep writing such kind of information on your page.
    Im really impressed by your site.
    Hello there, You have done a fantastic job. I’ll certainly
    digg it and in my view suggest to my friends. I am confident they’ll be
    benefited from this site.

  19. toto togel dice:

    A person necessarily help to make severely posts I might state.
    This is the very first time I frequented your website page
    and to this point? I surprised with the analysis you made to create this actual post incredible.
    Wonderful job!

  20. If you’re looking for a reliable crypto exchange, Paybis is a United Kingdom-based digital asset platform that
    has gained popularity for its fast transaction times.
    Established over a decade ago, the platform has served millions of users, offering streamlined access to the crypto market.

    What makes Paybis unique is its strong regulatory backing and smooth user experience.
    It’s regulated in the UK under FCA guidelines, which adds a layer of legitimacy that many global crypto platforms lack.

    Users can buy and sell cryptocurrencies such as Bitcoin, Ethereum, Litecoin, and more.
    Paybis also supports a broad range of national currencies, including British Pounds,
    US Dollars, and Euros, making it convenient for UK and EU residents.

    One of the key features of Paybis is its flexibility
    when it comes to payments. You can buy crypto using a debit or credit
    card. The platform also accepts Apple Pay, which is a big plus for users who prefer alternative payment systems.

    Another major advantage is the speed of transactions.
    Crypto purchases are completed nearly instantly. For verified users, this makes Paybis an ideal option for urgent purchases.

    The verification process is also streamlined for convenience.

    It typically takes just a few minutes to complete KYC, which is ideal for
    users who want to get started without delay.

    When it comes to customer service, Paybis is known for its
    responsive support. You can get help around the
    clock, and their help center is also quite comprehensive.

    In terms of fees, Paybis is transparent and fair. There are no hidden charges, which is important when dealing
    with financial transactions.
    All in all, Paybis is a top-tier crypto broker offering fast, safe, and
    convenient access to digital assets. Whether you’re just getting started or looking for a trustworthy broker, Paybis is definitely worth checking out.

Responder a Brucekak Cancelar respuesta