https://github.com/virt-lightning/ansible-role-virt-lightning
Ansible role to deploy virt-lightning
https://github.com/virt-lightning/ansible-role-virt-lightning
Last synced: 3 months ago
JSON representation
Ansible role to deploy virt-lightning
- Host: GitHub
- URL: https://github.com/virt-lightning/ansible-role-virt-lightning
- Owner: virt-lightning
- Created: 2019-02-28T22:55:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T13:47:05.000Z (about 2 years ago)
- Last Synced: 2024-05-13T15:03:11.726Z (about 2 years ago)
- Language: Jinja
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use the Ansible role ansible-role-virt-lightning
## What does it do
This is an Ansible role to install, configure and test Virt-Lightning.
Virt-Lightning can quickly deploy new virtual machines using `libvirt`. It also prepares the Ansible inventory file.
Following tasks will be executed by the role:
1. Install the virt-lightning dependencies including `git`, `libvirt`, `python` modules, `rsync` (some are distribution specific).
2. Configure libvirt on the system.
3. Create the virt-lightning environment in `~/virt-lightning`.
4. Configure virt-lightning (`~/.config/virt-lightning/config.ini`).
5. Prepare an image
6. Test that virt-lightning is able to create, run, and destroy a virtual
machine.
## Requirements
None.
## Role variables
* Skip the tests (default to false):
````
virt_lightning_run_tests: true
````
* Configure the URI of the Qemu system:
````
virt_lightning_qemu_uri: qemu:///system
````
## Dependencies
None.
## Example Playbook
````
- hosts: servers
vars_files:
- vars/main.yml
roles:
- { role: virt-lightning/ansible-role-virt-lightning }
````
## License
Apache License 2.0
## Author Information
This role was created in 2019 by Goneri Le Bouder and the virt-lightning team.