||3 months ago|
|group_vars||3 months ago|
|host_vars/vmserver||3 months ago|
|roles||3 months ago|
|.gitignore||3 months ago|
|Readme.md||3 months ago|
|ansible.cfg||3 months ago|
|create-vm.yml||3 months ago|
|hosts||3 months ago|
|setup-libvirt.yml||3 months ago|
This repo uses ansible to make the git setup (and potential further service deployments) comprehensible for future maintenance.
It is a basic ansible repo with to main roles:
- libvirt for vm creation
Other services could be added as further roles.
Ansible uses playbooks, to configure the hardware as wished. The roles should be indempotent and could be run arbitraryly often.
The libvirt setup
The role installs
libvirt on the vmhost and uses
virt-install and debian cloud images
to create the vms.
Run it with
ansible-playbook -D create-vm.yml
It asks the user a few questions and create a new entry for the new vm in this repository. Please push it to master afterwards.
Sensible information is encrypted and stored inside a so called vault.
One example is
It is decrypted on the fly, when using a playbook. To be able to decrypt the vault, you
need a password file called
vault_pass which has to be copied manually into the repo.
It is explicitly excluded from git.
Ask Carl for
ansible-vault to mess around with the vault files manually.