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: 16,217

  1. Antonheike dice:

    Сеть магазинов электрики «Вольт» — ваш надежный поставщик электротехнического оборудования и кабельной продукции по выгодным ценам. В наличии более 24 000 наименований от 200+ известных брендов. Быстрая доставка под заказ — от 1 до 2 дней. Широкий ассортимент и профессиональный подход к каждому клиенту!

    [b]Продажа магазин электрики[/b] – https://volt220380.ru/articles/obzory-i-rekomendatsii-elektrika-poleznye-sovety-i-proverennye-resheniya/svetodiodnye-i-lyuminestsentnye-lampy-osnovnye-razlichiya/

  2. Edmund dice:

    If you are going for most excellent contents like me, only
    pay a quick visit this site everyday for the reason that it presents feature contents, thanks

  3. Live Cambodia Pools Hari ini terlengkap dan cepat Live Draw Cmd

  4. I fеel this is one of the most vitral information for me.
    And i am һɑpp studying your article. However should observation onn
    feew general things, The website style is iԁeal,
    the articles is really great : D. Just right tasк, cheers

  5. TimothyFaw dice:

    The Belenova Plateau, which attracts tourists all year round with its affordable [url=http://rt.gayguyscams.com/]http://rt.gayguyscams.com/[/url]

  6. jnkzfybo dice:

    Most patients were paying big money 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. As a tiny entrepreneur, when is it time to boost prices like Netflix. com or call 877 636 Rx – Rx – About The Founders – Sandy A Reese Rigg, RN, Rph – Susan Chin Jackson, RPh – Both graduated from St.

  7. Normally I don’t learn article on blogs, but I would like to say that
    this write-up very pressured me to check out and do so! Your writing style has been amazed me.
    Thank you, very great post.

  8. This is really interesting, You are an excessively skilled blogger.
    I’ve joined your rss feed and sit up for looking for more of your
    magnificent post. Additionally, I’ve shared your website in my social networks

  9. Hi colleagues, nice piece of writing and fastidious arguments commented here, I am actually
    enjoying by these.

  10. Hurrah! At last I got a website from where I can truly get helpful facts concerning my study and knowledge.

  11. Magnificent beat ! I would like to apprentice while you
    amend your site, how could i subscribe for a blog site? The account aided me a acceptable deal.

    I had been tiny bit acquainted of this your broadcast offered bright clear concept

  12. pzotgbu dice:

    Also, look for your bargain table close to the front of the store full of items as much as 50 percent off the regular price. Insurance is confusing to begin with, plus it is constantly changing. Strong customer satisfaction skills can be a must when handling the hectic pace of a pharmacy or pharmaceutical department.

  13. I got this web site from my friend who informed me regarding this website and now this time I am
    visiting this website and reading very informative posts at this place.

  14. My developer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the costs.

    But he’s tryiong none the less. I’ve been using Movable-type on a variety of websites for about a year and am worried about switching to another platform.
    I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress posts into it?

    Any help would be greatly appreciated!

  15. 66kbet dice:

    Hi friends, how is the whole thing, and what you wish for to say
    concerning this paragraph, in my view its actually remarkable designed for me.

  16. I am sure this paragraph has touched all the internet viewers,
    its really really good post on building up new website.

Responder a 66kbet Cancelar respuesta