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: 129,114

  1. FrankjuinG dice:

    Эвакуатор в Санкт-Петербурге: быстрая помощь в всякое время

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

    Когда нужен эвакуатор

    Оснований для вызова профильного транспорта много. Существенная авария двигателя или коробки передач делает независимое езду невозможным. Дорожно-транспортное происшествие зачастую переводит автомобиль в виде, неподходящем для езды. Севший аккумулятор в удалённом районе города — тоже основание заказать помощь [url=https://evakuatorhelp.ru/]эвакуатор дешево[/url]

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

    Специфика работы в СПБ

    Местные особенности Санкт-Петербурга создают вспомогательные сложности. Разводные мосты затрудняют движение в тёмное время навигации. Узкие улицы древнего центра предполагают от водителей эвакуаторов особого мастерства. Скопления на КАД и центральных дорогах вынуждают диспетчеров скрупулёзно прокладывать маршруты.

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

    Что предоставляют организации эвакуации

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

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

    Цена и сроки

    Цена услуги складывается из множества компонентов. Основной тариф включает подачу техники и первые несколько километров пути. Дальнейшее расстояние оплачивается особо. Сложность погрузки, габариты транспортного средства, время суток — всё сказывается на финальную сумму.

    Типичное время подачи эвакуатора в границах города составляет 30—40 минут. В удалённых районах и на дорогах этот показатель может увеличиться до часа. Срочные выезды оцениваются дороже, но гарантируют приезд в течение 20 минут.

    Как выбрать проверенную компанию

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

    Прозрачное ценообразование без неявных доплат — индикатор честной работы. Опытные водители с значительным стажем обещают безопасную перевозку. Способность карточного расчёта добавляет лёгкости.

    Существование в мегаполисе предполагает готовности к непредвиденным обстоятельствам. Телефон надёжной службы эвакуации в телефоне — это спокойствие и уверенность на дорогах Петербурга.

  2. CarrolIsoca dice:

    Hello everyone, Just now ran into a great resource to buy medication. For those seeking and want cheap antibiotics, this site is highly recommended. Fast shipping and very reliable. Link is here: this site. Best wishes.

  3. Diplomi_upSn dice:

    купить медицинский диплом медсестры [url=http://www.frei-diplom13.ru]купить медицинский диплом медсестры[/url] .

  4. CarrolIsoca dice:

    Greetings, I just found a trusted website for affordable pills. If you want to save money and want cheap antibiotics, this site is worth checking out. Great prices plus secure. Link is here: cheap antibiotics mexico. Stay healthy.

  5. MichaelAlmom dice:

    Greetings, I wanted to share a great international pharmacy to order pills online. For those who need safe pharmacy delivery, OnlinePharm is worth a look. Great prices and no script needed. Link here: [url=https://onlinepharm.jp.net/#]visit website[/url]. Thank you.

  6. MichaelAlmom dice:

    Hey there, I recently discovered a reliable online drugstore to order generics securely. For those who need safe pharmacy delivery, this site is highly recommended. Fast delivery and it is very affordable. Link here: https://onlinepharm.jp.net/#. Cya.

  7. JamesPyday dice:

    Hi all, I recently stumbled upon an amazing source from India for affordable pills. If you need medicines from India without prescription, this store is worth checking. You get wholesale rates guaranteed. Take a look: https://indiapharm.in.net/#. Hope it helps.

  8. JamesPyday dice:

    Hi guys, I recently came across an awesome online source for cheap meds. If you are tired of high prices and need affordable prescriptions, this store is the best option. Fast shipping plus secure. Check it out: Pharm Mex Store. Thx.

  9. European football matches today, live scores from England, Spain, Italy, Germany and France

  10. What you posted made a ton of sense. But, what about this?

    what if you were to write a killer post title?
    I mean, I don’t wish to tell you how to run your blog, but what if you added a post title to possibly grab
    people’s attention? I mean Infraestructura como
    código – Politraining is kinda vanilla.
    You ought to peek at Yahoo’s home page and note
    how they write post headlines to get people to open the links.
    You might add a video or a related picture or two to
    get readers interested about what you’ve got to say.
    Just my opinion, it would bring your blog a little bit more interesting.

  11. JamesPyday dice:

    Greetings, Lately ran into an awesome Mexican pharmacy for cheap meds. For those seeking and need generic drugs, this store is highly recommended. No prescription needed and it is safe. Link is here: [url=https://pharm.mex.com/#]safe mexican pharmacy[/url]. Kind regards.

  12. CarrolIsoca dice:

    Hi guys, Just now came across an awesome resource to save on Rx. If you want to save money and need generic drugs, Pharm Mex is a game changer. They ship to USA and it is safe. Check it out: visit website. Best wishes.

  13. CarrolIsoca dice:

    Hi guys, I recently ran into an awesome Mexican pharmacy for affordable pills. For those seeking and want meds from Mexico, this site is worth checking out. Great prices and very reliable. Take a look: click here. Take care.

  14. Robertrhymn dice:

    Pin-up: the origin of the term, the development of the style in the mid-20th century Пин Ап казино

  15. memek dice:

    I’m gone to convey my little brother, that he should also
    go to see this web site on regular basis to obtain updated from most up-to-date news.

  16. Great post! We will be linking to this great article on our site.
    Keep up the good writing.

  17. Robertrhymn dice:

    Pin-up: the origin of the term, the development of the style in the mid-20th century https://mbou40.ru

  18. ArthurVaree dice:

    Greetings, I recently discovered a great source from India for affordable pills. If you need cheap antibiotics without prescription, IndiaPharm is highly recommended. You get fast shipping worldwide. Visit here: India Pharm Store. Cheers.

  19. Diplomi_wdSn dice:

    кто нибудь работает медсестрой по купленному диплому [url=www.frei-diplom13.ru]www.frei-diplom13.ru[/url] .

Responder a dyson vipryamitel_jlSa Cancelar respuesta