summaryrefslogtreecommitdiffstats
path: root/playbooks
AgeCommit message (Collapse)AuthorFilesLines
2022-04-21Fix bug of loading wrong PDF and IDF filesxudan161-3/+3
Also fix KUB-62 and another tiny bug JIRA: KUB-62 Signed-off-by: xudan16 <xudan16@huawei.com> Change-Id: I0ec0837b60110fc6af6bd49c6e5c9564dc38adc2 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73306 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-10-15Updates Kuberef to use BMRA v21.08Michael S. Pedersen2-35/+56
Updates BMRA tag to v21.08 Updates Kuberef templates for BMRA configuration Updates idf.yml (hw_config) to match changes to BMRA Adds new and updated BMRA patches Fixes a few bugs in functions.sh Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: Ifbd4d60af76dac45e49145f00cbeb90de0f7c719 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72927 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-09-01Add initial config to support deployments on VMsRihab Banday4-1/+142
* 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>
2021-08-12Fix jinja2 rendering issueRihab Banday1-2/+2
This patch changes the order of the lines to fix the jinja2 rendering issue caused by the introduction of license headers. Signed-off-by: Rihab Banday <rihab.banday@ericsson.com> Change-Id: I216c40669a71f5ff233ba8e154c535fdc45ec76c Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72825 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Georg Kunz <georg.kunz@ericsson.com> Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2021-08-12Align license headers with REUSE guidelinesGeorg Kunz19-120/+88
This patch applies a consistent use of license and copyright headers to all source files according to the guidelines of REUSE. Signed-off-by: Georg Kunz <georg.kunz@ericsson.com> Change-Id: I8973efe304e8fb03ad0861d4b8356221d898d548 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72804 Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com> Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
2021-07-19Added support for Docker Hub credentials (CI)Michael S. Pedersen1-1/+1
When credentials are available on the Ansible host (/opt/kuberef/docker_config) they will be added to the K8s nodes. Also includes a minor change to increase the resources in the Kuberef VM Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: I9acb0df97d2b423449ee57ae3d8241b2d9567ba2 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72768 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-05-04Add support for deployment on multiple OS distrosRihab Banday1-0/+1
This patch introduces a variable to support deployments on different OS distros. Change-Id: I9cad126a57acbf662c4c97cfc5a275594f4d3f06 Signed-off-by: Rihab Banday <rihab.banday@ericsson.com> Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71843 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2021-04-28Update BMRA to v21.03Michael S. Pedersen3-32/+148
Update Kuberef to use most recent release of BMRA. Also updates configuration with minor changes and additions. Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: Ifc4ef114564a2085000c23347390089227c0ebd9 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72429 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-03-03Support Ubuntu 18.04 and 20.04 LTS as target OSMichael S. Pedersen2-1/+19
Fixes: [KUB-42] Add support for Ubuntu 18.04 and 20.04 LTS as host OS on target nodes Also includes patch for using vfio-pci module on Ubuntu 18.04 LTS Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: Id6150ff30040addfdd7d860bec48583e33a25c59 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71788 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-02-18Update BMRA to v2.1Michael S. Pedersen3-13/+13
Updated Kuberef to use BMRA v2.1 instead of v2.0. Removed a few workarounds used for BMRA v2.0. Updated a few dependencies in deployment container. Updated Kuberef templates for BMRA configuration. Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: I091da09277ca9ecc0d3d7574dc3c4f000e73432d Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72064 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-02-02Fixes issue with backing image format ↵Michael S. Pedersen1-1/+1
(https://libvirt.org/kbase/backing_chains.html#manual-image-creation) Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: I6b0c39b7c4a4f20911e01014687a23c2c42a9e26 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71841 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2021-01-20Fix a set of issues with K8s deploymentMichael S. Pedersen1-0/+12
[KUB-37] BMRA v2.0 fails to install on Centos 8.3 [KUB-38] [BMRA] Helm repo is unreachable [KUB-39] [BMRA] CMK binary doesn't run on Centos 8 [KUB-40] [BMRA] CMK isn't installed on host [KUB-41] [Equinix Metal] Unexpected GRUB settings on CentOS Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: Ie7deb0517cda02352936420a9d36348238caa467 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71784 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2020-12-15Replace older BMRA docker image with new one & addRihab Banday1-0/+2
changes for running it in CentOS 7 This change updates the Docker file of the BMRA container & replaces the old image by the new one. Additionally, it introduces changes needed to deploy BMRA on CentOS 7. Change-Id: I3f951bd147b457606719243d95fe48df14ecd449 Signed-off-by: Rihab Banday <rihab.banday@ericsson.com> Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71613 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2020-12-03Update BMRA to v2.0Michael S. Pedersen7-4/+328
Also adds configuration of BMRA through the existing hw_config files (idf, pdf) and better handling of dependencies. Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Change-Id: Iedaf249f01ea3e1e00c889e846e21644adff98c7 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71504 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com> Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2020-11-13Add support for deploying to Equinix Metal bare-metal serversMichael S. Pedersen10-18/+161
Adds an additional hw_config which is simplified (equinix-metal). Adds support for skipping HW provisioning (pre-provisioned through EM). Usage: deploy.sh [k8s] Adds a few new helper functions, and updates existing to support changes. Signed-off-by: Michael S. Pedersen <michaelx.pedersen@intel.com> Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I2f84c662d183ba224e0edd8a218abe8b46c1fe45 Signed-off-by: Victor Morales <v.morales@samsung.com> Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71301 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com> Reviewed-by: Victor Morales <chipahuac@hotmail.com>
2020-11-13Switch to older settings for ansible playbooks andRihab Banday1-1/+1
VM creation steps This change introduces two (older) settings needed for CentOS 7 which were removed by recent patches that were tested only on Ubuntu 16.04. These settings have been already tested on Ubtunu 16.04. Change-Id: I3039d650b59869d45e11afdda8827c850f686195 Signed-off-by: Rihab Banday <rihab.banday@ericsson.com> Co-Authored-By: Victor Morales <v.morales@samsung.com> Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71233 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
2020-11-12Fix linting issuesVictor Morales1-0/+1
This change fixes some linting issues accumulated from previous patchsets and ignored by the CI jobs. Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I0bf2e67aee786505e9c01570d4d8d99df62b1f9f Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71377 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Tested-by: Georg Kunz <georg.kunz@ericsson.com> Reviewed-by: Georg Kunz <georg.kunz@ericsson.com> Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
2020-09-22Rendering BMRA inventory from IDF and PDF via ansibleGeorg Kunz3-0/+41
This patch adds a simple playbook which renders the BMRA inventory from the supplied set of PDF and IDF. Signed-off-by: Georg Kunz <georg.kunz@est.tech> Change-Id: I2cd555440ad51594d5a2b482bfad085769d0e4e0 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70892 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Rihab Banday <rihab.banday@ericsson.com>
2020-09-10Implementing jump VM create via ansibleGeorg Kunz7-0/+180
This patch reimplements the creation of the jump VM as ansible playbook. The advantage of this approach is a more deterministic behavior and the ability to render configuration files using templates based on the pdf and idf. Moreover, this patch allows to overwrite the VENDOR variable. This is necessary to allow deployment in different labs via CI. The BMRA configuration has not yet been transformed to ansible template and needs to follow in subsequent patches. Signed-off-by: Georg Kunz <georg.kunz@est.tech> Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I2cde41dcecec7480bddf71ed864f06244a89f1f3 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70882 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Victor Morales <chipahuac@hotmail.com>