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: 110,624

  1. Anthonypep dice:

    A Massachusetts college student who was deported while trying to visit family for Thanksgiving said an immigration officer told her it wouldn’t matter if she spoke to a lawyer, she was going to be removed from the country anyway.
    [url=https://trip-skan60.cc]трипскан сайт[/url]
    Any Lucia Lopez Belloza, a 19-year-old freshman at Babson College, was flown to Honduras on Nov. 22, two days after she was detained at Boston’s airport and one day after a judge ordered that she remain in the country.
    [url=https://trip-skan60.cc]tripskan[/url]
    In a court document filed Saturday, she described two sleepless nights — first, staying awake with excitement in anticipation of seeing her family, and then later, being crammed with 17 other women in a cell “which was so small that we did not even have enough space to sleep on the floor.”
    [url=https://trip-skan60.cc]trip scan[/url]
    Lopez Belloza, who is now staying with her grandparents, came to the US in 2014 at age 8 and was ordered deported several years later. Though the government has argued that she missed multiple opportunities to appeal, Lopez Belloza said her previous attorney told her there was no removal order.

    “If I had been aware of my 2017 deportation order, I would not have traveled with my valid passport,” she wrote. “I would have dedicated significant time and effort during the past eight years to hiring an attorney who could help me resolve my immigration situation.”

    Related article
    In this undated photo provided by her attorney, Todd Pomerleau, Any Lucia Lopez Belloza celebrates her high school graduation in Texas.
    A college freshman deported while flying home for Thanksgiving is fighting to return. Here’s what we know about her case

    The government also argues that the judge who issued the Nov. 21 order preventing her removal lacked jurisdiction because by then, Lopez Belloza was already in Texas on her way out of the country. But lawyers for the student argue that Immigration and Customs Enforcement made it all but impossible to locate her.

    According to Lopez Belloza, when she refused to sign a form consenting to deportation and asked to call her parents or a lawyer, a “tall, muscular, intimidating” ICE officer “said it didn’t matter if I spoke to a lawyer because I was going to be deported anyway.” She later was allowed to call her family from Massachusetts, but that was before she knew she would be flown to Texas and then Honduras.

    In a separate filing, lawyers for Lopez Belloza said the government acted “in bad faith and with furtiveness” by failing to answer phone calls to the Boston-area ICE office or update its detainee locator database and by moving her without allowing her to notify her parents or counsel. They asked a judge to schedule a hearing and allow Lopez Belloza to return to the US to testify.
    tripscan top
    https://trip-skan60.cc

  2. 789club dice:

    I’m amazed, I must say. Seldom do I encounter a blog that’s both educative and amusing, and let me
    tell you, you have hit the nail on the head.

    The issue is something that too few people are speaking intelligently about.
    I’m very happy I came across this in my search for something concerning this.

  3. Robertrilla dice:

    CBS News editor in chief Bari Weiss decided to shelve a planned “60 Minutes” story titled “Inside CECOT,” creating an uproar inside CBS, but the report has reached a worldwide audience anyway.
    [url=https://minexchange.net]mine.exchange[/url]
    On Monday, some Canadian viewers noticed that the pre-planned “60 Minutes” episode was published on a streaming platform owned by Global TV, the network that has the rights to “60 Minutes” in Canada.
    [url=https://minexchange.net]mine.exchange[/url]
    The preplanned episode led with correspondent Sharyn Alfonsi’s story — the one that Weiss stopped from airing in the US because she said it was “not ready.”
    [url=https://minexchange.net]mine шахта[/url]
    Several Canadian viewers shared clips and summaries of the story on social media, and within hours, the videos went viral on platforms like Reddit and Bluesky.

    “Watch fast,” one of the Canadian viewers wrote on Bluesky, predicting that CBS would try to have the videos taken offline.

    Related article
    The Free Press’ Honestly with Bari Weiss (pictured) hosts Senator Ted Cruz presented by Uber and X on January 18, 2025 in Washington, DC.
    Inside the Bari Weiss decision that led to a ‘60 Minutes’ crisis

    Progressive Substack writers and commentators blasted out the clips and urged people to share them. “This could wind up being the most-watched newsmagazine segment in television history,” the high-profile Trump antagonist George Conway commented on X.

    A CBS News spokesperson had no immediate comment on the astonishing turn of events.

    Alfonsi’s report was weeks in the making. Weiss screened it for the first time last Thursday night. The story was finalized on Friday, according to CBS sources, and was announced in a press release that same day.

    On Saturday morning, Weiss began to change her mind about the story and raised concerns about its content, including the lack of responses from the relevant Trump administration officials.

    But networks like CBS sometimes deliver taped programming to affiliates like Global TV ahead of time. That appears to be what happened in this case: The Friday version of the “60 Minutes” episode is what streamed to Canadian viewers.

    The inadvertent Canadian stream is “the best thing that could have happened,” a CBS source told CNN on Monday evening, arguing that the Alfonsi piece is “excellent” and should have been televised as intended.

    People close to Weiss have argued that the piece was imbalanced, however, because it did not include interviews with Trump officials.

    Weiss told staffers on Monday, “We need to be able to get the principals on the record and on camera.” However, in an earlier memo to colleagues, Alfonsi asserted that her team tried, and their “refusal to be interviewed” was “a tactical maneuver designed to kill the story.”

    At the end of the segment that streamed on Global TV’s platform, Alfonsi said Homeland Security “declined our request for an interview and referred all questions about CECOT to El Salvador. The government there did not respond to our request.”

    The segment included sound bites from President Trump and Homeland Security Secretary Kristi Noem. But it was clearly meant to be a story about Venezuelan men deported to El Salvador, not about the officials who implemented Trump’s mass deportation policy.
    mine.exchange
    https://minexchange.net

  4. Kennethpem dice:

    Umass India Pharm: Umass India Pharm – Umass India Pharm

  5. CraigWed dice:

    reputable indian online pharmacy [url=http://umassindiapharm.com/#]indian pharmacy paypal[/url] pharmacy website india

  6. I got this web site from my pal who shared with me concerning this website and now this time I am browsing this site and reading very informative content here.

  7. Kennethpem dice:

    canadian pharmacy com: online canadian pharmacy – ed drugs online from canada

  8. Douglasram dice:

    CBS News editor in chief Bari Weiss decided to shelve a planned “60 Minutes” story titled “Inside CECOT,” creating an uproar inside CBS, but the report has reached a worldwide audience anyway.
    [url=https://minexchange.net]mine.exchange[/url]
    On Monday, some Canadian viewers noticed that the pre-planned “60 Minutes” episode was published on a streaming platform owned by Global TV, the network that has the rights to “60 Minutes” in Canada.
    [url=https://minexchange.net]mine exchange[/url]
    The preplanned episode led with correspondent Sharyn Alfonsi’s story — the one that Weiss stopped from airing in the US because she said it was “not ready.”
    [url=https://minexchange.net]mine exchange[/url]
    Several Canadian viewers shared clips and summaries of the story on social media, and within hours, the videos went viral on platforms like Reddit and Bluesky.

    “Watch fast,” one of the Canadian viewers wrote on Bluesky, predicting that CBS would try to have the videos taken offline.

    Related article
    The Free Press’ Honestly with Bari Weiss (pictured) hosts Senator Ted Cruz presented by Uber and X on January 18, 2025 in Washington, DC.
    Inside the Bari Weiss decision that led to a ‘60 Minutes’ crisis

    Progressive Substack writers and commentators blasted out the clips and urged people to share them. “This could wind up being the most-watched newsmagazine segment in television history,” the high-profile Trump antagonist George Conway commented on X.

    A CBS News spokesperson had no immediate comment on the astonishing turn of events.

    Alfonsi’s report was weeks in the making. Weiss screened it for the first time last Thursday night. The story was finalized on Friday, according to CBS sources, and was announced in a press release that same day.

    On Saturday morning, Weiss began to change her mind about the story and raised concerns about its content, including the lack of responses from the relevant Trump administration officials.

    But networks like CBS sometimes deliver taped programming to affiliates like Global TV ahead of time. That appears to be what happened in this case: The Friday version of the “60 Minutes” episode is what streamed to Canadian viewers.

    The inadvertent Canadian stream is “the best thing that could have happened,” a CBS source told CNN on Monday evening, arguing that the Alfonsi piece is “excellent” and should have been televised as intended.

    People close to Weiss have argued that the piece was imbalanced, however, because it did not include interviews with Trump officials.

    Weiss told staffers on Monday, “We need to be able to get the principals on the record and on camera.” However, in an earlier memo to colleagues, Alfonsi asserted that her team tried, and their “refusal to be interviewed” was “a tactical maneuver designed to kill the story.”

    At the end of the segment that streamed on Global TV’s platform, Alfonsi said Homeland Security “declined our request for an interview and referred all questions about CECOT to El Salvador. The government there did not respond to our request.”

    The segment included sound bites from President Trump and Homeland Security Secretary Kristi Noem. But it was clearly meant to be a story about Venezuelan men deported to El Salvador, not about the officials who implemented Trump’s mass deportation policy.
    mine шахта
    https://minexchange.net

  9. Diplomi_bcOa dice:

    купить диплом в санкт петербурге [url=https://r-diploma2.ru]купить диплом в санкт петербурге[/url] .

  10. Kennethpem dice:

    online shopping pharmacy india: top 10 pharmacies in india – best india pharmacy

Responder a word stacks hack anroid Cancelar respuesta