diff options
author | Manuel Buil <mbuil@suse.com> | 2018-10-04 15:30:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-04 15:30:59 +0000 |
commit | 637814daf8715d70e1ee9b120ec6f8ebea0be9b5 (patch) | |
tree | 84e2b2cb9d9ea20b9785440ab3430afc8738d4b1 /xci/playbooks/roles/create-nodes/defaults/main.yml | |
parent | 342239db77b3e447ea91bd3d034248d080e6c335 (diff) | |
parent | f54c78e2c36d7db53260bc868b5b538cb8e9d911 (diff) |
Merge "[Baremetal] - Change roles and playbooks names"
Diffstat (limited to 'xci/playbooks/roles/create-nodes/defaults/main.yml')
-rw-r--r-- | xci/playbooks/roles/create-nodes/defaults/main.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/xci/playbooks/roles/create-nodes/defaults/main.yml b/xci/playbooks/roles/create-nodes/defaults/main.yml new file mode 100644 index 00000000..6ac266a5 --- /dev/null +++ b/xci/playbooks/roles/create-nodes/defaults/main.yml @@ -0,0 +1,27 @@ +--- +# 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() }}" + +# NOTE(pas-ha) name and default are chosen to be the same +# as in 'bifrost-ironic-install' role +network_interface: "virbr0" +# NOTE(pas-ha) these correspond to settings for the libvirt network created by default +vm_network: "{{ lookup('env', 'VM_NET_BRIDGE') | default('default', 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" |