summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/create-nodes/defaults/main.yml
blob: b03f138681e864a792521ca3b6f0aab8639728a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# defaults file for bifrost-create-vm-nodes
baremetal_json_file: '/tmp/baremetal.json'

# We collect these parameters from the pdf
vm_nic: "virtio"
vm_groups: {}
vm_default_groups: "{{ lookup('env', 'DEFAULT_HOST_GROUPS').split() | default(['baremetal'], true) }}"
vm_disk_cache: unsafe
node_names: "{{ lookup('env', 'NODE_NAMES').split() }}"

network_bridge_admin: 'br-admin'
network_bridge_mgmt: 'br-mgmt'

vm_network_admin: "{{ lookup('env', 'VM_NET_BRIDGE') | default('admin', true) }}"
vm_network_mgmt: "{{ lookup('env', 'VM_NET_BRIDGE_MGMT') | default('mgmt', true) }}"

node_network_netmask: "255.255.255.0"

node_storage_pool: "{{ lookup('env', 'LIBVIRT_STORAGE_POOL') | default('default', true) }}"
node_storage_pool_path: "/var/lib/libvirt/images"
node_logdir: "/var/log/libvirt/baremetal_logs"
# NOTE(pas-ha) next two are generic values for most OSes, overridden by distro-specifc vars
vm_emulator: "/usr/bin/qemu-system-x86_64"
# NOTE(pas-ha) not really tested with non-local qemu connections
vm_libvirt_uri: "{{ lookup('env', 'LIBVIRT_CONNECT_URI') | default('qemu:///system', true) }}"

opnfv_image_path: "/var/lib/libvirt/images"

libvirt_networks: "{{ (baremetal | bool) | ternary([vm_network_admin,vm_network_mgmt],[vm_network_admin]) }}"