Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgl/packer-qemu-ansible-debian-example
provision a VM image using Ansible from a Packer template
https://github.com/rgl/packer-qemu-ansible-debian-example
ansible debian packer qemu vagrant
Last synced: 12 days ago
JSON representation
provision a VM image using Ansible from a Packer template
- Host: GitHub
- URL: https://github.com/rgl/packer-qemu-ansible-debian-example
- Owner: rgl
- Created: 2021-12-11T18:30:49.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-17T09:00:11.000Z (over 1 year ago)
- Last Synced: 2024-10-11T07:18:54.745Z (26 days ago)
- Topics: ansible, debian, packer, qemu, vagrant
- Language: HCL
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This shows how to provision a VM image using [Ansible](https://www.ansible.com/) from a [Packer](https://www.packer.io/) template.
# Usage (Ubuntu 22.04)
Install packer, qemu/kvm, docker, make, vagrant and the [Debian 12 vagrant box](https://github.com/rgl/debian-vagrant).
Provision the VM image and vagrant box:
```bash
make
```Try using the VM image in a new VM:
```bash
vagrant box add -f packer-qemu-ansible-debian-example packer-qemu-ansible-debian-example.box
pushd example
vagrant up --no-destroy-on-error --no-tty --provider=libvirt
vagrant ssh
exit
vagrant destroy -f
popd
vagrant box remove -f packer-qemu-ansible-debian-example
```