21 lines
702 B
YAML
21 lines
702 B
YAML
---
|
|
# default resources for new vm
|
|
dsk_size: 20
|
|
mem_size: 1536
|
|
num_cpus: 1
|
|
|
|
# extra args for virt-install
|
|
ks_file: "{{ boot_url }}/ks/centos7.ks"
|
|
ipcmd: >-
|
|
{% if network_interfaces[0]['proto'] is defined %}
|
|
{% if network_interfaces[0]['proto'] == 'static' %}
|
|
{% set int=network_interfaces[0] %}
|
|
{% if int['ipaddr'] is defined and int['gateway'] is defined %}
|
|
nameserver=8.8.8.8
|
|
ip={{ int['ipaddr'] }}::{{ int['gateway'] }}:{{ int['netmask'] }}:::none
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
virt_install_os_args: >
|
|
--extra-args "ks={{ ks_file }} console=ttyS0 net.ifnames=0 ksdevice=eth0 {{ ipcmd }}"
|
|
--location https://nic.funet.fi/pub/mirrors/centos.org/7/os/x86_64
|