diff options
author | Rihab Banday <rihab.banday@ericsson.com> | 2021-05-31 20:23:21 +0200 |
---|---|---|
committer | Rihab Banday <rihab.banday@ericsson.com> | 2021-09-01 15:03:29 +0000 |
commit | bc1786a24447121b5005492aaea8ca786135be29 (patch) | |
tree | cd6ced17b39538afc2bb97c733bf9a18560af5c5 /playbooks/roles/bmra-config | |
parent | 3fe71dc93fb81199401f921c10d4fe6220aa7175 (diff) |
Add initial config to support deployments on VMs
* Add initial version of PDF and IDF that
will be consumed by the hardware provisioner used in
Kuberef to bring up libvirt VMs (for now 2 VMs for dev purposes).
* Add deploy_on_vms.sh script to deploy Kuberef on VMs
* Add new functions referenced by the deploy_on_vms.sh
script - these can be merged with existing functions
* Modify some of te BMRA templates to accomodate new changes.
This has been tested on Ubuntu 18.04 baremetal server.
Change-Id: I95a5e85cdab95befd24a1cae9f367b32ce26621e
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72621
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
Diffstat (limited to 'playbooks/roles/bmra-config')
-rw-r--r-- | playbooks/roles/bmra-config/templates/inventory.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/roles/bmra-config/templates/inventory.j2 b/playbooks/roles/bmra-config/templates/inventory.j2 index 9b91c5f..f22aa56 100644 --- a/playbooks/roles/bmra-config/templates/inventory.j2 +++ b/playbooks/roles/bmra-config/templates/inventory.j2 @@ -6,7 +6,7 @@ SPDX-License-Identifier: Apache-2.0 [all] {% for node in nodes %} -{{ idf.kubespray.hostnames[node.name] }} ansible_host={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} ip={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} +{{ idf.kubespray.hostnames[node.name] }} ansible_host={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} ip={{ node.interfaces[idf.net_config[engine.pxe_network].interface].address }} {% if vendor|lower == 'libvirt-vms' %} ansible_user=root {% endif %}{{''}} {% endfor %} localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python2 |