ok, lets try defaulting this with ansible variables.
This commit is contained in:
parent
0e1762f67b
commit
dd513420a3
1 changed files with 9 additions and 6 deletions
|
@ -52,9 +52,9 @@ main_bridge: br0
|
|||
nfs_bridge: br1
|
||||
|
||||
virt_install_command_one_nic: virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|defaut(mem_size * 5) }} --memballoon virtio
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default(num_cpus * 5) }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x
|
||||
'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }} nameserver={{ dns }}
|
||||
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none'
|
||||
|
@ -62,9 +62,9 @@ virt_install_command_one_nic: virt-install -n {{ inventory_hostname }}
|
|||
--autostart --noautoconsole --watchdog default
|
||||
|
||||
virt_install_command_two_nic: virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|default(mem_size * 5) }} --memballoon virtio
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default(num_cpus * 5) }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x
|
||||
'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }} nameserver={{ dns }}
|
||||
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none
|
||||
|
@ -73,14 +73,17 @@ virt_install_command_two_nic: virt-install -n {{ inventory_hostname }}
|
|||
--autostart --noautoconsole --watchdog default
|
||||
|
||||
virt_install_command_rhel6: /usr/sbin/virt-install -n {{ inventory_hostname }}
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size|default(mem_size * 5) }}
|
||||
--memory={{ mem_size }},maxmemory={{ max_mem_size }}
|
||||
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_mem_size|default(num_cpus * 5) }} -l {{ ks_repo }} -x
|
||||
--vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x
|
||||
"ksdevice=eth0 ks={{ ks_url }} ip={{ eth0_ip }} netmask={{ nm }}
|
||||
gateway={{ gw }} dns={{ dns }} console=tty0 console=ttyS0
|
||||
hostname={{ inventory_hostname }}"
|
||||
--network=bridge=br0 --autostart --noautoconsole --watchdog default
|
||||
|
||||
max_mem_size: mem_size * 5
|
||||
max_cpu: num_cpus * 5
|
||||
|
||||
# This is the wildcard certname for our proxies. It has a different name for
|
||||
# the staging group and is used in the proxies.yml playbook.
|
||||
wildcard_cert_name: wildcard-2014.fedoraproject.org
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue