aboutsummaryrefslogblamecommitdiffstats
path: root/roles/vmm/templates/vm.conf.j2
blob: df15c7b749fdea8f12987dc8b0b02128a58beaab (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                    
                       



                                                 
                              
                                                                  
           








                                                                     
# 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 "{{ vmm_image_openbsd_kernel_prefix }}.{{ 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 %}
remember that computers suck.