Ansible git move 25/31925/4
authorpmikus <pmikus@cisco.com>
Thu, 8 Apr 2021 10:44:18 +0000 (10:44 +0000)
committerPeter Mikus <pmikus@cisco.com>
Thu, 8 Apr 2021 11:17:15 +0000 (11:17 +0000)
+ Better accessibility
+ Compliant with fdio.infra._function_
  - function [pxe|terraform|ansible|vagrant]
+ dill==0.3.3 also applied on TBs
  - ci-man to follow today
- Docs to be updated in separate patch

Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: Iff9eaa29d63044188cc8160db2d9b44b7635782a

215 files changed:
fdio.infra.ansible/.gitignore [moved from resources/tools/testbed-setup/ansible/.gitignore with 100% similarity]
fdio.infra.ansible/cloud_topology.yaml [moved from resources/tools/testbed-setup/ansible/cloud_topology.yaml with 100% similarity]
fdio.infra.ansible/dev.yaml [moved from resources/tools/testbed-setup/ansible/dev.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/group_vars/all.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/group_vars/all.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.16.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.16.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.17.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.17.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.18.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.18.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.20.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.20.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.21.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.21.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.22.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.22.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.24.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.24.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.25.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.25.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.26.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.26.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.28.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.28.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.29.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.29.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.30.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.30.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.32.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.32.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.33.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.33.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.34.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.34.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.35.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.35.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.36.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.36.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.37.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.37.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.38.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.38.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.39.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.39.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.40.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.40.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.44.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.44.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.45.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.45.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.46.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.46.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.47.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.47.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.48.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.48.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.49.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.49.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.50.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.50.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.51.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.51.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.52.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.52.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.53.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.53.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.54.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.54.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.55.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.55.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.56.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.56.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.57.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.57.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.58.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.58.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.59.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.59.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.60.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.60.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.65.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.65.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.66.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.66.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.67.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.67.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.68.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.68.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.69.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.69.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.70.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.30.51.71.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.10.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.10.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.11.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.11.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.12.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.12.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.13.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.13.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.14.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.14.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.15.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.15.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.16.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.16.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.17.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.17.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.18.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.18.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.19.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.19.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.20.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.20.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.21.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.21.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.22.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.22.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.23.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.23.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.24.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.24.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/host_vars/10.32.8.25.yaml [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/host_vars/10.32.8.25.yaml with 100% similarity]
fdio.infra.ansible/inventories/lf_inventory/hosts [moved from resources/tools/testbed-setup/ansible/inventories/lf_inventory/hosts with 100% similarity]
fdio.infra.ansible/inventories/sample_inventory/group_vars/all.yaml [moved from resources/tools/testbed-setup/ansible/inventories/sample_inventory/group_vars/all.yaml with 100% similarity]
fdio.infra.ansible/inventories/sample_inventory/host_vars/1.1.1.1.yaml [moved from resources/tools/testbed-setup/ansible/inventories/sample_inventory/host_vars/1.1.1.1.yaml with 100% similarity]
fdio.infra.ansible/inventories/sample_inventory/hosts [moved from resources/tools/testbed-setup/ansible/inventories/sample_inventory/hosts with 100% similarity]
fdio.infra.ansible/nomad.yaml [moved from resources/tools/testbed-setup/ansible/nomad.yaml with 100% similarity]
fdio.infra.ansible/roles/ab/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/ab/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/ab/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/ab/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/aws/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/aws/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/aws/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/aws/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/aws/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/aws/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/aws/tasks/ubuntu_bionic.yaml [moved from resources/tools/testbed-setup/ansible/roles/aws/tasks/ubuntu_bionic.yaml with 100% similarity]
fdio.infra.ansible/roles/aws/tasks/ubuntu_focal.yaml [moved from resources/tools/testbed-setup/ansible/roles/aws/tasks/ubuntu_focal.yaml with 100% similarity]
fdio.infra.ansible/roles/azure/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/azure/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/azure/files/10-dtap.link [moved from resources/tools/testbed-setup/ansible/roles/azure/files/10-dtap.link with 100% similarity]
fdio.infra.ansible/roles/azure/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/azure/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/azure/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/azure/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/baremetal/handlers/cimc.yaml [moved from resources/tools/testbed-setup/ansible/roles/baremetal/handlers/cimc.yaml with 100% similarity]
fdio.infra.ansible/roles/baremetal/handlers/ipmi.yaml [moved from resources/tools/testbed-setup/ansible/roles/baremetal/handlers/ipmi.yaml with 100% similarity]
fdio.infra.ansible/roles/baremetal/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/baremetal/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/cadvisor/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/cadvisor/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/cadvisor/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/cadvisor/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/calibration/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/calibration/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/calibration/tasks/aarch64.yaml [moved from resources/tools/testbed-setup/ansible/roles/calibration/tasks/aarch64.yaml with 100% similarity]
fdio.infra.ansible/roles/calibration/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/calibration/tasks/x86_64.yaml [moved from resources/tools/testbed-setup/ansible/roles/calibration/tasks/x86_64.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/files/reset_vppdevice.sh [moved from resources/tools/testbed-setup/ansible/roles/cleanup/files/reset_vppdevice.sh with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/clean_images.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/clean_images.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/kill_containers.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_containers.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/kill_process.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/nomad.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/nomad.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/remove_package.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/sut.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/sut.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/tg.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/tg.yaml with 100% similarity]
fdio.infra.ansible/roles/cleanup/tasks/vpp_device.yaml [moved from resources/tools/testbed-setup/ansible/roles/cleanup/tasks/vpp_device.yaml with 100% similarity]
fdio.infra.ansible/roles/common/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/common/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/common/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/common/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/common/tasks/main.yaml [new file with mode: 0644]
fdio.infra.ansible/roles/consul/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/consul/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/consul/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/consul/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/consul/meta/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/consul/meta/main.yaml with 100% similarity]
fdio.infra.ansible/roles/consul/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/consul/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/consul/templates/base.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/base.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/templates/consul.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/consul.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/templates/consul_systemd.service.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/consul_systemd.service.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/templates/ports.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/ports.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/templates/services.json.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/services.json.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/templates/telemetry.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/consul/templates/telemetry.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/consul/vars/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/consul/vars/main.yaml with 100% similarity]
fdio.infra.ansible/roles/csit_sut_image/files/Dockerfile [moved from resources/tools/testbed-setup/ansible/roles/csit_sut_image/files/Dockerfile with 100% similarity]
fdio.infra.ansible/roles/csit_sut_image/files/supervisord.conf [moved from resources/tools/testbed-setup/ansible/roles/csit_sut_image/files/supervisord.conf with 100% similarity]
fdio.infra.ansible/roles/csit_sut_image/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/csit_sut_image/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/meta/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/meta/main.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/tasks/ubuntu_bionic.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/tasks/ubuntu_bionic.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/tasks/ubuntu_focal.yaml [moved from resources/tools/testbed-setup/ansible/roles/docker/tasks/ubuntu_focal.yaml with 100% similarity]
fdio.infra.ansible/roles/docker/templates/daemon.json.j2 [moved from resources/tools/testbed-setup/ansible/roles/docker/templates/daemon.json.j2 with 100% similarity]
fdio.infra.ansible/roles/docker/templates/docker.service.proxy.http [moved from resources/tools/testbed-setup/ansible/roles/docker/templates/docker.service.proxy.http with 100% similarity]
fdio.infra.ansible/roles/docker/templates/docker.service.proxy.https [moved from resources/tools/testbed-setup/ansible/roles/docker/templates/docker.service.proxy.https with 100% similarity]
fdio.infra.ansible/roles/dpdk/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/dpdk/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/dpdk/files/dpdk-mlx5.patch [moved from resources/tools/testbed-setup/ansible/roles/dpdk/files/dpdk-mlx5.patch with 100% similarity]
fdio.infra.ansible/roles/dpdk/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/dpdk/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/iperf/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/iperf/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/iperf/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/iperf/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/jenkins_job_health_exporter/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/jenkins_job_health_exporter/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/jenkins_job_health_exporter/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.j2 [moved from resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.j2 with 100% similarity]
fdio.infra.ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.service.j2 [moved from resources/tools/testbed-setup/ansible/roles/jenkins_job_health_exporter/templates/jenkins-job-health-exporter.service.j2 with 100% similarity]
fdio.infra.ansible/roles/kernel/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kernel/filter_plugins/main.py [moved from resources/tools/testbed-setup/ansible/roles/kernel/filter_plugins/main.py with 100% similarity]
fdio.infra.ansible/roles/kernel/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kernel/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_bionic.yaml with 100% similarity]
fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel/tasks/ubuntu_focal.yaml with 100% similarity]
fdio.infra.ansible/roles/kernel_vm/files/initramfs_modules [moved from resources/tools/testbed-setup/ansible/roles/kernel_vm/files/initramfs_modules with 100% similarity]
fdio.infra.ansible/roles/kernel_vm/files/initramfs_resume [moved from resources/tools/testbed-setup/ansible/roles/kernel_vm/files/initramfs_resume with 100% similarity]
fdio.infra.ansible/roles/kernel_vm/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kernel_vm/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kubernetes/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kubernetes/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kubernetes/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/kubernetes/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml [moved from resources/tools/testbed-setup/ansible/roles/kubernetes/tasks/ubuntu_bionic.yaml with 100% similarity]
fdio.infra.ansible/roles/mellanox/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/mellanox/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/nomad/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/nomad/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/nomad/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/nomad/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/nomad/meta/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/nomad/meta/main.yaml with 100% similarity]
fdio.infra.ansible/roles/nomad/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/nomad/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/base.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/base.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/client.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/client.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/custom.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/custom.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/nomad_systemd.service.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/nomad_systemd.service.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/server.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/server.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/telemetry.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/telemetry.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/templates/tls.hcl.j2 [moved from resources/tools/testbed-setup/ansible/roles/nomad/templates/tls.hcl.j2 with 100% similarity]
fdio.infra.ansible/roles/nomad/vars/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/nomad/vars/main.yaml with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/files/cpufrequtils [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/files/cpufrequtils with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/files/disable-turbo-boost.service [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/files/disable-turbo-boost.service with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/files/irqbalance [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/files/irqbalance with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/filter_plugins/main.py [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/filter_plugins/main.py with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/performance_tuning/tasks/turbo_boost.yaml [moved from resources/tools/testbed-setup/ansible/roles/performance_tuning/tasks/turbo_boost.yaml with 100% similarity]
fdio.infra.ansible/roles/prometheus_exporter/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/prometheus_exporter/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/prometheus_exporter/files/blackbox.yml [moved from resources/tools/testbed-setup/ansible/roles/prometheus_exporter/files/blackbox.yml with 100% similarity]
fdio.infra.ansible/roles/prometheus_exporter/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/prometheus_exporter/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/prometheus_exporter/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/prometheus_exporter/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/prometheus_exporter/tasks/ubuntu_bionic.yaml [moved from resources/tools/testbed-setup/ansible/roles/prometheus_exporter/tasks/ubuntu_bionic.yaml with 100% similarity]
fdio.infra.ansible/roles/python_env/defaults/main.yaml [new file with mode: 0644]
fdio.infra.ansible/roles/python_env/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml with 68% similarity]
fdio.infra.ansible/roles/tg/files/csit-initialize-docker-tg.service [moved from resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.service with 100% similarity]
fdio.infra.ansible/roles/tg/files/csit-initialize-docker-tg.sh [moved from resources/tools/testbed-setup/ansible/roles/tg/files/csit-initialize-docker-tg.sh with 98% similarity]
fdio.infra.ansible/roles/tg/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/tg/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/tg/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/tg/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/topology/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/topology/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/topology/templates/topology_2n_aws_c5n.j2 [moved from resources/tools/testbed-setup/ansible/templates/topology_2n_aws_c5n.j2 with 100% similarity]
fdio.infra.ansible/roles/topology/templates/topology_3n_aws_c5n.j2 [moved from resources/tools/testbed-setup/ansible/templates/topology_3n_aws_c5n.j2 with 100% similarity]
fdio.infra.ansible/roles/topology/templates/topology_3n_azure_Fsv2.j2 [moved from resources/tools/testbed-setup/ansible/templates/topology_3n_azure_Fsv2.j2 with 100% similarity]
fdio.infra.ansible/roles/trex/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/trex/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/trex/files/t-rex.patch [moved from resources/tools/testbed-setup/ansible/roles/trex/files/t-rex.patch with 100% similarity]
fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml [moved from resources/tools/testbed-setup/ansible/roles/trex/tasks/deploy_block.yaml with 100% similarity]
fdio.infra.ansible/roles/trex/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/trex/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/user_add/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/user_add/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/user_add/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/user_add/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/user_add/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/user_add/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/vpp/defaults/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/vpp/defaults/main.yaml with 100% similarity]
fdio.infra.ansible/roles/vpp/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/vpp/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs-default.sh [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/files/csit-initialize-vfs-default.sh with 94% similarity]
fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs-tx2.sh [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/files/csit-initialize-vfs-tx2.sh with 100% similarity]
fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.service [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/files/csit-initialize-vfs.service with 100% similarity]
fdio.infra.ansible/roles/vpp_device/files/csit-initialize-vfs.sh [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/files/csit-initialize-vfs.sh with 98% similarity]
fdio.infra.ansible/roles/vpp_device/handlers/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/handlers/main.yaml with 100% similarity]
fdio.infra.ansible/roles/vpp_device/tasks/main.yaml [moved from resources/tools/testbed-setup/ansible/roles/vpp_device/tasks/main.yaml with 100% similarity]
fdio.infra.ansible/site.yaml [moved from resources/tools/testbed-setup/ansible/site.yaml with 100% similarity]
fdio.infra.ansible/sut.yaml [moved from resources/tools/testbed-setup/ansible/sut.yaml with 90% similarity]
fdio.infra.ansible/tg.yaml [moved from resources/tools/testbed-setup/ansible/tg.yaml with 90% similarity]
fdio.infra.ansible/vault.yml [moved from resources/tools/testbed-setup/ansible/vault.yml with 100% similarity]
fdio.infra.ansible/vault_pass [moved from resources/tools/testbed-setup/ansible/vault_pass with 100% similarity]
fdio.infra.ansible/vpp_device.yaml [moved from resources/tools/testbed-setup/ansible/vpp_device.yaml with 100% similarity]
fdio.infra.terraform/2n_aws_c5n/deploy/variables.tf
fdio.infra.terraform/2n_aws_c5n/main.tf
fdio.infra.terraform/3n_aws_c5n/deploy/variables.tf
fdio.infra.terraform/3n_aws_c5n/main.tf
requirements.txt
resources/libraries/bash/function/ansible.sh
resources/tools/testbed-setup/README.rst [deleted file]
resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64 [deleted file]
resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64 [deleted file]

diff --git a/fdio.infra.ansible/roles/common/tasks/main.yaml b/fdio.infra.ansible/roles/common/tasks/main.yaml
new file mode 100644 (file)
index 0000000..60b4984
--- /dev/null
@@ -0,0 +1,55 @@
+---
+# file: roles/common/tasks/main.yaml
+
+- name: Conf - Add permanent proxy settings
+  lineinfile:
+    path: "/etc/environment"
+    state: "present"
+    line: "{{ item.key }}={{ item.value }}"
+  with_dict: "{{ proxy_env }}"
+  when: proxy_env is defined
+  tags:
+    - common-conf-proxy
+
+- name: Inst - Update package cache (apt)
+  apt:
+    update_cache: yes
+    cache_valid_time: 3600
+  when:
+    - ansible_distribution|lower == 'ubuntu'
+  tags:
+    - common-inst-prerequisites
+
+- name: Inst - Prerequisites
+  package:
+    name: "{{ packages | flatten(levels=1) }}"
+    state: latest
+  tags:
+    - common-inst-prerequisites
+
+- name: Inst - Meson (DPDK)
+  pip:
+    name:
+      - "meson==0.47.1"
+  tags:
+    - common-inst-meson
+
+- name: Conf - sudoers admin
+  lineinfile:
+    path: "/etc/sudoers"
+    state: "present"
+    regexp: "^%admin ALL="
+    line: "%admin ALL=(ALL) ALL"
+    validate: "/usr/sbin/visudo -cf %s"
+  tags:
+    - common-conf-sudoers
+
+- name: Conf - sudoers nopasswd
+  lineinfile:
+    path: "/etc/sudoers"
+    state: "present"
+    regexp: "^%sudo"
+    line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
+    validate: "/usr/sbin/visudo -cf %s"
+  tags:
+    - common-conf-sudoers
diff --git a/fdio.infra.ansible/roles/python_env/defaults/main.yaml b/fdio.infra.ansible/roles/python_env/defaults/main.yaml
new file mode 100644 (file)
index 0000000..342d1c3
--- /dev/null
@@ -0,0 +1,41 @@
+---
+# file: roles/common/defaults/main.yaml
+
+packages: "{{ packages_base + packages_by_distro[ansible_distribution|lower][ansible_distribution_release] + packages_by_arch[ansible_machine] }}"
+
+packages_base:
+  - "virtualenv"
+
+packages_by_distro:
+  ubuntu:
+    bionic:
+      - "python-all"
+      - "python-apt"
+      - "python-cffi"
+      - "python-cffi-backend"
+      - "python-dev"
+      - "python-pip"
+      - "python-setuptools"
+      - "python3-all"
+      - "python3-apt"
+      - "python3-cffi"
+      - "python3-cffi-backend"
+      - "python3-dev"
+      - "python3-pip"
+      - "python3-pyelftools"
+      - "python3-setuptools"
+    focal:
+      - "python3-all"
+      - "python3-apt"
+      - "python3-cffi"
+      - "python3-cffi-backend"
+      - "python3-dev"
+      - "python3-pip"
+      - "python3-pyelftools"
+      - "python3-setuptools"
+
+packages_by_arch:
+  aarch64:
+    - []
+  x86_64:
+    - []
\ No newline at end of file
@@ -1,15 +1,5 @@
 ---
 ---
-# file: roles/common/tasks/main.yaml
-
-- name: Conf - Add permanent proxy settings
-  lineinfile:
-    path: "/etc/environment"
-    state: "present"
-    line: "{{ item.key }}={{ item.value }}"
-  with_dict: "{{ proxy_env }}"
-  when: proxy_env is defined
-  tags:
-    - common-conf-proxy
+# file: roles/python_env/tasks/main.yaml
 
 - name: Inst - Update package cache (apt)
   apt:
 
 - name: Inst - Update package cache (apt)
   apt:
@@ -40,7 +30,7 @@
       - "scapy==2.4.3"
       - "scp==0.13.2"
       - "ansible==2.10.7"
       - "scapy==2.4.3"
       - "scp==0.13.2"
       - "ansible==2.10.7"
-      - "dill==0.2.8.2"
+      - "dill==0.3.3"
       - "numpy==1.17.3"
       - "hdrhistogram==0.6.1"
       - "plotly==4.1.1"
       - "numpy==1.17.3"
       - "hdrhistogram==0.6.1"
       - "plotly==4.1.1"
       - "scipy==1.5.4"
   tags:
     - common-inst-pip
       - "scipy==1.5.4"
   tags:
     - common-inst-pip
-
-- name: Inst - Meson (DPDK)
-  pip:
-    name:
-      - "meson==0.47.1"
-  tags:
-    - common-inst-meson
-
-- name: Conf - sudoers admin
-  lineinfile:
-    path: "/etc/sudoers"
-    state: "present"
-    regexp: "^%admin ALL="
-    line: "%admin ALL=(ALL) ALL"
-    validate: "/usr/sbin/visudo -cf %s"
-  tags:
-    - common-conf-sudoers
-
-- name: Conf - sudoers nopasswd
-  lineinfile:
-    path: "/etc/sudoers"
-    state: "present"
-    regexp: "^%sudo"
-    line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
-    validate: "/usr/sbin/visudo -cf %s"
-  tags:
-    - common-conf-sudoers
-
-- meta: flush_handlers
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
 #!/usr/bin/env bash
 
-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
 #!/usr/bin/env bash
 
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
 #!/usr/bin/env bash
 
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2021 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
similarity index 90%
rename from resources/tools/testbed-setup/ansible/sut.yaml
rename to fdio.infra.ansible/sut.yaml
index 37a96c2..2a413d7 100644 (file)
@@ -16,6 +16,8 @@
       tags: baremetal
     - role: common
       tags: common
       tags: baremetal
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: kernel
       tags: kernel
     - role: mellanox
     - role: kernel
       tags: kernel
     - role: mellanox
@@ -52,6 +54,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: vpp
       tags: vpp
     - role: dpdk
     - role: vpp
       tags: vpp
     - role: dpdk
@@ -81,6 +85,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: docker
       tags: docker
     - role: vpp
     - role: docker
       tags: docker
     - role: vpp
@@ -93,7 +99,5 @@
       tags: azure
     - role: cleanup
       tags: cleanup
       tags: azure
     - role: cleanup
       tags: cleanup
-    # TODO: 'Check Kernel Parameters' failing in
-    # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
-    # - role: calibration
-    #   tags: calibration
+    - role: calibration
+      tags: calibration
similarity index 90%
rename from resources/tools/testbed-setup/ansible/tg.yaml
rename to fdio.infra.ansible/tg.yaml
index 3d5137f..01d2cbc 100644 (file)
@@ -16,6 +16,8 @@
       tags: baremetal
     - role: common
       tags: common
       tags: baremetal
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: kernel
       tags: kernel
     - role: mellanox
     - role: kernel
       tags: kernel
     - role: mellanox
@@ -54,6 +56,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: dpdk
       tags: dpdk
     - role: docker
     - role: dpdk
       tags: dpdk
     - role: docker
@@ -87,6 +91,8 @@
       tags: user_add
     - role: common
       tags: common
       tags: user_add
     - role: common
       tags: common
+    - role: python_env
+      tags: python_env
     - role: docker
       tags: docker
     - role: tg
     - role: docker
       tags: docker
     - role: tg
       tags: azure
     - role: cleanup
       tags: cleanup
       tags: azure
     - role: cleanup
       tags: cleanup
-    # TODO: 'Check Kernel Parameters' failing in
-    # resources/tools/testbed-setup/ansible/roles/calibration/tasks/main.yaml
-    # - role: calibration
-    #   tags: calibration
\ No newline at end of file
+    - role: calibration
+      tags: calibration
\ No newline at end of file
index 53efe6f..ca97470 100644 (file)
@@ -50,7 +50,7 @@ variable "first_run_commands" {
 variable "ansible_file_path" {
   description = "Path to Ansible playbook"
   type = string
 variable "ansible_file_path" {
   description = "Path to Ansible playbook"
   type = string
-  default = "../../resources/tools/testbed-setup/ansible/site.yaml"
+  default = "../../fdio.infra.ansible/site.yaml"
 }
 
 variable "ansible_python_executable" {
 }
 
 variable "ansible_python_executable" {
@@ -62,7 +62,7 @@ variable "ansible_python_executable" {
 variable "ansible_topology_path" {
   description = "Path to Ansible playbook which creates a topology file"
   type = string
 variable "ansible_topology_path" {
   description = "Path to Ansible playbook which creates a topology file"
   type = string
-  default = "../../resources/tools/testbed-setup/ansible/cloud_topology.yaml"
+  default = "../../fdio.infra.ansible/cloud_topology.yaml"
 }
 
 variable "ansible_provision_pwd" {
 }
 
 variable "ansible_provision_pwd" {
index 7a09067..1aebabd 100644 (file)
@@ -33,8 +33,8 @@ module "deploy" {
 
   # Ansible
   ansible_python_executable = "/usr/bin/python3"
 
   # Ansible
   ansible_python_executable = "/usr/bin/python3"
-  ansible_file_path         = "../../resources/tools/testbed-setup/ansible/site.yaml"
-  ansible_topology_path     = "../../resources/tools/testbed-setup/ansible/cloud_topology.yaml"
+  ansible_file_path         = "../../fdio.infra.ansible/site.yaml"
+  ansible_topology_path     = "../../fdio.infra.ansible/cloud_topology.yaml"
   ansible_provision_pwd     = "Csit1234"
 
   # First run
   ansible_provision_pwd     = "Csit1234"
 
   # First run
index 38a9133..5dbc481 100644 (file)
@@ -50,7 +50,7 @@ variable "first_run_commands" {
 variable "ansible_file_path" {
   description = "Path to Ansible playbook"
   type = string
 variable "ansible_file_path" {
   description = "Path to Ansible playbook"
   type = string
-  default = "../../resources/tools/testbed-setup/ansible/site.yaml"
+  default = "../../fdio.infra.ansible/site.yaml"
 }
 
 variable "ansible_python_executable" {
 }
 
 variable "ansible_python_executable" {
@@ -62,7 +62,7 @@ variable "ansible_python_executable" {
 variable "ansible_topology_path" {
   description = "Path to Ansible playbook which creates a topology file"
   type = string
 variable "ansible_topology_path" {
   description = "Path to Ansible playbook which creates a topology file"
   type = string
-  default = "../../resources/tools/testbed-setup/ansible/cloud_topology.yaml"
+  default = "../../fdio.infra.ansible/cloud_topology.yaml"
 }
 
 variable "ansible_provision_pwd" {
 }
 
 variable "ansible_provision_pwd" {
index 0aca7af..fca5eec 100644 (file)
@@ -36,8 +36,8 @@ module "deploy" {
 
   # Ansible
   ansible_python_executable = "/usr/bin/python3"
 
   # Ansible
   ansible_python_executable = "/usr/bin/python3"
-  ansible_file_path         = "../../resources/tools/testbed-setup/ansible/site.yaml"
-  ansible_topology_path     = "../../resources/tools/testbed-setup/ansible/cloud_topology.yaml"
+  ansible_file_path         = "../../fdio.infra.ansible/site.yaml"
+  ansible_topology_path     = "../../fdio.infra.ansible/cloud_topology.yaml"
   ansible_provision_pwd     = "Csit1234"
 
   # First run
   ansible_provision_pwd     = "Csit1234"
 
   # First run
index b467d6f..36d477d 100644 (file)
@@ -31,7 +31,7 @@ scp==0.13.2
 ansible==2.10.7
 
 # PLRsearch dependencies
 ansible==2.10.7
 
 # PLRsearch dependencies
-dill==0.2.8.2
+dill==0.3.3
 numpy==1.17.3
 scipy==1.5.4
 
 numpy==1.17.3
 scipy==1.5.4
 
index f522faa..3beca3f 100644 (file)
@@ -22,7 +22,7 @@ function ansible_adhoc () {
     #
     # Variable read:
     # - ${WORKING_TOPOLOGY} - Reserved working topology.
     #
     # Variable read:
     # - ${WORKING_TOPOLOGY} - Reserved working topology.
-    # - ${TOOLS_DIR} - CSIT tools directory, where testbed-setup is located.
+    # - ${CSIT_DIR} - CSIT main directory, where ansible playbooks are located.
 
     set -exuo pipefail
 
 
     set -exuo pipefail
 
@@ -33,7 +33,7 @@ function ansible_adhoc () {
     hosts=($(fgrep host "${WORKING_TOPOLOGY}" | cut -d ":" -f 2)) || {
         die "Failed to read hosts from working topology!"
     }
     hosts=($(fgrep host "${WORKING_TOPOLOGY}" | cut -d ":" -f 2)) || {
         die "Failed to read hosts from working topology!"
     }
-    pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!"
+    pushd "${CSIT_DIR}"/fdio.infra.ansible || die "Pushd failed!"
     export ANSIBLE_HOST_KEY_CHECKING=False
     export ANSIBLE_STDOUT_CALLBACK=yaml
     export ANSIBLE_PIPELINING=true
     export ANSIBLE_HOST_KEY_CHECKING=False
     export ANSIBLE_STDOUT_CALLBACK=yaml
     export ANSIBLE_PIPELINING=true
@@ -54,7 +54,7 @@ function ansible_playbook () {
     #
     # Variable read:
     # - ${WORKING_TOPOLOGY} - Reserved working topology.
     #
     # Variable read:
     # - ${WORKING_TOPOLOGY} - Reserved working topology.
-    # - ${TOOLS_DIR} - CSIT tools directory, where testbed-setup is located.
+    # - ${CSIT_DIR} - CSIT main directory, where ansible playbooks are located.
 
     set -exuo pipefail
 
 
     set -exuo pipefail
 
@@ -65,7 +65,7 @@ function ansible_playbook () {
     hosts=($(fgrep host "${WORKING_TOPOLOGY}" | cut -d ":" -f 2)) || {
         die "Failed to read hosts from working topology!"
     }
     hosts=($(fgrep host "${WORKING_TOPOLOGY}" | cut -d ":" -f 2)) || {
         die "Failed to read hosts from working topology!"
     }
-    pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!"
+    pushd "${CSIT_DIR}"/fdio.infra.ansible || die "Pushd failed!"
     export ANSIBLE_HOST_KEY_CHECKING=False
     export ANSIBLE_STDOUT_CALLBACK=yaml
     export ANSIBLE_PIPELINING=true
     export ANSIBLE_HOST_KEY_CHECKING=False
     export ANSIBLE_STDOUT_CALLBACK=yaml
     export ANSIBLE_PIPELINING=true
diff --git a/resources/tools/testbed-setup/README.rst b/resources/tools/testbed-setup/README.rst
deleted file mode 100644 (file)
index 9059e28..0000000
+++ /dev/null
@@ -1,152 +0,0 @@
-Testbed Setup
-=============
-
-Introduction
-------------
-
-This directory contains the *high-level* process to set up a hardware machine
-as a CSIT testbed, either for use as a physical performance testbed host or as
-a vpp_device host.
-
-Code in this directory is NOT executed as part of a regular CSIT test case
-but is stored here for ad-hoc installation of HW, archiving and documentation
-purposes.
-
-Documentation below is step by step tutorial and assumes an understanding of PXE
-boot and `Ansible <https://www.ansible.com/>`_ and managing physical hardware
-via CIMC or IPMI.
-
-This process is not specific for Linux Foundation lab, but associated files and
-code, is based on the assumption that it runs in Linux Foundation environment.
-If run elsewhere, changes will be required in following files:
-
-#. Inventory directory: `ansible/inventories/sample_inventory/`
-#. Inventory files: `ansible/inventories/sample_inventory/hosts`
-
-The process below assumes that there is a host used for bootstrapping (referred
-to as a "Cobbler provision host" below), with reachable DHCP service.
-
-Ansible host
-------------
-
-Prerequisities for running Ansible
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-- CIMC/IPMI address, username, password are set in BIOS.
-- Ansible can be invoked on any host that has direct SSH connectivity to
-  the remote hosts that will be provisioned (does not need to be Cobbler
-  provision host). This may require installed ssh_keys `ssh-copy-id` on remote
-  host or disabled StrictHostChecking on host running Ansible:
-
-  ::
-
-  Host <host_ip or host subnet_ip>
-        StrictHostKeyChecking no
-        UserKnownHostsFile=/dev/null
-
-- Ansible version 2.7+ is installed via PIP or via standard package
-  distribution (apt, yum, dnf).
-- User `testuser` with password `Csit1234` is created with home folder
-  initialized on all remote machines that will be provisioned.
-- Inventory directory is created with same or similar content as
-  `inventories/lf_inventory` in `inventories/` directory (`sample_inventory`
-  can be used).
-- Group variables in `ansible/inventories/<inventory>/group_vars/all.yaml` are
-  adjusted per environment with special attention to `proxy_env` variable.
-- Host variables in `ansible/inventories/<inventory>/host_vars/x.x.x.x.yaml` are
-  defined.
-
-Ansible structure
-~~~~~~~~~~~~~~~~~
-
-Ansible is defining roles `tg` (Traffic Generator), `sut` (System Under Test),
-`vpp_device` (vpp_device host for functional device testing), `common`
-(Applicable for all hosts in inventory) and `cobbler` (Cobbler provision host).
-
-Each host has corresponding Ansible role mapped and is applied only if a host
-with that role is present in inventory file. As a part of optimization the role
-`common` contains Ansible tasks applied for all hosts.
-
-.. note::
-
-   You may see `[WARNING]: Could not match supplied host pattern, ignoring:
-   <role>` in case you have not define hosts for that particular role.
-
-Ansible structure is described below:
-
-.. code-block:: bash
-
-   .
-   ├── inventories                     # Contains all inventories.
-   │   ├── sample_inventory            # Sample, free for edits outside of LF.
-   │   │   ├── group_vars              # Variables applied for all hosts.
-   │   │   │   └── all.yaml
-   │   │   ├── hosts                   # Inventory list with sample hosts.
-   │   │   └── host_vars               # Variables applied for single host only.
-   │   │       └── 1.1.1.1.yaml        # Sample host with IP 1.1.1.1
-   │   └── lf_inventory                # Linux Foundation inventory.
-   │       ├── group_vars
-   │       │   └── all.yaml
-   │       ├── hosts
-   │       └── host_vars
-   ├── roles                           # CSIT roles.
-   │   ├── cobbler                     # Role applied for Cobbler host only.
-   │   ├── common                      # Role applied for all hosts.
-   │   ├── sut                         # Role applied for all SUTs only.
-   │   ├── tg                          # Role applied for all TGs only.
-   │   ├── tg_sut                      # Role applied for TGs and SUTs only.
-   │   └── vpp_device                  # Role applied for vpp_device only.
-   ├── site.yaml                       # Main playbook.
-   ├── sut.yaml                        # SUT playbook.
-   ├── tg.yaml                         # TG playbook.
-   ├── vault_pass                      # Main password for vault.
-   ├── vault.yml                       # Ansible vault storage.
-   └── vpp_device.yaml                 # vpp_device playbook.
-
-Tagging
-~~~~~~~
-
-Every task, handler, role or playbook is tagged with self-explanatory tag(s)
-that could be used to limit which Ansible objects are applied to target systems.
-
-You can see what tags are applied to tasks, roles, and static imports by
-running `ansible-playbook` with the `--list-tasks` option. You can display all
-tags applied to the tasks with the `--list-tags` option.
-
-Running Ansible
-~~~~~~~~~~~~~~~
-
-#. Go to ansible directory: `$ cd csit/resources/tools/testbed-setup/ansible`
-#. Run ansible on selected hosts:
-   `$ ansible-playbook --vault-password-file=vault_pass --extra-vars
-   '@vault.yml' --inventory <inventory_file> site.yaml --limit <host_ip>`
-#. (Optional) Run ansible on selected hosts with selected tags:
-   `$ ansible-playbook --vault-password-file=vault_pass --extra-vars
-   '@vault.yml' --inventory <inventory_file> site.yaml --limit <host_ip>
-   --tags 'copy-90-csit'`
-
-.. note::
-
-   In case you want to provision only particular role. You can use tags: `tg`,
-   `sut`, `vpp_device`.
-
-Baremetal provisioning of host via Ansible Cobbler module
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Baremetal provisioning of the host with Ansible is done via `Cobbler
-<https://cobbler.github.io/>`_. Ansible contains a role `cobbler` that includes
-a set of tasks for deploying Cobbler in a container on dedicated host.
-Container is built during Ansible run of `cobbler` role and it provides DHCPD,
-TFTPD, HTTTP and Cobbler services.
-
-There is a special set of tasks and handlers in `common` role that does include
-a system into Cobbler and reboots provisioned host.
-
-#. Go to Ansible directory: `$ cd csit/resources/tools/testbed-setup/ansible`
-#. Prepare Cobbler provision host via Ansible on dedicated hosts:
-   `$ ansible-playbook --vault-password-file=vault_pass --extra-vars
-   '@vault.yml' --inventory <inventory_file> site.yaml --limit <cobbler_ip>`
-#. Run Ansible on selected hosts with selected tags:
-   `$ ansible-playbook --vault-password-file=vault_pass --extra-vars
-   '@vault.yml' --inventory <inventory_file> site.yaml --limit <host_ip>
-   --tags 'provision'`
diff --git a/resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64 b/resources/tools/testbed-setup/ansible/roles/common/files/grub_aarch64
deleted file mode 100644 (file)
index 38a2cc3..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# If you change this file, run 'update-grub' afterwards to update
-# /boot/grub/grub.cfg.
-# For full documentation of the options in this file, see:
-#   info -f grub -n 'Simple configuration'
-
-GRUB_DEFAULT=0
-GRUB_TIMEOUT=10
-GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=ttyAMA0,115200n8"
-GRUB_CMDLINE_LINUX=""
-
-# Uncomment to enable BadRAM filtering, modify to suit your needs
-# This works with Linux (no patch required) and with any kernel that obtains
-# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
-#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
-
-# Uncomment to disable graphical terminal (grub-pc only)
-#GRUB_TERMINAL=console
-GRUB_TERMINAL=serial
-GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
-
-# The resolution used on graphical terminal
-# note that you can use only modes which your graphic card supports via VBE
-# you can see them in real GRUB with the command `vbeinfo'
-#GRUB_GFXMODE=640x480
-
-# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
-#GRUB_DISABLE_LINUX_UUID=true
-
-# Uncomment to disable generation of recovery mode menu entries
-#GRUB_DISABLE_RECOVERY="true"
-
-# Uncomment to get a beep at grub start
-#GRUB_INIT_TUNE="480 440 1"
diff --git a/resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64 b/resources/tools/testbed-setup/ansible/roles/common/files/grub_x86_64
deleted file mode 100644 (file)
index d4e27b3..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# If you change this file, run 'update-grub' afterwards to update
-# /boot/grub/grub.cfg.
-# For full documentation of the options in this file, see:
-#   info -f grub -n 'Simple configuration'
-
-GRUB_DEFAULT=0
-GRUB_TIMEOUT=10
-GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=tty0 console=ttyS0,115200n8"
-GRUB_CMDLINE_LINUX=""
-
-# Uncomment to enable BadRAM filtering, modify to suit your needs
-# This works with Linux (no patch required) and with any kernel that obtains
-# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
-#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
-
-# Uncomment to disable graphical terminal (grub-pc only)
-#GRUB_TERMINAL=console
-GRUB_TERMINAL=serial
-GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
-
-# The resolution used on graphical terminal
-# note that you can use only modes which your graphic card supports via VBE
-# you can see them in real GRUB with the command `vbeinfo'
-#GRUB_GFXMODE=640x480
-
-# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
-#GRUB_DISABLE_LINUX_UUID=true
-
-# Uncomment to disable generation of recovery mode menu entries
-#GRUB_DISABLE_RECOVERY="true"
-
-# Uncomment to get a beep at grub start
-#GRUB_INIT_TUNE="480 440 1"