blob: 32e4316b6686629a4c20559a04ec9a31b241f07c (
plain) (
tree)
|
|
# managed by Ansible
# network
switch "{{ vmm_network_switch.name }}" {
interface {{ vmm_network_switch.interface }}
}
# virtual machines
{% for vm in vmm_vms %}
vm "{{ vm.name }}" {
{% if vm.enabled is defined and not vm.enabled %}
disable
{% endif %}
{% if vm.image == "openbsd" %}
boot "/bsd.vm.{{ vm.name }}"
{% endif %}
memory {{ vm.memory }}
disk "{{ vmm_disk_dir }}/{{ vm.name }}.{{ vmm_disk_format }}"
interface {
switch "{{ vmm_network_switch.name }}"
lladdr {{ vm.lladdr }}
}
}
{% endfor %}
|