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

  1. Kennethpem dice:

    india online pharmacy: Umass India Pharm – Umass India Pharm

  2. Bryontic dice:

    You don’t get labeled the “Oracle of Omaha” for nothing.
    [url=https://trips62.cc]tripscan top[/url]
    As one of the world’s most successful investors, Warren Buffett’s views on markets, companies and the economy have always been of great interest on Wall Street and Main Street.
    [url=https://trips62.cc]трип скан[/url]
    Now 95, Buffett is stepping down as CEO of Berkshire Hathaway, 60 years after taking a controlling share in the company.
    [url=https://trips62.cc]трипскан сайт[/url]
    But during his long tenure Buffett has had plenty of sensible things to say about how to invest well and live a good life through the work you choose and the way you treat people.

    Here’s just a sampling:

    Don’t lose money
    “The first rule in investment is don’t lose. And the second rule in investment is don’t forget the first rule.”

    Buffett is best known as a value investor – someone who buys companies he believes are undervalued. “If you buy things for far below what they’re worth and you buy a group of them, you basically don’t lose money,” he explained on Adam Smith’s Money World.

    But Buffett’s advice also speaks to the need to diversify risk.

    “It’s the foundation of how I manage client money,” said certified financial planner and CPA Brian Kearns. “Investing is about growth, but it is also about capital preservation. … Find reasonably priced investments … but don’t risk too much of your net worth on one idea.”

    It also means investing across asset classes. “They all have different risk profiles and, when combined, allow you to hold investments for the long term because you will experience less volatility,” Kearns said.

    Warren Buffett greets shareholders during Berkshire Hathaway’s annual shareholder meeting in Omaha, Nebraska, in 2008.
    Warren Buffett’s life in pictures
    42 photos
    Warren Buffett greets shareholders during Berkshire Hathaway’s annual shareholder meeting in Omaha, Nebraska, on May 3, 2008. Carlos Barria/Reuters
    Focus on the essentials
    трипскан сайт
    https://trips62.cc

  3. Larrymes dice:

    You don’t get labeled the “Oracle of Omaha” for nothing.
    [url=https://trips62.cc]трипскан сайт[/url]
    As one of the world’s most successful investors, Warren Buffett’s views on markets, companies and the economy have always been of great interest on Wall Street and Main Street.
    [url=https://trips62.cc]трипскан вход[/url]
    Now 95, Buffett is stepping down as CEO of Berkshire Hathaway, 60 years after taking a controlling share in the company.
    [url=https://trips62.cc]tripscan[/url]
    But during his long tenure Buffett has had plenty of sensible things to say about how to invest well and live a good life through the work you choose and the way you treat people.

    Here’s just a sampling:

    Don’t lose money
    “The first rule in investment is don’t lose. And the second rule in investment is don’t forget the first rule.”

    Buffett is best known as a value investor – someone who buys companies he believes are undervalued. “If you buy things for far below what they’re worth and you buy a group of them, you basically don’t lose money,” he explained on Adam Smith’s Money World.

    But Buffett’s advice also speaks to the need to diversify risk.

    “It’s the foundation of how I manage client money,” said certified financial planner and CPA Brian Kearns. “Investing is about growth, but it is also about capital preservation. … Find reasonably priced investments … but don’t risk too much of your net worth on one idea.”

    It also means investing across asset classes. “They all have different risk profiles and, when combined, allow you to hold investments for the long term because you will experience less volatility,” Kearns said.

    Warren Buffett greets shareholders during Berkshire Hathaway’s annual shareholder meeting in Omaha, Nebraska, in 2008.
    Warren Buffett’s life in pictures
    42 photos
    Warren Buffett greets shareholders during Berkshire Hathaway’s annual shareholder meeting in Omaha, Nebraska, on May 3, 2008. Carlos Barria/Reuters
    Focus on the essentials
    трип скан
    https://trips62.cc

  4. VirgilDot dice:

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

    Виды бонусов в казино

    Существует множество видов бонусов, которые предлагаются игрокам. Рассмотрим главные из них:

    – Бонусы за создание аккаунта — стартовый подарок новичкам, который часто включает комплиментарные деньги или фриспины.
    – Бонусы за пополнение счета — увеличивающие средства, которые начисляются при внесении реальных денег на игровой счет. Чаще всего это увеличение депозита (например, 100% бонус на первый депозит).
    – Бездепозитные бонусы — бонусы без внесения средств, которые позволяют начать игру без риска.
    – Кэшбэк бонусы — возвращают игроку часть проигранных денег за определенный период.
    – Фриспины или бесплатные вращения — подарочные вращения в игровых автоматах без необходимости использовать собственные средства.
    – Программы лояльности и VIP-бонусы — специальные бонусы для постоянных игроков.

    Как работают бонусы казино

    Бонусы действуют благодаря системе требований, которые необходимо выполнить для их получения и вывода.

    – Вейджер (условие отыгрыша) — это количество раз, которое нужно отыграть, чтобы вывести выигрыш с бонуса. Например, вейджер 30х означает, что сумма бонуса и депозита должна быть поставлена в 30 раз.
    – Минимальный депозит — минимальная сумма, которую необходимо внести, чтобы активировать бонус.
    – Ограничения по играм — не все игры учитываются при отыгрыше бонусов. Например, слоты обычно учитываются на 100%, а настольные игры — меньше или вообще не учитываются.
    – Максимальная сумма ставки при отыгрыше — ограничение на максимальную ставку, которую можно делать во время использования бонусных средств.

    Преимущества бонусов в казино

    Бонусы способствуют:

    – Начать игру с дополнительными средствами.
    – Познакомиться с новыми слотами без риска потерять собственные деньги.
    – Повысить шансы на выигрыш за счет дополнительных средств.
    – Получить больше удовольствия, играя в казино [url=https://bullyskidsclub.com/]рейтинг онлайн казино россии[/url]

    Риски и важные моменты

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

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

    Заключение

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

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

  5. ドール エロyet she thought the addition of finery would muchimprove her charms,and extend her conquests.

  6. CraigWed dice:

    canadian pharmacies [url=http://nyupharm.com/#]Nyu Pharm[/url] the canadian drugstore

  7. bk8thai dice:

    Thanks for your marvelous posting! I quite enjoyed reading
    it, you’re a great author. I will make certain to bookmark your blog and will eventually come back in the
    future. I want to encourage you to definitely continue your great posts, have a nice holiday weekend!

  8. Michaelroyar dice:

    https://nyupharm.com/# canada rx pharmacy world

  9. JosephDug dice:

    top 10 online pharmacy in india: Umass India Pharm – Online medicine order

  10. situs slot dice:

    I just could not go away your site prior to suggesting that I extremely enjoyed the standard info an individual supply
    in your visitors? Is gonna be back frequently in order to investigate cross-check new posts

  11. JamesBrume dice:

    Denmark’s foreign minister on Monday said he was “deeply upset” by US President Donald Trump’s appointment of a special envoy to Greenland who openly declared that he wished to see the island become part of the United States.
    [url=https://tripscan60c.cc]трипскан[/url]
    Trump announced the appointment of Jeff Landry, the Governor of Louisiana, as ?special envoy to Greenland on Monday in a post on Truth Social. “Jeff understands how essential Greenland is to our national security, and will strongly advance our country’s interests for the safety, security, and survival of our allies, and indeed, the World,” Trump posted on his social media platform.
    [url=https://tripscan60c.cc]tripskan[/url]
    “I am deeply upset by this appointment of a special envoy. And I ?am particularly upset by his statements, which we find completely unacceptable,” Lars Lokke Rasmussen told Denmark’s national broadcaster TV 2, according to Reuters news agency.
    [url=https://tripscan60c.cc]трипскан сайт[/url]
    Rasmussen said he would summon the US ambassador to Denmark in response to the Trump administration’s move, Reuters reported.

    Denmark’s Foreign Minister Lars Loekke Rasmussen and Defense Minister Troels Lund Poulsen address journalists in Copenhagen on September 26.
    Denmark’s Foreign Minister Lars Loekke Rasmussen and Defense Minister Troels Lund Poulsen address journalists in Copenhagen on September 26. Liselotte Sabroe/AFP/Ritzau Scanpix/Getty Images
    Trump defended his decision to pick Landry telling reporters on Monday evening that the US needs Greenland “for national security” and that Landry had approached him about the assignment.

    “Louisiana, the Louisiana Purchase. He said I’m governor of Louisiana, and he said I would love … I didn’t call him, he called me. He’s very proactive,” Trump told reporters at Mar-a-Lago.

    “We need Greenland for national security, not for minerals. We have so many sites for minerals and oil and everything,” Trump said, trying to make the case for annexing Greenland, despite its status as a self-governing territory of Denmark. “If you take a look at Greenland, you look up and down the coast, you have Russian and Chinese ships all over the place. We need it for national security. We have to have it,” he added.

    During his Monday remarks, Trump went on to claim that Denmark has “spent no money” on Greenland and has “no military protection.”

    While thanking Trump for his appointment, Landry said it was an “honor to serve you in this volunteer position to make Greenland a part of the US.” He also said that “this in no way affects” his position as Louisiana governor.

    Trump has repeatedly stated that he wants to annex Greenland – a huge, resource-rich island in the Atlantic and self-governing territory of Denmark – claiming that this is needed for American security purposes.

    Both Greenland and Denmark, a NATO ally of the US, are staunchly opposed to the idea.

    Danish Prime Minister Mette Frederiksen and Greenland’s Prime Minister Jens-Frederik Nielsen reiterated their opposition Monday to US plans to take over Greenland, stating “you cannot annex another country. Not even with an argument about international security,” according to Reuters.

    “Greenland belongs to the Greenlanders and the US shall not take over Greenland,” they said in a joint statement.

    Nielsen said earlier Monday that Trump’s announcement “may sound big, but it does not change anything for us. We decide our own future,” Reuters reported.
    трипскан сайт
    https://tripscan60c.cc

  12. Richarddiept dice:

    Йога может быть очень полезной для улучшения кровообращения. Вот несколько асан https://apelsinparty.ru

  13. I believe what you typed was actually very reasonable. But, what about this?
    what if you added a little content? I mean, I don’t want to tell you
    how to run your blog, however suppose you added something that grabbed people’s attention? I mean Infraestructura como código – Politraining is kinda plain. You ought to peek at Yahoo’s
    home page and see how they create article titles to get viewers to click.

    You might add a related video or a related picture or two to
    get readers excited about what you’ve written. Just my opinion, it could make your posts a little bit more interesting.

  14. DelmarerypE dice:

    https://nyupharm.com/# cheap canadian pharmacy online

  15. RC Link Hub dice:

    https://rc-project-link-hub.blogspot.com/p/makerdiy.html

    Sweet blog! I found it while surfing around
    on Yahoo News. Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem
    to get there! Thanks

  16. I am no longer sure the place you are getting your info, but good topic.
    I needs to spend a while studying more or understanding more.
    Thank you for great information I used to be looking for this information for my mission.

  17. … He madespeeches here,wanted to show off his learning and he went outcrest-fallen.ラブドール 激安

Responder a DelmarerypE Cancelar respuesta