Add fedora support for deploying kvm guests
This commit is contained in:
parent
fdb5cc437e
commit
5bc970fdd1
2 changed files with 20 additions and 0 deletions
19
group_vars/fedora.yml
Normal file
19
group_vars/fedora.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
# default resources for new vm
|
||||
dsk_size: 20
|
||||
mem_size: 2048
|
||||
num_cpus: 1
|
||||
|
||||
# extra args for virt-install
|
||||
ks_file: "{{ boot_url }}/ks/fedora.ks"
|
||||
ipcmd: >-
|
||||
{% if network_interfaces[0]['proto'] is defined %}
|
||||
{% if network_interfaces[0]['proto'] == 'static' %}
|
||||
{% set int=network_interfaces[0] %}
|
||||
nameserver=8.8.8.8
|
||||
ip={{ int['ipaddr'] }}::{{ int['gateway'] }}:{{ int['netmask'] }}:::none
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
virt_install_os_args: >
|
||||
--location https://download.fedoraproject.org/pub/fedora/linux/releases/32/Everything/x86_64/os
|
||||
--extra-args "ks={{ ks_file }} console=ttyS0 net.ifnames=0 ksdevice=eth0 {{ ipcmd }}"
|
|
@ -17,6 +17,7 @@
|
|||
with_items:
|
||||
- bind-utils # dig
|
||||
- bzip2 # bzip
|
||||
- cronie # missing from fedora
|
||||
- curl # curl
|
||||
- iotop # monitor io usage
|
||||
- mailx # send mail from cmd
|
||||
|
|
Loading…
Add table
Reference in a new issue