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,749

  1. u88 dice:

    I like the helpful information you provide in your articles.
    I’ll bookmark your blog and check again here frequently.
    I am quite certain I will learn lots of new stuff right here!
    Good luck for the next!

  2. JosephDug dice:

    pharmacy rx world canada: Nyu Pharm – canadian pharmacy near me

  3. Josephmit 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]трипскан сайт[/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]tripscan[/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.
    трипскан
    https://trip-skan60.cc

  4. JosephDug dice:

    legit mexican pharmacy for hair loss pills: buy from mexico pharmacy – buy viagra from mexican pharmacy

  5. Kennethpem dice:

    Online medicine home delivery: Umass India Pharm – best india pharmacy

  6. Kennethpem dice:

    buy prescription drugs from canada cheap: Nyu Pharm – canadian pharmacy meds

  7. vavada casino
    Зеркало используется для обхода ограничений и сохраняет все функции сайта

  8. AlbertEvows 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]tripscan top[/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]трипскан сайт[/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.
    tripskan
    https://trip-skan60.cc

  9. I’m not sure exactly why but this weblog is loading extremely slow for me.

    Is anyone else having this problem or is it a problem
    on my end? I’ll check back later on and see if the problem still exists.

  10. Kennethpem dice:

    Unm Pharm: Unm Pharm – mexican pharmaceuticals online

  11. I’m gone to say to my little brother, that he should also visit this webpage
    on regular basis to get updated from latest reports.

  12. JosephDug dice:

    canadian pharmacy 24 com: Nyu Pharm – reputable canadian online pharmacy

  13. JosephDug dice:

    Unm Pharm: Unm Pharm – buy modafinil from mexico no rx

  14. JosephNib 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

  15. CraigWed dice:

    rybelsus from mexican pharmacy [url=http://unmpharm.com/#]Unm Pharm[/url] Unm Pharm

  16. 銉┿儢銉夈兗銉?銈儕銉嬨兗and do as you’re t or it will be worsefor you,” she said threateningly.

  17. Michaelroyar dice:

    http://unmpharm.com/# buy modafinil from mexico no rx

  18. CraigWed dice:

    best prices on finasteride in mexico [url=https://unmpharm.com/#]buy antibiotics from mexico[/url] buy antibiotics from mexico

  19. MauriceNab dice:

    Как выбрать хорошее казино игорный клуб

    Выбор качественного казино — это важный шаг для любого поклонника азартных игр, который хочет получить максимум удовольствия и избежать проблем. В этой статье мы рассмотрим, на что обратить внимание при выборе онлайн-казино, чтобы принять правильное решение.

    Лицензия и репутация

    Первое, на что стоит смотреть — это наличие лицензии на работу. Надежное казино работает по лицензии от признанных органов, таких как Великобритания. Лицензия гарантирует, что игры проходят прозрачно.
    Репутация — второй важный критерий. Рекомендуется изучить отзывы сообщества, рейтинги и обзоры на специализированных сайтах.

    Ассортимент игр

    Хорошее казино предлагает широкий подбор игр от известных производителей. Это автоматы, рулетки, покер, блэкджек и другие игровые слоты. Разнообразие помогает найти игру по душе и не скучать.

    Бонусы и акции

    Важным преимуществом является наличие выгодных бонусов. Речь о бонусах на депозит, кэшбэке и программах лояльности. Однако важно внимательно изучить условия использования, чтобы бонусы были действительно полезны.

    Способы оплаты

    Широкий выбор способов внесения и вывода средств — залог удобства. Надежное казино поддерживает криптовалюты и предлагает быстрый вывод выигрыша. При этом платежи должны быть безопасными и прозрачными.

    Поддержка клиентов

    Качественная служба поддержки — необходимость. Клиенты должны иметь возможность связаться с оператором без проблем, получить квалифицированную помощь по любым вопросам или проблемам, включая технические и финансовые.

    Безопасность и честность

    Проверенное казино использует современные технологии шифрования данных, что гарантирует безопасность личной информации и финансовых транзакций. Кроме того, честность результатов обеспечивается использованием генератора случайных чисел. Это служит защите интересов игроков.

    Мобильная совместимость

    Современное казино должно иметь удобную мобильною версию для смартфонов и планшетов. Мобильный доступ дает возможность играть в любое время без потери качества игр и функционала.

    Итог

    Выбирая казино, обращайте внимание на следующие ключевые моменты:

    – Законность работы
    – Репутация и отзывы
    – Ассортимент развлечений [url=https://petrodominanta.ru/]топ онлайн казино[/url]
    – Выгодные бонусы и прозрачные условия
    – Удобные и безопасные способы оплаты
    – Качественная служба поддержки
    – Надежность и безопасность данных
    – Мобильная совместимость

    Следуя этим рекомендациям, вы сможете найти идеальное казино и наслаждаться игрой без лишних волнений. Удачи и выигрышей!

  20. of course like your web site however you need to take a look at the spelling on several of your
    posts. Many of them are rife with spelling issues
    and I to find it very troublesome to inform the truth however
    I will definitely come back again.

  21. Kennethpem dice:

    Umass India Pharm: Umass India Pharm – reputable indian pharmacies

  22. Hello There. I found your weblog using msn. This is an extremely neatly written article.
    I’ll be sure to bookmark it and return to learn more of your
    helpful info. Thank you for the post. I will definitely
    comeback.

  23. CraigWed dice:

    Unm Pharm [url=http://unmpharm.com/#]Unm Pharm[/url] finasteride mexico pharmacy

  24. betflik dice:

    Because the admin of this website is working, no doubt very rapidly it will
    be well-known, due to its quality contents.

  25. Again I heard a sob quicklysmothered.irontech dollWhen I did speak,

  26. 평택출장마사지 서비스는 평택광역시 전역에서 편안하게 전문
    마사지를 받을 수 있는 출장 홈타이 서비스입니다.
    고객님이 계신 곳으로 여성 전문 테라피스트가 직접

  27. JosephDug dice:

    order azithromycin mexico: Unm Pharm – legit mexican pharmacy without prescription

  28. CraigWed dice:

    india online pharmacy [url=http://umassindiapharm.com/#]top online pharmacy india[/url] Umass India Pharm

  29. мероприятие с кейтерингом, https://otzvu.ru/forums/topic/zakazat-kejtering-v-moskve/ – Планируя мероприятие с кейтерингом, важно учитывать множество факторов.

Responder a foldable electric bike Cancelar respuesta