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: 119,448

  1. bet casino dice:

    An interesting discussion is definitely worth comment. There’s no doubt that that you need to write more about this subject matter, it may not be a taboo subject but typically people do not talk about such issues. To the next! Kind regards!!

  2. cancun dice:

    An interesting discussion is definitely worth comment. There’s no doubt that that you should write more on this subject matter, it may not be a taboo matter but typically people do not discuss these subjects. To the next! Kind regards!!

  3. mostbet_uuEr dice:

    букмекерская. контора. мостбет. [url=https://mostbet2032.help]букмекерская. контора. мостбет.[/url]

  4. mostbet_vmEr dice:

    скачать mostbet kg [url=www.mostbet2032.help]www.mostbet2032.help[/url]

  5. What makes PinkSale Finance appealing is the balance between flexibility and structure.

  6. mostbet_oyEr dice:

    mostbet official [url=http://mostbet2032.help]mostbet official[/url]

  7. Excellent, what a webpage it is! This blog presents valuable facts to us, keep it up.

  8. A motivating discussion is definitely worth comment. I do believe that you should write more on this issue, it might not be a taboo subject but usually people do not discuss such subjects. To the next! All the best!!

  9. My programmer is trying to persuade 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 various websites for about a year and am concerned about switching to another platform.
    I have heard excellent things about blogengine.net. Is there a way I can transfer all
    my wordpress posts into it? Any help would be greatly
    appreciated!

  10. Geraldcuche dice:

    страница [url=https://krab-2.cc/]krab2.cc[/url]

  11. An interesting discussion is definitely worth comment. There’s no doubt that that you ought to publish more on this subject matter, it might not be a taboo matter but usually folks don’t speak about these issues. To the next! All the best!!

  12. A fascinating discussion is worth comment. There’s no doubt that that you ought to write more about this subject matter, it might not be a taboo matter but usually folks don’t discuss these subjects. To the next! Many thanks!!

  13. ivy casino dice:

    An interesting discussion is definitely worth comment. There’s no doubt that that you should write more about this subject matter, it might not be a taboo matter but typically people do not discuss such topics. To the next! All the best!!

  14. slot gacor dice:

    Hi, the whole thing is going well here and ofcourse every one is
    sharing information, that’s actually fine, keep up writing.

  15. Zara dice:

    Great information. Lucky me I ran across your site by chance (stumbleupon).
    I’ve saved it for later!

  16. ManuelAssor dice:

    Автогражданка ОСАГО в Москве — страхование автомобиля

    В современном мире вопрос защиты автомобиля оказывается необходимым. Автогражданка — это законодательное требование для всех владельцев транспортных средств в Москве и по всей России.

    Что такое автогражданка ОСАГО

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

    Этот страховка требуется для каждого автомобилиста. Отсутствие полиса ОСАГО грозит ограничениями и сложностями в возмещении ущерба.

    Особенности ОСАГО в Москве

    Москва — столица, где частота происшествий выше, чем в регионах. Поэтому тарифы и условия полиса ОСАГО могут иметь свои отличия:

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

    Как оформить автогражданку в Москве

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

    2. Сбор необходимых документов|Пакет документов|Перечень справок
    Обычно требуется удостоверение личности и техпаспорт.

    3. Оформление полиса|Заключение договора|Приобретение страховки
    Можно сделать как в офисе, так и через интернет-платформы с быстрой онлайн-оплатой и получением электронного полиса.

    4. Получение документов|Выдача полиса|Подтверждение страховки
    Электронный или бумажный вариант полиса ОСАГО имеет одинаковую юридическую силу.

    Почему важно страховать автомобиль по ОСАГО

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

    Советы по выбору и эксплуатации автогражданки [url=https://osago-strahovanie.ru/]https://osago-strahovanie.ru/[/url]

    – Оцените тарифы разных страховщиков для оптимального выбора.
    – Обращайте внимание на рейтинг компании.
    – Храните полис в доступном месте и пролонгируйте страховку.
    – В случае ДТП незамедлительно сообщайте страховую, соблюдая все требования.

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

    Обеспечьте себе уверенность и безопасность на дороге с качественным полисом ОСАГО — сделайте правильный выбор уже сегодня.

  17. OMT’s interestіng video clip lessons transform complicatfed math ideas іnto exciting stories, assisting Singapore pupis
    fаll fоr the subject and feel inspired tο ace theіr tests.

    Established іn 2013 by Mr. Justin Tan, OMT Math Tuition һаs assisted many students
    ace examinations ⅼike PSLE, Ⲟ-Levels, аnd A-Levels with tested problеm-solving methods.

    With math integrated effortlessly іnto Singapore’s classroom settings to benefit b᧐th instructors ɑnd students,
    committed math tuition amplifies tһese gains by using customized assistance fߋr continual accomplishment.

    Enriching primary school education ѡith math tuition prepares trainees fοr PSLE ƅy cultivating
    a development mindset tօwards challenging topics ⅼike symmetry аnd cһanges.

    Offered the һigh risks of Ο Levels for secondary school progression іn Singapore,
    math tuition mɑkes thе mߋst of opportunities f᧐r leading grades and desired placements.

    Preparing fօr the changability of A Level concerns, tuition develops flexible ρroblem-solving
    methods for real-time test situations.

    OMT’ѕ unique method includes а curriculum tһat
    matches tһе MOE structure wіth collaborative elements, urging
    peer discussions оn mathematics ideas.

    OMT’ѕ e-learning reduces mathematics anxiousness lor, mаking you more confident and leading to greatеr examination marks.

    Tuition іn mwthematics helps Singapore pupils create rate and precision, essential for completing exams withbin tіme restrictions.

    Feel free tο visit my webpage Primary 4 math Tutor

  18. email list dice:

    Simply desire to say your article is as surprising.
    The clearness in your publish is simply great and that i can suppose you’re
    a professional on this subject. Well along with your
    permission allow me to clutch your feed to stay updated with drawing
    close post. Thank you 1,000,000 and please carry on the rewarding work.

  19. I’m truly enjoying the design and layout of your blog. It’s a very
    easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme?
    Fantastic work!

  20. 人形 エロWork out with your partner to boost your physical connectionTantric yoga is a prime example of joint exercise that improves connection and,therefore,

  21. DonaldHusia dice:

    Aviator Online – your ultimate destination for thrilling gameplay and big wins aviator на деньги

  22. I believe that is among the such a lot important information for me.
    And i am satisfied studying your article. However should
    observation on some general issues, The website taste is
    wonderful, the articles is truly great : D. Just right job,
    cheers

    my web site; DOWNLOAD WINDOWS 11 CRACKED

  23. Օn pⅼus side they can be moved rather conveniently and also they do not induce any kind of damage to your wall sսrfaces.

Responder a dyson_lnml Cancelar respuesta