Skip to Content
Ansible: Up and Running, 3ª Edición
book

Ansible: Up and Running, 3ª Edición

by Bas Meijer, Lorin Hochstein, René Moser
September 2024
Intermediate to advanced
472 pages
11h 16m
Spanish
O'Reilly Media, Inc.
Content preview from Ansible: Up and Running, 3ª Edición

Capítulo 16. Crear imágenes

Este trabajo se ha traducido utilizando IA. Agradecemos tus opiniones y comentarios: translation-feedback@oreilly.com

Crear imágenes con Packer

Packer es una herramienta que ayuda a crear imágenes de máquina para múltiples plataformas a partir de una única fuente. Con Packer pueden crearse tanto imágenes de máquinas virtuales como imágenes de contenedores.

Un Dockerfile te permite empaquetar tu aplicación en una sola imagen que es fácil de implementar en diferentes entornos (aunque sólo en una plataforma de contenedores), razón por la cual el proyecto Docker ha adoptado la metáfora del contenedor de envío. Su API remota simplifica la automatización de los sistemas de software que se ejecutan sobre Docker, pero hay que ser consciente de los retos de seguridad que plantea una API de este tipo.

Para imágenes de contenedores sencillas, el Dockerfile estándar funciona bien. Sin embargo, cuando empieces a crear imágenes más complejas, echarás rápidamente de menos la potencia que proporciona Ansible. Afortunadamente, puedes utilizar los playbooks de Ansible como aprovisionador para HashiCorp Packer. Utilizar un playbook con roles ayuda a reducir la complejidad.

Los flujos de trabajo de este capítulo son útiles cuando quieres posponer la elección de dónde y cómo ejecutas tus aplicaciones; con una sola fuente, puedes crear imágenes para varios proveedores de nube, así como para contenedores. También puedes reducir tus facturas de la nube porque puedes combinar ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Redes y Kubernetes

Redes y Kubernetes

James Strong, Vallery Lancey
Kubernetes: Up and Running, 3ª Edición

Kubernetes: Up and Running, 3ª Edición

Brendan Burns, Joe Beda, Kelsey Hightower, Lachlan Evenson

Publisher Resources

ISBN: 9781098182922